Hi all,after searching threads over and over, and not being able to find something curing my problem, I thought of posting my issue itself:
I have a Agent which is meant to open a little popup in web. Because I need all the forms in the database for selection in a field, I have to use LotusScript to get the values, and want to pass them to a field in the popup mentioned above.
Now, I have the values, and I can open the popup.
But I don’t know how to pass the values to the popup - see my code (which is sadly not working):
url = dbpath + "/DialogSubform?OpenForm 'the url to the popup, which is a nice small subform
Print ||
Anybody any idea?
I thought about passing the values to the popup by url, getting the field populated by slicing the Query_String CGI variable there in onLoad event - but it could happen, that the values exceed the maximum characters allowed in a url (for IE about 2083, I read once) - so I hope there is another way.
Kind regards
Mario
Subject: Update: Passing values to popup via JavaScript in Agent
I now tried two different calls of the popup:
- nested “|
…
resulting in blank page - my subform is not opened.
- “one-line” JavaScript
Print ||
resulting in popup displaying “Agent done” message
Both results don’t help me any further - or am I overlooking something, and the solution sticks right under my nose?
Subject: RE: Update: Passing values to popup via JavaScript in Agent
Why are you using an agent to open the popup?
Embed your javascript in the main form to create the new window. The do a search on google for referencing the opener…
cheers
Adam.
Subject: RE: Update: Passing values to popup via JavaScript in Agent
Hello Adam,
the issue is more complex - I’m using a “trigger” form for the start of the agent, which can be freely selected, and the trigger can be reused for every agent (the trigger gets the agents name and some parameters via url, and starts the specified agent).
And for the trigger to work in every case, I have the agent(s) do everything on its/their own. Another agent could even open another form as a popup, or do something totally different.
Thx for your remark,
Mario