cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

in SAP S/4 Hana Cloud PublicWe need to get value from Master Forms and pass to Content Form

bradly1618
Participant
0 Kudos
707

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.

bradly1618_0-1729568960954.png

 

this.rawValue = xfa.resolveNode("#pageSet[0].mst2.frmFooter.frmFooterBlock_1.txtLine") or

this.rawValue = xfa.resolveNode("#pageSet[0].mst2.frmFooter.frmFooterBlock_1.txtLine").rawValue

 

 

bradly1618_1-1729569059009.png

--------------------------------------------------------------------------------------------------------

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.

 

 

View Entire Topic
Jerry_Lowery
Product and Topic Expert
Product and Topic Expert

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).

Jerry_Lowery_1-1729602115709.png

 

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.

Jerry_Lowery_0-1729602022684.png

Hope this helps

Thank you

Jerry

bradly1618
Participant
0 Kudos
Thanks Jerry will try it out and look on the exact solution
bradly1618
Participant
0 Kudos
Hi Jerry, already update the question, In nutshell we want to transfer the information from Footer Block in Master Forms to Content Forms.
Jerry_Lowery
Product and Topic Expert
Product and Topic Expert
0 Kudos

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:

Jerry_Lowery_0-1729774990459.png

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:

https://community.sap.com/t5/enterprise-resource-planning-blogs-by-sap/s-4hana-output-management-cus...

https://learning.sap.com/learning-journeys/getting-started-with-sap-forms-service-by-adobe/using-mas...

https://experienceleaguecommunities.adobe.com/t5/adobe-livecycle-questions/dynamically-populating-a-...

How to get master form objects

https://experienceleaguecommunities.adobe.com/t5/adobe-livecycle-discussions/how-to-get-to-the-maste...

 

Thank you

Jerry