Lambey
Lambey

Reputation: 1

Xpages - response document - inherit values

I've just stumbled across this post, which gives an explanation on how to inherit values from a parent document. I can't get it to work though. Would anyone be able to explain exactly how and where to put this code into the xpage for the response document?

Response Document with Computed Fields

Thanks!

Upvotes: 0

Views: 76

Answers (1)

Per Henrik Lausten
Per Henrik Lausten

Reputation: 21709

Put the server side Javascript code in the beforePageLoad event using the script editor. If you to to the source of your XPages using "Source" instead of "Design" your code should then look similar to the code in the linked answer.

You can then display the value in the SHERef field by adding a computed text field:

<xp:text id="valueOfSHERef" value="#{document1.SHERef}"></xp:text>

Upvotes: 3

Related Questions