2024 Oct 22 4:52 AM - edited 2024 Oct 24 2:36 AM
In Summary,
We need value from the Master Forms template and used it in the Content forms.
We plant to print this field in content forms on the last page, had tried this in the Master forms it seems not possible.
We are using below code in Content Forms.
this.rawValue = xfa.resolveNode("#pageSet[0].mst2.frmFooter.frmFooterBlock_1.txtLine") or
this.rawValue = xfa.resolveNode("#pageSet[0].mst2.frmFooter.frmFooterBlock_1.txtLine").rawValue
--------------------------------------------------------------------------------------------------------
Updated :
Basically we want to use the Footer Block and used it in Content Forms.
In order to do this we need to retrieve the value from the Master Forms, so far we had try to call this from Content Forms through the scripting, it seems the value not pass FROM Master Forms to Content Forms
Just need to know is it possible, as we always able to pass value from Contents Form to Master Forms, now want to know how to do it in other way around.
Thanks expert.
Request clarification before answering.
Hi bradly1618
Could you describe your challenge? it is a bit vague.
If you already have a master page there, you should be able to do something like they do with mst1 and mst2. If pagecount mst1 is "1" they use that page (make it visible).
In the Scripting Reference, page 468 and 469 they discuss how to use page numbers/paging.
seems the numPages property can help you to figure out if you are on the last page and then print what you need in the master. or make a mst3 page and put in the appropriate scripting.
Hope this helps
Thank you
Jerry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi bradly1618
Thanks for updating the question. I understand you want to copy the master footer to the content page - but what i am missing is the requirement ; why do you want to do this? Which data do you want to copy from the master form to the content form that isn't already in the content form?
One option would be to just create a footer in the content form but don't know if the data is there that you need.
Maybes you can look at some of the standalone forms to see what they do.
What have you tried so far?
Have you tried to directly access the form field? For example, look into MM_PUR_PURCHASE_ORDER_E:
I don't know why it is greyed out - maybe because i don't have the master form .xsd downloaded...
Similar to the last link below, maybe you can directly access it with the full qualifier, something like
Form.Portrait_OutboundLetter.#pageSet[0].mst2.frmFooter.frmFooterBlock_1.txtLine (.rawValue?)
You probably need to download the master form with the .xsd and see how they reference that field, it may give some hints.
A couple of links that look helpful:
How to get master form objects
Thank you
Jerry
| User | Count |
|---|---|
| 30 | |
| 16 | |
| 14 | |
| 6 | |
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.