ChadSmiley Blog Things about family, life, coding, and more

18Aug/050

Start LotusScript.doc from Designer

I have been looking for consitant way to document my LotusScript for a long time. So when LotusScript.doc was available in beta form I had to take a look. Here is some of the feedback that has been recieved. I now have one more improvement/enhancement I would like to see, which is to start LotusScript.doc from the database I want to document.

This idea started with Quick Elementer 2.0 by Alain H Romedenne. It was implemented in Quick Elementer 2.2.0. I then took this same idea and Using Version Numbers to Manage Database Designs

server := ""; database := "lsdoc_beta.nsf" ;
FromDBTitle := @DbTitle + "|" + @Implode( @DbName ; "!!" );
@StatusBar( "LotusScript.doc for : " + @Left( FromDBTitle ; "|" )) ;
@If( 
@Text( @DbLookup( "" : "NoCache" ; Server : database ; "Designer Launch"; @RightBack( FromDBTitle ; "|" ) ; 1 ) ) = @RightBack( FromDBTitle ; "|" ); @Return( @Command( [FileOpenDatabase]; server : database ; "Designer Launch" ; @RightBack( FromDBTitle ; "|" ) ; 
false ; true ) : @Command([ToolsRunMacro]; "(ACTION - Build LotusScript.doc for selected configuration)" ) ) ; "" ); 
@Command([Compose]; server : database ; "lsdoc_config" ) ; 
@UpdateFormulaContext;
 FIELD Title := @Left( FromDBTitle ; "|" ) ;
FIELD Server := @Left( @RightBack( FromDBTitle ; "|" ) ; "!!" );
FIELD FilePath := @RightBack( @RightBack( FromDBTitle ; "|" ) ; "!!" );
@Command([ViewRefreshFields]);
@UpdateFormulaContext;
@Command([FileSave] );
@Command([ToolsRunMacro]; "(ACTION - Build LotusScript.doc for selected configuration)");
@Command([FileCloseWindow])

I would not typically combine the database title with the server and file path but based on yesterday's post I had no choice.

One other twist that came to mind while writing this is taking a subset (basicly removing the runing of the agent) of this code and create an option to edit the LotusScript.doc configuration document from anywhere.

Code formatted using Format Formula as HTML

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.