About This Website

CodeStore is all about web development. Mostly with the Lotus Domino server.

Your host is Jake Howlett who runs his own web development company called Rockall Design and is always on the lookout for new and interesting work to do.

You can find me on Twitter and on Linked In.

Read more about this site »

About This Article

Author: Jake Howlett
Date: 25 September 2000
Article: DFOU-4PRG76
Category: Forms
Keywords: Child; Response; Query String; Inherit;

Options

Feedback
Print Friendly

Creating response documents in the browser


In the Notes client when we create a child/response document that inherits its values from the current document, it is easily achieved, simply by selecting the form property "Formulas inherit values from selected document".

However, in the browser this will only seem to work if the new document is created from an @Compose hotspot that Domino has created itself. If you create a link to the new form manually, so that you have more control over it, then you need to add a little more information to the URL that you use so that Domino knows which document it is to inherit from.

Place the formula below into a Computed Text area that you are going to use as the link to create the new document.

path:=@ReplaceSubstring(@Subset(@DBName;-1);"\\";"/");
"<a href=\"/" + path + "/idea?OpenForm&ParentUNID=" + @Text(@DocumentUniqueID) + "\">Create a new idea</a>"

It is the ParentUNID parameter from the Query String portion of the URL that tells domino which document it is that the form should inherit its values from. This method is useful as you now have full control over the link that is produced so you can use JavaScript or you can pass further Query String arguments to the new form as well.

Feedback

Hear that? Silence! Be the first to talk. Use the form below...

Add your own response here:

Although your email address isn't required it is protected from spambots if you choose to provide it and not to hide it. My right to remove commercial, irrelevant or posts I just don't like is reserved.

Name *:
E-mail:
Website:
 

Comment *:

HTML is not allowed!
 

Navigate other articles in the category "Forms"

« Previous Article Next Article »
Keyword Refresh R2.0   Common fields subform.