Hi,we have one web application. two forms are there one is parent form another is child form.we have one button to open the child form.one computed field for document id in child form i.e parent_docid and another computed field on child form for document id is child_docid.we want when we click on the button to open the child form parent_docid is transfer to child_docid.so document id of both the form should be same.
i used on the load of child form is to transfer value
document.forms[0].child_docid.value =window.opener.document.forms[0].parent_docid.value;
But value is not transfer.
plz help me asap how can we transfer from the computed field
thanx
Subject: document unique id
Why is your posting’s subject “document unique id”? How are your child_docid and parent_docid fields created? Note, that two documents can obviously not have the same UNIQUE id, as per definition.
In case those ids are not coupled to the document unique ids, you can still not access computed fields via JavaScript, because they are rendered as static text, not inputs. You need to either create your own hidden inputs or have Domino “generate HTML for all fields” to access computed fields via JavaScript.
Also, from your posting I can not tell, if you got the difference between a form and a document. Can be pretty essential.
Subject: computed value transfer from parent to child form
Hi Harkpabst,plz tell me how can we transfer computed field values from parent to child form in javascript when we open the child form.
we used in load function of a child form is follwing code
document.forms[0].childno.value =window.opener.document.forms[0].parentno.value;
but some time value is transfer and some time not transfer.
so not always the load function work when we open.
plz help me.
thanx