I want to store code in a text file like LSS and I want to call that file when I press a button. I have read the concept of LSS files, but I want to know how to use it. Can you give me an example of setting a value into the current document? Thanks in advance.
One of the most common uses of LSS files is the Lotus-supplied constants. By placing the following line in the definitions section of an agent or a form, the Lotus constants become available for you within the agent or form.
To use executable code from such a file, the code needs to be a subroutine or function. Suppose a file called mySub.lss contained the following code:
Sub MySub (doc As Notes Document) Print "The Document was last modified on " & doc.LastModified End SubIn the declaration area, add the line
%INCLUDE "mySub.lss". In the button you wish to execute the code, you would have something like this:
Sub Click(Source As Button) Call mySub(doc) End Sub
Do you have comments on this Ask the Expert Q&A? Let us know.
Dig Deeper on Lotus Notes Domino Application Development
Related Q&A from Brian Mahoney
Find out what types of calculations can be computed for a column in a Lotus Notes view and the best way to go about it with this expert response. Continue Reading
Find out why you can't use Formula language to include a doclink to a specific Lotus Notes view or database and need to use LotusScript instead. Continue Reading
Discover the reasons behind a Notes/Domino admistrator having trouble with disabled options in the "customize this view" section of his Lotus Notes ... Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.