since ‎08-07-2009
‎10-12-2019
Woodland_butche
Level 1
Re: Automatic row numbers in the dynamic table
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
HiHope this helps

Views

117

Likes

0

Replies

0
Re: Automatic row numbers in the dynamic table
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Niall! Once again Thank you for your help!I've seen the books you've recomended to Greg I'll try to read them to improve my scripting in LC.If I can somehow to return your favor please let me know!Best regardsAlex

Views

94

Likes

0

Replies

0
Re: Automatic row numbers in the dynamic table
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Nial, thnaks for your help, the script you gave me is 50% solution I solved the error message but the calculation after second condition does not perform.Would you have a look a the table please?Thanks a lot

Views

94

Likes

0

Replies

0
Re: IF ... Else statement formula help needed
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Paul,would you be able to help me with this one as well, please? form1.SubTable.Table2.Row1[0].Total::calculate - (FormCalc, client)if (AmountNet > 0) then Total = AmountNet + VATelse (AmountNet == 0) and (ExchangeRate > 0) Total = AmountForeign /ExchangeRateendifit still gives me an error.ThanksAlex

Views

47

Likes

0

Replies

0
Re: Automatic row numbers in the dynamic table
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Hi, I just figure it out the answer for my frst question:form1.SubTable.Table2.Row1[7].ItemNumber::ready:layout - (FormCalc, client)this.rawValue=this.parent.index+1But still need your help for second one,please

Views

92

Likes

0

Replies

0
Automatic row numbers in the dynamic table
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Hi, with your help I've almost completed my table. My table has 18 rows and it has add row btn. Is it possible automate numbering of the rows so that when I add rows they will have numbers automaticly. I've tried indexing but it doesn't work.this.rawValue=this.parent.indexI'm trying to improve also a calculation script and for some reason I do get and error. Will you be able to let me know where the errror is. My script is:form1.SubTable.Table2.Row1[0].Total::calculate - (FormCalc, client)if (Am...

Views

1.6K

Likes

0

Replies

8
Re: Rows in a Dynamic table disappear after edge of the page.
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Thank you all for your advice I've managed to get it working ok.

Views

29

Likes

0

Replies

0
Rows in a Dynamic table disappear after edge of the page.
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Hi I have a dynamic table with two buttons : 'add row' and 'delete row' I have two problems:1. is it possible to add more than 1 row at the time?2. How to make my document to add new page when the rows reached the edge of the content area?I have attache my docThanks a lot

Views

749

Likes

0

Replies

3
Re: IF ... Else statement formula help needed
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Harray! It works!!!!!

Views

50

Likes

0

Replies

0
IF ... Else statement formula help needed
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Hi, I have a table with several colums and I need to perform a simple calculations between them the scrip for it looks like thisform1.#subform[0].SubTable.Table1.Row[0].Total::calculate - (FormCalc, client)if (AmountNet > 0) then Total = AmountNet + VATelseif (AmountNet == 0) then Total = AmountForeign * ExchangeRateendiffor some reason the first part of the staement is working I cannot figure it out why second part does not.Can some one advise please?Thanks a lot

Views

1.9K

Likes

0

Replies

10
Re: Please help with scrip for calculation
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Niall, Good morningI've done the calculation script, but the first part of it is working it adds two cells, but the second one is not.I've attached the file can you have a look please?Thank you

Views

51

Likes

0

Replies

0
Re: Please help with scrip for calculation
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Naill, what is thisyes I have a dynamic table but I don't know how to do "addinstance" to it?Or may be I have not explained it correctly?I have a dynamic form with table on it, table has pre-set number of rows and pre-set number of columns.Item NumberDescriptionIT1Descr1IT2Descr2What I was thinking is as soon as user click into Decr1 cell and enter data than cell IT1 = 1 (for the first row) if no data will be entered then IT1 = 0the same should apply for cell Descr2.But may be there is a better ...

Views

52

Likes

0

Replies

0
Re: Please help with scrip for calculation
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Naill,I cannot find my error?form1.#subform[0].Table1.Row1.Total::calculate - (JavaScript, client)if (form1.#subform.Table1.Row1.AmountNet > 0) then form1.#subform.Table1.Row1.Total = form1.#subform.Table1.Row1.AmountNet + form1.#subform.Table1.Row1.VATelseif (form1.#subform.Table1.Row1.AmountNet == 0) then form1.#subform.Table1.Row1.Total = form1.#subform.Table1.Row1.AmountForeign * form1.#subform.Table1.Row1.ExchangeRateendifAlso I have 1 column called "item number" and second "Description" do...

Views

51

Likes

0

Replies

0
Re: Please help with scrip for calculation
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Niall,can you tell me the easiest way to perform calculations in LC, please?Im thinking of something similar to excel calculations between numeric fields?Thanks a lot

Views

53

Likes

0

Replies

0
Re: Please help with text boxes
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Thanks Niall, as always helpfull

Views

87

Likes

0

Replies

0
Please help with text boxes
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Can somebody help me wit hmy problem. I have a fom with many tables in it, some cells of the table are text boxes or at least they were when I developed it. Now I need to edit some of the cells and for some reason I cannot do it as the cell is not a text box but became (untitled) I cannot change its type back to text. Can some one advise what to do whitouh retyping text again in the new cell.Many thanks in advance

Views

2.0K

Likes

0

Replies

12
Re: Shrinking Text Fields
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Niall,ThanksIt does work!!But it messd up all layout of the form and if I need to add say text fiel it will be placed right next to the previous object and not where I need it? Or for some reason it throw the object at the very end of the last page?Am I doing soemthing wrong?Thanks

Views

168

Likes

0

Replies

0
Re: Shrinking Text Fields
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Naill,Thanks for that trick, but when I use it the content of the doc disappearing after it reach the edge of the page?I' ve ticked the box allow page breaks within the content.I've tried to wrap the text fiel into subform - does not happening. I understood that sub form has to have a tick in 'allow page breaks within the content' by mine for some reason shaded?ThanksAlex

Views

164

Likes

0

Replies

0
Re: Shrinking Text Fields
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
AJP!Can you help me with the script for textfield inside the table row to expand and shrink it depending on the content size? I've tried to look at your one but could not figure it out what part is doing it?Thank you in advance

Views

174

Likes

0

Replies

0
Re: Create a Table of Contents in LiveCycle Designer
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Niall, good morning!Soory to bother you. Do you know the solution to the following problem:In my form if you say tab on to tick box and do paste than in random place a comment box will appear with text from the clipboard. Is it possible to stop end user to paste into the field of the document but allow them to paste into the text fields?Thank you

Views

360

Likes

0

Replies

0
Re: Create a Table of Contents in LiveCycle Designer
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Niall!I've managed to get it to work, I had to paste a new page and move staff into it but it did the job!Thanks a lot for the script!Next task is shrinking and contracting text fields.Best regards

Views

369

Likes

0

Replies

0
Re: Create a Table of Contents in LiveCycle Designer
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Strange things going on with my form. The first button doesnot want to work, however I followed the same principle and 10 other buttons work perfectly. I still cannot figure it out where is the trick with first one?

Views

382

Likes

0

Replies

0
Re: Create a Table of Contents in LiveCycle Designer
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Naill,I've done everything as you said look:first file (button1.jpg) shows script ofr the button andsecond (target. jpg) script for the obgect on the page 3and when I try to test it debugger still pops up with error:page3 is not defined1:XFA:form1[0]:page2[0]:Table5[0]:Row1[2]:Button1[0]:clickpage3 is not defined1:XFA:form1[0]:page2[0]:Table5[0]:Row1[2]:Button1[0]:clickThanks a lot for your help with this.

Views

361

Likes

0

Replies

0
Re: Create a Table of Contents in LiveCycle Designer
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Niall when I've tried third option I'm getting an error:page3 is not defined1:XFA:form1[0]:#subform[3]:Table5[0]:Row1[2]:Button2[0]:clickI've looked at scriptand this is what I have for that page counter:----- form1.#subform[6].thisPage::click: - (JavaScript, client) ------------------------------------I cannot add page3 to this description.What I'm doing wrong?Thanks

Views

361

Likes

0

Replies

0
Re: Creating a TOC
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Hooray!!! It works!Great +1 to you Niall. Do you know if it is possible not to count pages but some how link to object on the required page. Because at the moment my document is static and all text fields restricted to the size of the visible area therefore if I'll make it dinamic page numbers will be changing depending on the end user and how much infor they will put into text field.How would I refer to the text subform?Thanks a lot!!!

Views

400

Likes

0

Replies

1
Re: Creating a TOC
Avatar

Woodland_butche

Woodland_butche
- Adobe LiveCycle
Niall, hiI was trying to follow your advice and coppied this code after the click event and see what happened - simply nothing works, is it possible for you to correct this script. I have no idea about syntax in JAVAscript. My doc is about 40 pages and it would be nice to be able to switch between sections quick.Thank you

Views

400

Likes

0

Replies

4