OpenNTF.org - Chrysalis LSX - Customize View
My Links (Not logged in)
Code Bin Search
 
Hosted by Prominic.NET
Rate This Code
5 - brilliant stuff
4 - very nice
3 - average
2 - needs work
1 - bad
   OpenNTF Code Bin
Edit Document Code By Date > Code Document
About This Code
Brief Description:
Chrysalis LSX - Customize Views & Agent schedules with LotusScript 
Rating:
Not Rated Yet 
Contributor:
T. Brian Nichols 
Category:
Design Elements 
Type:
System info 
Document Release:
1.0.1 
Notes Version:
R5.x, R6.x 
Last Modified:
24 May 2005 
OpenNTF Disclaimer

All of the program code and information presented in the OpenNTF.org Code Bin are provided "as-is", and should be used at your own risk. OpenNTF.org make no express or implied warranty about anything in the Code Bin, and OpenNTF.org will not be responsible or liable for any damage caused by the use or misuse of anything from this site. OpenNTF.org makes no guarantees about anything. Please thoroughly test all of the knowledge and code you find here before you attempt to use them in your production environment.

Code / Description
I wrote this LSX so developers could modify View and Agent design elements via LotusScript.
Usage / Example
 Comments
Posted by Michelangelo Rosso on 09/02/2003 07:35:18 AMview type and style
how can we change the view type (to Private) and the view style (to Calendar)
Posted by Timothy B Nichols on 09/12/2003 05:46:25 PMRe: Style & Type
Re: View type:
Once you create a public view, you cannot change the scope to private with this LSX. You would have to make a new one with private scope and delete the old.
view.ViewScope = 2 ' private
Re: View style:
I did not add a method to allow changing the style to 'view' or to 'calendar'. However, this is an easy thing to do and I'll add this method soon.
Posted by Riaan H Adriaanse on 01/22/2004 03:51:19 AMLosing view selection
Hi There
I am uing your LSX to modify the background and alternate row colors in my database of all my views in my database. This works fine but I have one problem I did not specify a view selection in my code and when I reopen any of my views the view selection changed to @All. Can this be changed?
I also have a suggestion can you expand this tool to change the action bars as well?
Posted by Timothy B Nichols on 01/22/2004 08:32:07 AMRe: @All and Actions
I'll look into the @All issue. I agree, it should definitely leave the selection alone if there is one present (i.e. view exists already).
I will post a new version of this this weekend. The method to change style is already added in my build too, I just need to post it.
I always planned to add Actions as well. C++ API has nice way to do this, but you cannot do more than copy and remove existing actions. To be able to add code (LotusScript, @Funcs, etc) on the fly and compile it, etc, would be trickier... but I will look into it.
Posted by Vladislav V Turchenko on 04/08/2004 04:08:05 AMWhat about new versions?
Hi there,
I belive, that these(above) bugs were fixxed and some nifty features were added, but the DB placed here was last time modified about 1 year ago(18.03.2003 to be exactly). Are there any other ways to get up-to-date chrysalis tools?
Thanks!
Posted by Timothy B Nichols on 04/08/2004 01:52:07 PMYou gotta love freeware
Ok, I will post the newer (mostly untested) version when I get home.
Posted by Timothy B Nichols on 04/08/2004 05:26:57 PMNew Options
4.8.04 update
------------------------------
1) To change the view to a Calendar, use this parm field:
doc.ViewStyle = 1
Any other value will force it back to a normal outline view.
2) View selection will no longer reset to 'SELECT @ALL' if you do not set this parameter.
Posted by Riaan H Adriaanse on 09/10/2004 02:28:56 AMChanging existing view
Hi there,
Great product. One question I am not sure how to change an existing view with the new version.
Maybe I am just being stupid. Would it be possible for you to mail your source code or any documentation on the c++ APIto me? I`d love to get going with that.
Riaan@bw.co.za
Posted by Timothy B Nichols on 09/10/2004 07:16:46 AMRe: Changing existing view
You just need to set the ViewName property to the name of an existing view.
e.g.
Dim view as CView
doc.Form = "deleteme"
doc.ViewName = "NameOfExistingView"
doc.Comment = "Changed the comment on : " & Now()
doc.Save False, True, True
Set view = New CView(doc)
Call view.BuildView()
What kind of change are you trying to do? I can give you more specific example if needed.
Regards,
-Brian
Posted by Anton V Andreev on 09/13/2004 11:56:38 AMRebuilding view
Hi there.
Sorry for stupid question. Is it possible to make visible changes made with view without reloading database in client (R5.0.10)? I'm trying to change selection formula by user request (another try :). Everything works fine and view selection formula changes properly. But user can't see any changes in view displayed until reloading database in client.
Thanks for any ideas.
Posted by Timothy B Nichols on 09/14/2004 07:48:58 AMNot really
That's a limitation of the Notes client. You have to refresh it (F9). Or if you are in the designer client, F9 to see the change.
Hopefully you are not changing view designs very often though, that would be quite expensive on the server (forcing it to rebuild the index each time).
Originally, I created this tool for other product developers. So they could ship their product with certain default views, and even keep the design hidden. And include a view configuration panel (which uses this LSX), so that the customer can then tweak the views w/o ever having to bring it back into the shop.
Same with the agent scheduler. One client might want their agents to run at 3 PM once a day, another client 3 times a day. With this LSX, they can just set all of that through a control panel on their end.
Posted by Pankaj Ku Singh on 03/17/2008 12:42:36 AMmail send on web
how can i send the mail on web through lotus script and java script pls suggest me
Posted by Bart Vanderpoorten on 06/25/2008 07:31:03 AMSetting the day for a weekly scheduled agent
How can I se the day of a weekly scheduled agent ?
 Add your comment!