Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

issue with table header and multiline textfield.

$
0
0

Hello community,

 

I'm having a bit of a problem, with LiveCycle ES3.

Im building forms with multiple sections (in tables) with each of them having their own section and sometime sub section.

My issue is with the header sometime showing up that the rockbottom of a page then on the top of the next page.

To fix this i had to programme my header in a what that if they are at the rockbottom they should be set to "invisible" else visible.

 

Ex:

My section 1 has 3 subSections (1.1, 1.2, 1.3)

and section 1.2 has a multiline textfield.

 

so to make sure that the header for section 1.3 i need to check on which page the last header of section 1.2 is.

 

var head = topmostSubform.page2.sf1_2.table1_2.head1.all;

var headLP = xfa.layout.page(head.item(head.length -1)) // get the page on which the last header of section1_2

if (xfa.layout.page(this) <= headLP) { // this is the header of section 1.3

     this.presence = "hidden";

}

else {

     this.presence = visible;

}

 

And to make it work i had to set them on each headers::ready:layout action.

Evething works fine but 1 thing, itsss takkking fooorrrreeeeevvvverrr to change field (like 3-4 seconds on my workstation) ( i mean have 20-25 sections each with their header)

What i notice is that no matter which fields are exited headers event are ran, it even seems the are event are ran multiple time.

Lets say that you leave a field in section 1.1

the action will be triggered as follow i think.

 

table1 header::ready:layout

table2 header::ready:layout (1 header per page)

table3.header::ready:layout (1 header per page)

table2 header::ready:layout (1 header per page)

table3.header::ready:layout (1 header per page)

table3.header::ready:layout (1 header per page)

 

I tried to keep the header with its section but even then it would only copy it once or twice.

 

I was wondering how do you guys deal with situation where you have 1 big section "GENERAL INFO" and multiple subSection "personal info, education, work expereicne..." and have both the GENERAL INFO on top of each page with the subSection title also on top of each page.


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>