Hi,
I am trying to access a computed field from main form in subform and am getting null object.
Is it possible to access or is there any way to get field value in subform?
thanks
Hi,
I am trying to access a computed field from main form in subform and am getting null object.
Is it possible to access or is there any way to get field value in subform?
thanks
Subject: Can computed field from main form be accessed in subform
what are you writing your code in? Lotusscript? Formula language? Could you include a sample? Once a field value is stored in a document the code shouldn’t care if it came from a subform or a form.
Subject: RE: Can computed field from main form be accessed in subform
I’m going to go out on a limb here, and restate your question as “can a computed field on a response form reference a field on the parent document?” Why? Because the question would not have come up with a form/subform situation, provided that the normal order-of-fields requirement was met.
The answer to the restated question is yes, but only during the “compose” process (creating a new document in the UI), and only if the form property “Formulas inherit values from selected document” is set on the response form. Otherwise, your field needs to have a “handle” to the parent document (either by using the parent’s DocumentUniqueID or by looking the vales up in a view).