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

SOLVED

Floating field in table will not flow to the next page

islandgirl23
Level 4
Level 4

I have a form which has a floating field in the header of a table that is changed prior to filling out the form.  When the table flows to the next page, I have it so that the headers populate to the next page.  The problem is that the floating field information in the header does not appear on the next page. It's just a blank space.  Only the other headers, which are not changed, appears on the next page.  What can I do?  

1 Accepted Solution
Kosta_Prokopiu1
Correct answer by
Employee
Employee

Hi,

you surely use data binding for the floating field and your problem is that a data field in the XML can only be used once - when consumed by the first header floating field it will not be filled again for all the others.

I have a simple form and a simple XML:

<root>
    <testhdr>test</testhdr>
</root>

To make this work use name binding for the floating field and in the initialize event of the field put

this.rawValue = xfa.record.testhdr.value;

The "testhdr" is the path in your XML without the root-node and .value is required to get the content of the tag in the XML.

That will solve your problem

Kosta_Prokopiu1_0-1621234193291.png

 

View solution in original post

4 Replies
Kosta_Prokopiu1
Correct answer by
Employee
Employee

Hi,

you surely use data binding for the floating field and your problem is that a data field in the XML can only be used once - when consumed by the first header floating field it will not be filled again for all the others.

I have a simple form and a simple XML:

<root>
    <testhdr>test</testhdr>
</root>

To make this work use name binding for the floating field and in the initialize event of the field put

this.rawValue = xfa.record.testhdr.value;

The "testhdr" is the path in your XML without the root-node and .value is required to get the content of the tag in the XML.

That will solve your problem

Kosta_Prokopiu1_0-1621234193291.png

 

View solution in original post

islandgirl23
Level 4
Level 4
For some reason, it's not working. I do not see "testhdr" in the hierarchy in your example, so I do not know what to enter in it's place. Also, should it be "xfa.record" and do I enter the ; after value or not. Your picture does not have the semi colon at the end. FYI - I'm using live-cycle.?
islandgirl23
Level 4
Level 4

For some reason, it's not working. I do not see "testhdr" in the hierarchy section in your example, so I do not know what to enter in it's place. Also, should it be "xfa.record" and do I enter the ; after value or not. Your picture does not have the semi colon at the end. FYI - I'm using live-cycle.

islandgirl23
Level 4
Level 4

Let me be more specific with my question.  On my form, I have a drop down box listing choices.  The item chosen from the drop down list is populated into a floating field which is in the header of the table.  When the table flows to the next page, the headers of the table flows to the next page as well.  My problem is that the information that is in the floating field of the header on the first page does not move to the next page.  The header box on the next page is empty.  Maybe this explanation is better and will result in a fix.  Your help is greatly appreciated.