Launch Form in web using lotusscript
Launch Form in web using lotusscript
(OP)
hi everybody...i am quite new to notes..i wanted to know... is there a way i can launch a form in web using lotusscript agent.. and in that form's field i want to put some values thru this lotus script agent...pls reply to this...
thanx in advance...
thanx in advance...
RE: Launch Form in web using lotusscript
Print "[/test.nsf/testform?openform]"
it will open the "testform" in the browser via a lotusscript agent. To use this method, you still have to create a form first.
On the other hand, you could consider creating a HTML form instead, all you have to do is:
Print "<form>........</form>"
and use print statement to output all the HTML element in the form.
For the second part about putting values, I need to understand exactly what you meant to do. I guess you might be able to use cgi variable to pass some values in the agent and process it.
Hope it helps...
Vincent Liu
http://www.rapidwebpublisher.com
RE: Launch Form in web using lotusscript
Please help, and Thank you very much.
Richard
RE: Launch Form in web using lotusscript
i did used some workaround and solved the problem..but still eager to know whether it can be done by lotusscript...
RE: Launch Form in web using lotusscript
I am not a particular expert in .NET, so I apologise for not able to give you the full picture on how this could be done.
There is one question to both of you, why are you both using agents? Domino documents and forms could be access directly using URL in specific formats.
I guess both of you just need to know how to get document and open forms using Domino and I think the following is a handy document that refer to how to use different component like forms, views, documents via HTTP from Domino from IBM LDD. The URL is:
http://www-10.lotus.com/ldd/today.nsf/62f62847467a8f78052568a80055b380/ca5230f9baf39fe1852564b5005e8419?OpenDocument
It's a bit old and it is only for R5, but I think it should be enough to start and for more details, refer to help in Domino.
chardulce:
- I guess you will need a view create (says "lookup") with the document key sorted and exist in the first column (e.g. 123). To open the document, all you need to do is:
http://yourserver/yourdb.nsf/lookup/123?opendocument
slpeter:
- I guess you need to use cgi variables to pass the value to the agent. e.g.
If you are opening form directly:
http://yourserver/yourdb.nsf/yourform?openform&parm=123
There should be a field call Query_String(hidden) in the form and you could use extract the parameter and put it as a default value in your field, you might need to using WebQueryOpen agent to do that.
If you are using agent:
http://yourserver/yourdb.nsf/youragent?openagent&parm=123
The parameter will store as context document, you could retrieve the context document by:
Dim session as New NotesSession
Dim context as NotesDocument
Set context = session.DocumentContext
and the field will be called Query_String as well and you could refer to it by
context.QueryString(0)
Hope it helps.
Vincent Liu
http://www.rapidwebpublisher.com