Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Designer - "data mergefields" - how to approach

Avatar

Avatar
Validate 1
Level 1
BrownDesk123
Level 1

Likes

0 likes

Total Posts

10 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
BrownDesk123
Level 1

Likes

0 likes

Total Posts

10 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
BrownDesk123
Level 1

14-10-2020

I often work on LiveCycle projects where an application generates a populated XFA form and then I have scripts occurring on the initialization event to further utilize the populated data.  The method I have always done to accomplish this is to create a subform with "mergefields"(textfields) containing data binding.  When the application loads data into the form, the scripts reference those mergefields and further actions/calculations are done with the data in those fields. 

 

The mergefields subform can be cumbersome to create as I have to cut/paste or drag and drop the fields in them.

 

Is there a better/cleaner way to approach what I am trying to accomplish?  I tried using the Referenced Objects section, but the data is not "loaded into" those fields during forms generation.  The data connection is XML.

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 100
Employee
Kosta_Prokopiu1
Employee

Likes

165 likes

Total Posts

369 posts

Correct Reply

107 solutions
Top badges earned
Affirm 100
Validate 1
Establish
Give Back 5
Give Back 3
View profile

Avatar
Affirm 100
Employee
Kosta_Prokopiu1
Employee

Likes

165 likes

Total Posts

369 posts

Correct Reply

107 solutions
Top badges earned
Affirm 100
Validate 1
Establish
Give Back 5
Give Back 3
View profile
Kosta_Prokopiu1
Employee

14-10-2020

Assuming a sample XML like that:

<root>

  <section>

    <field1>gg</field1>

...

Instead of creating fields and bind them to $.section.field1

You can use in scripting xfa.record.section.field1.value

Answers (0)