This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


May 27, 2018, 3:17 PM
2 Posts

Inheriting fields from a parent doc

  • Category: Domino Designer
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags: inheriting field values,controlled access sections
  • Replies: 1

Further to my Invalid Universal ID post from Friday, http://www-10.lotus.com/ldd/ndseforum.nsf/xpTopicThread.xsp?documentId=8A941C68BF6FA9FA8525829800007586

I thought it more important to discuss what I'm doing!

My goal is to inherit only one field value from a parent document.  Usually this is very easy, as Notes allows this by just creating the child doc, and having the same field name in both the parent doc field, and the child doc field.  This quickly becomes more complicated when both the parent doc and the child doc have controlled access electronic signature requirements from the same actor ... requiring the same electronic signature sub-form on both forms.

My solution was to reach in to the parent doc using the ParentDocumentUNID to get that one field value.

If this doesn't work because the Parent UNID is not correct, I'm hosed!  Any suggestions?

Marcus

May 30, 2018, 2:16 AM
37 Posts
Can you not simply use @InheritedDocumentUniqueID

From the help...

 

@GetDocField(@InheritedDocumentUniqueID;"BeneficiaryName")

 

You just need to ensure that the 'child' form has the "Formulas inherit values from selected document" property selected on the Default tab of the Form Properties box.

In your particular example, you could have a 'Computed When Composed' field that has the formula:  @Text( @InheritedDocumentUniqueID )

You could then simply replace that value for the 'doc.ParentDocumentUNID' value you used originally.

 

Hope that helps!


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal