Inheriting field values on the web

Bear with me, please - I used to be a Domino web developer but I’ve been doing client-only work for more than 5 years and I’ve blanked on this…

I have a document open. I need to create a new document that inherits values from it (although the new doc is not a response), but I also need to pass in the value of a new field based on which Create button the user clicks. If I just use @Command([Compose]; “regForm”) the field values are inherited correctly, but I can’t pass values in (can’t use @UpdateFormulaContext on the web, I don’t think.) If I use @URLOpen(@WebDbName + “/regForm?OpenForm&testID=Yes”) I can pass the necessary value via the querystring, but the other values are not pulling in from the initial document. (Although I could swear they were a few days ago, and nothing has been changed since.)

Can someone help me out?

Subject: Inheriting field values on the web

Inheritance happens with &ParentUNID= in the URL, and you can append anything else you need to pass in:

http://server/path/db.nsf/MyForm?OpenForm&ParentUNID=dddd3333cccc4444bbbb5555aaaa6666&testID=Yes

And I hope you’re using @URLQueryString(“TestID”) rather than a Query_String field to get your values – if you’ve been away for a while, this whole case-insenitive, decoded and pre-parsed thing is just too good. (Note that the param to the function is not the same case as in the URL – and that it doesn’t matter.)

Subject: RE: Inheriting field values on the web

Thanks, Stan - I knew there was a reserved param name but couldn’t for the life of me remember what it was. No, I wasn’t using @URLQueryString, but I am now :o)

Subject: RE: Inheriting field values on the web

Hi,

I understand that @UrlQueryString would not work in client (return null according to the documentation). Does that mean that I have to use @UpdateFormulaContext and Javascript with @URLQuesrString for the inheritance to work on in client and web environment respectively. Also one more question, does ParentUNID only work for ‘response’ type of document ?

Thanking everyone in advance.