How to transfer lotusscript variables from views

I have a lotusscript variable in a view and have to use it in the preview. How can I transfer it to the preview?

  • the form formula is only formula, so I can´t use script variables

  • there is no single click event in the view to write the variables value to an environment variable just before the preview is loaded

  • it isn´t possible to use an environment variable generally, because it may be, that the view is opend more than once a time (with different values), so each view would overwrite the value of the prior view

Background: The view (single cat) is opened by a document which writes a value to the environment. The view gets this value in the post open event and saves it as view variable. When a document is selected in the view, there is a button in the documents preview, which needs the aforesaid value.

Subject: how to transfer lotusscript variables from views

If you have it as an environment variable, why not use it from there?

Subject: RE: how to transfer lotusscript variables from views

I don´t have it as an environtment variable.

  1. I open doc1, write X to the environment and then write this X to the views variable

  2. I open doc2, write Y to the environment and write this Y to the second views variable (this view is opened in another frameset)

  3. I go back to the first view (it is still opened) select a document and have now to write the X to the documents preview, but the environment variable contains the Y

Subject: use a second environment variable

Subject: RE: use a second environment variable

I also thought about using multiple environment variables, buta) the view may be opened x times, so I need x environment variables

b) the preview doesn´t know, which env. variable is the right one