since ‎18-01-2012
‎10-12-2019
blinkin2000
Level 1
Re: Pagination Woes
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
I tried the proposed code with mixed results.After a couple of days troubleshooting this problem I had to step away for a while. When I came back I thought to review the XML code to see if there was anything that popped out at me. Sure enough there was a strange container in the XML code: Visible in the Hierarchy:Turns out, this empty subform was the root of all my pagination errors. Once deleted all the page subform locations were in their correct place and acted as it should regardless of th...

Views

253

Likes

0

Replies

0
Re: Pagination Woes
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
Well I went through the form and every subform matches the content area of each masterpage exactly. None are over or under. As for the sizing of subforms and/or items are all within the the physical space set by the masterpage and page subform.PM sent.I did notice a strange occurrence where in the pagination tab the "Keep With [ ] Previous [ ] Next" options are greyed out on some pages/subforms but not others. It is inconsistent based on masterpage or even/odd pages. Would whatever is causing th...

Views

255

Likes

0

Replies

0
Pagination Woes
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
Hi all, I have a multi-page (non-flowing) form with two different Master Pages (not sure if it's important for this exercise). I have set all pages to place On Page "FORM" or On Page "CONTENT" dependant on design of the form and set after to "Continue Filling Parent". See attached Image:I have these settings throughout my form and it works everywhere but one location. It grabs the subform and places it directly following the previous subform... on the previous page, in the margin, and not visibl...

Views

1.8K

Likes

0

Replies

6
Re: Remotely add and remove Instances from different pages
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
figured it out. The code failed because I had put delete local row buttton BEFORE calling the delete remote row button. I believe this stopped the code from fully exectuing since it's instance was removed mid-code. This now matches Niall's provided example.Bad Code:form1.OA_CALC.Table1.RowItems.deleteBtn::click - (JavaScript, client)var vCurrentRow = this.parent.index; OA_CALC.Table1._RowItems.removeInstance(vCurrentRow);xfa.resolveNode("OA_PG1.ProjectSavingsGROUP.Table1.RowItems[" + vCurrentRow...

Views

336

Likes

0

Replies

0
Re: Remotely add and remove Instances from different pages
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
urgh, apparently I am still very close. I have used your sample, but it seems that the execEvent("click") is not working correctly or my syntax is wrong somewhere. Where am I going wrong?Button Code on first table:form1.OA_CALC.Table1.RowItems.deleteBtn::click - (JavaScript, client)var vCurrentRow = this.parent.index; OA_CALC.Table1._RowItems.removeInstance(vCurrentRow);xfa.resolveNode("OA_PG1.ProjectSavingsGROUP.Table1.RowItems[" + vCurrentRow + "]").deleteBtn.execEvent("click");Invisible Butto...

Views

331

Likes

0

Replies

0
Re: Remotely add and remove Instances from different pages
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
Oh wow. That is perfect. I was so closeThank you.

Views

329

Likes

0

Replies

0
Remotely add and remove Instances from different pages
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
Similar to my other post, I have a form that has multiple pages, one being a calculator (OA_CALC) that shows every variable for calculation; the second (OA_PG1), customer facing showing only pertinent information. So both tables should add/remove and show the data being contolled from OA_CALC. I am able to addInstance and source the date to both pages, but for some reason removeInstance only works on the page where the button exists. So rows on OA_PG1 never delete, please advise.On OA_CALC i hav...

Views

1.3K

Likes

0

Replies

5
Re: Locking Selected Fields on Submit
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
Thanks, that code worked perfectly. I also implemented the loop code on a separate function to HIDE all the Transmittals.How would I implement this.parent concept into assigning rawValues to specific objects without the affecting the same element in every instance?EDIT: Answered my own question:xfa.resolveNode("TRANSMITTAL[" + this.parent.instanceIndex + "]").txtTransmittalType.rawValue = this.rawValue;

Views

207

Likes

0

Replies

0
Re: Locking Selected Fields on Submit
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
I dont know what I was thinking. After some rest, and a second look, I can see this what the code is doing. I am trying to provide a button that will lock elements on individual pages that are part of multiple instances. Note, each instance will contain said button.Example: TRANSMITTAL[3].lockButton should only lock items on that instance of TRANSMITTAL[3].The two attempts had different resultsform1.TRANSMITTAL.lockButton::click - (JavaScript, client) var j = _TRANSMITTAL.count; for (var i=0; i

Views

208

Likes

0

Replies

0
Re: Locking Selected Fields on Submit
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
Hi Niall,I have been trying to work this script into my form and I am having the opposite problem as bakerjake where all instances lock. Currently I am using the AD modified script with "lock" and "unlock" functions, attempting to lock the current instances of full page subform (TRANSMITTAL). As it stands now, all instances lock/unlock using the below code:Please advise.

Views

206

Likes

0

Replies

0
Re: Saving JavaScript Variable
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
Perfect. I changed the event to the click event of the radio and that worked great; also caught the missing .rawValue.Thanks again!

Views

265

Likes

0

Replies

0
Re: Expand the displayed values in a DropDown
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
Thanks Niall,I used your suggestion on the events and it works much smoother. I ended up creating a readOnly text field behind the dropdown to maintain the caption.Since the exact field is utilized multiple locations I've populated the dropdown via JavaScript in a Script Object. My belief is that if I maintain a single list in a Script Object, I would be saving on file size when compared to maintaining multiple lists within each copy of this field.

Views

230

Likes

0

Replies

0
Re: Expand the displayed values in a DropDown
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
Figured out a workaround, hopefully someone can find a better solution. Essentially, change the width of the dropdown on enter, change it back on exit. See below:ProjectBLDGtype::enter - (JavaScript, client) this.w = "1.9375in";ProjectBLDGtype::exit - (JavaScript, client)this.w = "0.9375in";Not elegant, but works.Now I cannot figure out how to only display the bounded values instead of the both the value and description as a final output, but still displaying both when the full dropdown is displ...

Views

231

Likes

0

Replies

0
Expand the displayed values in a DropDown
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
Is there a way to expand the displayed values within a dropdown? My binded values are only 2 digits, but the descriptions far exceed my field's width. Please advise.For reference, here is an HTML example of what I am trying to achieve:http://easylistbox.com/demoDropDownToolTip.html

Views

981

Likes

0

Replies

4
Re: Change Floating Field value without layout:ready
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
Thank you. I implemented the recommended line. No luck. Turns out there was some syntax issues that seemed to resolve itself while I was adding the xfa code.The code worked both with and without the xfa.layout.relayout;

Views

272

Likes

0

Replies

0
Change Floating Field value without layout:ready
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
I am attempting to change the rawValue of a Floating Field (ForPartnershipsTXT1) based on a click event of radio buttons (PartnershipRADIO). I originally had a layout:ready event for the Floating Field which would check the status of the radio buttons, which worked. See below:OA_PG2.TnC.ForPartnershipsTXT1::ready:layout - (JavaScript, client)if (INTERNAL_ONLY.PartnershipRADIO == 1){ this.rawValue = ""; }else{ this.rawValue = "for Partnerships"; }I have moved the if/then statment to the radio but...

Views

1.0K

Like

1

Replies

2
Re: Saving JavaScript Variable
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
Sorry, I was unclear. My form will include JavaScript that will sourcing these textFields in to an outputTextField dependant on a user inuput radio button.Example- page2 (SubForm)- Contact1 (textField that appears on multiple pages with global binding)- Contact2 (textField that appears on multiple pages with global binding)- option (radioButton)- page3 (SubForm)- displayContact (textField, no global binding)page3.displayContact::ready:layoutif (page2.option.rawValue == 1) { displayContact = page...

Views

267

Likes

0

Replies

0
Re: Saving JavaScript Variable
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
That sample was super helpful. In my case may need to do a combination of relative and absolute SOM expressions.For the sake of consistancy, in my form I have 5 pages (page1, page2,...) where a textField (SCENCSCompany) is present on page2 & page3.If my JavaScript code is on the same page (# 2 &3) I can use a relative expression (SCENCSCompany.rawValue); but on page 1, 4, & 5 I would need to use an absolute expression (page2.SCENCSCompany.rawValue). Correct?Would it matter what page I reference ...

Views

263

Likes

0

Replies

0
Re: Saving JavaScript Variable
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
When I reference the data in JavaScript, would I need to provide the full path to the raw data?INTERNAL_ONLY.SCENCSCompany.rawValue;Or is there a shorter way to access the binding values of a field?

Views

266

Likes

0

Replies

0
Re: Saving JavaScript Variable
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
Thanks Niall,Your post was super helpful. I guess my concept of how LC handeld certain JavaScript variables was a little off, but I think I understand now.The Field Pallette is close to what I want, but different. My form is intended to have a "Internal Only" section that can set certain settings or variables based on a specific applicant, over multiple stages of our process. So many of the data entries would be used multiple times depending on the current stage. Based on your comments, I will u...

Views

267

Likes

0

Replies

0
Re: Saving JavaScript Variable
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
The second part of my question, is this the most effective way to code what I am trying to do?This code would be used for a significant number of text fields throughout my form.

Views

253

Likes

0

Replies

0
Saving JavaScript Variable
Avatar

blinkin2000

blinkin2000
- Adobe LiveCycle
I have created a form using a floating variable set in LC Scripting Object that should allow a field to update and populate multiple fields throughout my form. When exporting as a Dynamic PDF, these variables do not save with updated information once the form is closed and then re-opened. What currently happens is the form loads the default var values everytime the form is opened. I have changed the Default Scripting savings to "Automatically" in the Default tab in the "Form Properties".In a fin...

Views

2.1K

Likes

0

Replies

10
Likes from