since ‎01-09-2017
‎10-07-2020
shawnFMU
Level 1
Re: Excluding specific Master Pages from Total Page Count with Javascripts shawnFMU - Adobe LiveCycle
I should amend this: when I say "page set" I don't mean an actual Master Page "Insert Page Set". Its just wording description.
51
Views
0
Likes
0
Comments
Betreff: Excluding specific Master Pages from Total Page... shawnFMU - Adobe LiveCycle
I was able to recreate your setup and it works. However when I try to apply this to my actual form... no luck. I thought maybe the "Insert Page Set" would do something to set them pages apart from the total count, but not really. Thanks for this idea though! I'll keep this in mind if another form under different condition would be a better fit.
53
Views
0
Likes
0
Comments
Betreff: Excluding specific Master Pages from Total Page... shawnFMU - Adobe LiveCycle
could I see a screen cap of your object/pagination on a seite page?
74
Views
0
Likes
0
Comments
Betreff: Excluding specific Master Pages from Total Page... shawnFMU - Adobe LiveCycle
This is interesting! I'll give it a try. Its going to take a bit to re structure my form, but interesting indeed. Thank you!
77
Views
0
Likes
0
Comments
Excluding specific Master Pages from Total Page Count with Javascripts shawnFMU - Adobe LiveCycle
Is it possible to exclude certain Master Pages from the count for Total Page Count using Javascript? Example:Page Set 1, only count pages using Master Page 1 & 3 and not Master Page 2 & 4.Page Set 2, only count pages using Master Page 2 & 4 etc...These pages are also increasing with Add Instance objects. I only know this:this.rawValue = xfa.layout.pageCount()-1set in a floating field, but the static offset only works for a bit. After a few more page generation, the count goes off. Unchecking "In...
115
Views
0
Likes
7
Answers and Comments
Re: Is there any way to copy output from one content area to another? shawnFMU - Adobe LiveCycle
Have you tried setting the Data Binding to "Use global data"?or have a script like:Calculatethis.rawValue = theothertablecell.rawValue;
115
Views
0
Likes
0
Comments
Betreff: Hidden and Visible on Add Instance Object shawnFMU - Adobe LiveCycle
Thank you, thank you radzmar. Once again you helped out so much!
292
Views
0
Likes
0
Comments
Hidden and Visible on Add Instance Object shawnFMU - Adobe LiveCycle
I have an object that will increase by one with an Add Instance button.I have a check box that will toggle hidden/visible.Only the first instance can be hidden/visible... why not the rest? check box / click: if(this.rawValue == "1"){form1.P1.wrap.textfield2[*].presence = "hidden";} I tried to loop it:if(this.rawValue == "1"){for (var i = 0; i < xfa.host.numPages; i++){var oSubform = xfa.resolveNode("form1.P1[" + i + "]");oSubform.wrap.textfield2.presence = "hidden";}} Help!Thank you in advance
384
Views
0
Likes
2
Answers and Comments
Re: Simple Time Duration Calculation shawnFMU - Adobe LiveCycle
It works!turns out you need to set your input field as a Date/Time Field, BUT leave the Patterns setting empty.I guess the script takes whatever default setting the Date/Time Field uses... go figure... seems counter intuitive to me...Thank you very much mouslander!
1028
Views
0
Likes
0
Answers
Re: Simple Time Duration Calculation shawnFMU - Adobe LiveCycle
sorry. No luck here. straight copy and paste. formCalc check; "dynamic" check; "calculate" event check;- syntax double checked... to my best abilities...- wrote out the references... "form1.Page1.Time1.formattedValue"I tried with normal Text Field.then flipped to a Date/Time Field with time set in the binding. a normal pattern selected in the display tab."0" is displayed in the total field... that's good.what's your Fields like? Text or Date/Time?how are you inputting your value? "12" & "1" or "...
1034
Views
0
Likes
0
Answers
Re: Button over rides prePrint event shawnFMU - Adobe LiveCycle
this is why we shouldn't work late at night... syntax errorNeed to remember == means equal rather than just = mouslander, thank you for double checking!things work as they should be. All is right with the world again.
1168
Views
0
Likes
0
Answers
Re: Button over rides prePrint event shawnFMU - Adobe LiveCycle
Well this is strange...I placed a checkbox field on the page(that hides during print). if I check it, it should allow the page to print.in the prePrint event for the root sub page, I wrote:this.presence = "hidden";if(checkbox.rawValue = "1"){this.presence ="visible";}when I click "print" without checking anything thing the page shows up.When I look back, the check box is checked! I tried:if(checkbox.rawValue = "0"){this.presence ="hidden";}if(checkbox.rawValue = "1"){this.presence = "visible"}sa...
1058
Views
0
Likes
0
Answers
Re: Button over rides prePrint event shawnFMU - Adobe LiveCycle
Originally, the client wanted a instruction page to be screen only and completely non-printing(not even a blank page).So I set hidden in prePrint and visible in postPrint. Now, they are thinking that maybe there should be a button that allows the user to print the page if they really really want to.So I though I need an override button would be the trick.Now I'm thinking set the prePrint event with a statement.. if something is true then hidden, else visible...and that button trigger a value the...
1047
Views
0
Likes
0
Answers
Button over rides prePrint event shawnFMU - Adobe LiveCycle
Is it possible for a button, on the click event, to over ride a prePrint event?I have a form that on prePrint event, a page's presence is hidden, so that not even a blank page is printed.Now I need a button that over rides that this.presence = "hidden"; command.Is there a tag to call out?something like, on click event:this.prePrint().presence = "visible";xfa.host.print(1, "0", (xfa.host.numPages-1.toString()..... Thank you in advance
3861
Views
1
Like
8
Answers and Comments
Simple Time Duration Calculation shawnFMU - Adobe LiveCycle
I need a simple Time Duration Calculation. What I've read and piece together, I can't seem to get it to work.Time2Num and Num2Time...Help!In 1 day, Start time and End time equal how much Total time. Example 1:00 to 3:00 equal 2I've set three Text Fields.Time1Time2TotalTotal text field, Calculate event, JavaScriptvar start = Time2Num(Time1.formattedValue, "HH:MM")var end = Time2Num(Time2.formattedValue, "HH:MM")var dur = Num2Time(end + start, "HH:MM")this.rawValue = dur;Thank you in advance!
2930
Views
0
Likes
5
Answers and Comments
Re: Save a blank form button shawnFMU - Adobe LiveCycle
Great insight MinusZero!Plus your write up on Global Variables help me piece together a working button.I don't think my version is the most effective, but it seems to work.For everyone else interested here's my proof of concept:1Text Field Object: "Test1"1 Button Object: "SaveBlank"Insert a Script Object: "Memory"Memoryvar Test1X = Test1;Test1 // initialize event //this.rawValue = Memory.Test1X;this.rawValue = "";SaveBlank// click event //app.execMenuItem("SaveAs");//preSave event //Memory.Test1...
996
Views
0
Likes
0
Answers
How to save a blank exemplar of the current form? shawnFMU - Adobe LiveCycle
Is it possible to have a button that performs a "save as" and "reset" without actually resetting the current state?So literally a button that saves another blank exemplar of the form itself without deleting the current entries.Thank you in advance
1629
Views
0
Likes
3
Answers and Comments
Re: Dropdown menu selections canceling themselves out shawnFMU - Adobe LiveCycle
Again Brilliant! This works for me!Thank you!
1055
Views
0
Likes
0
Answers
Re: Referencing a script object in another script object shawnFMU - Adobe LiveCycle
Brilliant! This is exactly what I need!Thank you!
1048
Views
0
Likes
0
Answers
Dropdown menu selections canceling themselves out shawnFMU - Adobe LiveCycle
Another dropdown issue. I have selection choice result canceling themselves out?Is there a way to avoid this?DD1 is the dropdown menuTF(*) are just text fieldsIf(DD1.rawValue == "1"){TF1.presence = "visible"; TF2.presence = "visible"; TF3.presence = "visible";}else{TF1.presence = "hidden"; TF2.presence = "hidden"; TF3.presence = "hidden";}If(DD1.rawValue == "2"){TF2.presence = "visible"; TF3.presence = "visible"; TF4.presence = "visible";}else{TF2.presence = "hidden"; TF3.presence = "hidden"; TF...
1733
Views
0
Likes
3
Answers and Comments
Referencing a script object in another script object shawnFMU - Adobe LiveCycle
Can I reference another script object in a script object? All script objects would be under the same Variables hierarchy.I have a dropdown field.In the 'exit' event, the first reference:DropExit.Exit1(this);In the DropExit script object:function Exit1(current){if(Drop.rawValue =="1"){Color1.presence = "visible";} else {Color1.presence = "invisible";}if(Drop.rawValue =="2"){Color2.presence = "visible";} else {Color2.presence = "invisible";}}No problems!But, I would like to do something like this:...
1735
Views
0
Likes
3
Answers and Comments
Re: Multiple Dropdown menu with same selections if/else presence problem shawnFMU - Adobe LiveCycle
Opps! Forgot to flip the references to which dropdown is which.None the less brilliant! Like you predicted it would. This logic works!Thank you, thank you!
1423
Views
0
Likes
0
Answers
Re: Multiple Dropdown menu with same selections if/else presence problem shawnFMU - Adobe LiveCycle
First issue: Opps... yes, there's a mistake in my code. It should be:Dropdown 1selection 1 --> if (this.rawValue == "1") {that1.presence = "visible";} else {that1.presence = "invisible";}...Dropdown 2selection 1 --> if (this.rawValue == "1") {that1.presence = "visible";} else {that1.presence = "invisible";}...Second Issue:I tried the || (and or statement?) and it almost works...I first select "1" from Dropdown1... okay! that1 becomes visible.I then select "2" from Dropdown2... no.... that1 becom...
1050
Views
0
Likes
0
Answers
Multiple Dropdown menu with same selections if/else presence problem shawnFMU - Adobe LiveCycle
I have multiple dropdown menus, all have the same selection choices. All triggers the same visible/hidden presence event on the same objects.All objects default presence state is invisible.All Dropdown fields are all individually named.example:Dropdown 1selection 1 --> if (this.rawValue == "1") {that2.presence = "visible";} else {that1.presence = "invisible";}selection 2 --> if (this.rawValue == "2") {that2.presence = "visible";} else {that2.presence = "invisible";}selection 3 --> if (this.rawVa...
2721
Views
0
Likes
4
Answers and Comments
Re: Disable Script Error window shawnFMU - Adobe LiveCycle
I guess it's reasonable to say Designer just process FormCalc differently than JavaScript.. which leads to limitations.With that said, does anyone know a good place to learn a crash course on how to write up a sum script in JS.Sounds like I need to know Var and ++i++ and real programing stuff.All I need is two examples.Field A needs to add up table column values from fields "aa" and "bb"Field B just needs to add up table column values from "cc"
998
Views
0
Likes
0
Answers
Re: Disable Script Error window shawnFMU - Adobe LiveCycle
Having it be in JavaScript would be better than in FormCalc? I guess the question would be, why would FormCalc trigger an error/alert message?
994
Views
0
Likes
0
Answers
Re: Disable Script Error window shawnFMU - Adobe LiveCycle
Here's a screen cap.I understand the error... but... I through it would beeasier to just hide the error window.
1004
Views
0
Likes
0
Answers
Disable Script Error window shawnFMU - Adobe LiveCycle
I have a formCalc scripts referencing in a subform instance that's set at zero and remains "hidden" on initial opening of the file.Script debugger windows kicks in when the file is open saying there's an error cause there's not instance of it yet...Can I disable the script debugger window?Thanks in advanace!
2780
Views
0
Likes
8
Answers and Comments
Re: Calculations with instanceManager Count shawnFMU - Adobe LiveCycle
I've solved my own syntax errors.the solution for a Logic IF statement in formCalc under Calculate event:if (RepeatWrap.instanceManager.count eq "0")then$.rawValue=sum(Table1.Row[*].Cell8)else$.rawValue=sum(Table1.Row[*].Cell8+(RepeatWrap[*].Table1.Row[*].Cell8)end ifHope this serves as a good reference.
994
Views
0
Likes
0
Answers
Calculations with instanceManager Count shawnFMU - Adobe LiveCycle
I have a total sum field that takes values from two different subforms. One subform has an initial count of 0.If users want, they can "add" that subform into view.So, I imagine I need two if conditions for my calculations. One with only 1 subform and one with 2 subforms.under calculate eventformCalcI tried this:if (RepeatWrap.instanceManager.count == 0 ) then$.rawValue = Sum(Table1.Row[*].Cell8);else$.rawValue = Sum(Table1.Row[*].Cell8)+Sum(RepeatWrap[*].Table1.Row[*].Cell8);endifRepeatWrap is t...
1220
Views
0
Likes
1
Answers and Comments
Likes given to
Likes from