This should be a very simple thing to do, but I just can’t get it to work!
What I’m trying to do is this:
I need to create a document in Notes with a value selected from a picklist in a form on the web. I’ve got a handle on the value OK, and I need to pass it into a field called GroupName on my newly created document in Notes. Now, with URL below the document creates fine, but I just can’t get it to populate the GroupName field.
var theURL = “Notes://” + theServer + “/theDatabase.nsf/theForm?OpenForm&GroupName=” + value;
I’ve looked on the forum, but nothing works. Any suggestions?
Subject: Creating a Notes document from a browser - problem passing in a value
Hi,
You need to put a hidden field on your form with the name Query_String. Then in the WebQueryOpen event, you can access the arguments:
doc.GroupName = strright(context.Query_String(0), “&GroupName=”)
HTH
Joost
Subject: RE: Creating a Notes document from a browser - problem passing in a value
I don’t think Query_String works in the Notes client, Joost, I’ve tried without success. Thanks anyway.
Subject: Creating a Notes document from a browser - problem passing in a value
Am I missing something? I may not be reading your issue correctly.
If you are composing a document in a browser, and the document is based on a notes form, then submitting the document commits all fields.
document.forms[0].submit();
Do you already have a field called GroupName on the form and its not capturing it? Then there may be a translation or some other formula that is acting upon it simultaneously.
Subject: Creating a Notes document from a browser - problem passing in a value
Is it the browser inside the notes client, because you can do this with cookies, if not ie you are in a separate web browser you cannot do it AFAIK, I tried very hard about a year ago. -Adam
http://adfos.com
http://notesninjas.com
Subject: RE: Creating a Notes document from a browser - problem passing in a value
I’m opening the Notes client from a browser. I want to populate a field with a value selected from a picklist in the browser.
In Notes there are at least two ways to do it:
-
Document that inherits the selected value
-
Environment variable
Subject: Creating a Notes document from a browser - problem passing in a value
Did anyone ever discover a way for this to work? I have the exact same problem, and looked all over and still can’t find a solution.
Not sure why this is so difficult to do - it seems like it should be very simple. It can already open the document, but I haven’t found any place that adds any passed parameters.
Thanks!