These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Form Slow

andredup
Registered: Apr 13 2011
Posts: 6

Hi
 
I have made myself a logbook, but with my very limited knowledge of LiveCycle the form is very very low. The problem lays at my hidden row, but how do you post the file?
 
Appreciate the help
 
Thanks

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
post the file to www.acrobat.com. The initial membership is free.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

andredup
Registered: Apr 13 2011
Posts: 6
Hi Thom

Thanks:https://acrobat.com/#d=TEwxn8vzQmK5oJFMbIAa6Q. The formula I used are wrong,but I dont know any other.
Thank you for your help.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
This is an amazingly busy (with scripts), and very slow form. I'm not sure exactly what is causing it to be so slow, but there are some things you could look at.

First, there is a bad reference to a subform in the initialize event for the table header. The addInstance function for rows in the table is called by a click on the date field. This is not a good choice. If the user changes a date a new row is added and they can't get rid of it. There should be an Add Row button.

The initialize events for the "Hide" row all contain loops. I don't know what it's trying to do but the code seems unnecessarily complex. The Hide row is also setup as a table within a table. You might want to consider just using a row. The table in table configuration might be complicating things.

I would suggest that you remove all scripts from the form and the table in table setup. If the form doesn't speed up then there is another problem, probably structural. If it does speed up then you know it's the scripts.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

andredup
Registered: Apr 13 2011
Posts: 6
First of all, thanks for your help.

To be quite honest, I have no experience what so ever for using Livecycle, I have built this log by see what other people did with their form and put it into my form. If I could ask you to help with the form, would be great, by just fill in the first p1 column. Because I am about to give up.

Thanks again


thomp
Expert
Registered: Feb 15 2006
Posts: 4411
If you would like professional help with the form I'd suggest making a posting on the Job board. But you could also post this topic at the adobe LiveCycle Designer forums.
http://forums.adobe.com/community/livecycle/livecycle_es/livecycle_designer_es

I've been led to believe that there are Adobe support engineers on those forums that are providing form analysis and fix-ups for free.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

andredup
Registered: Apr 13 2011
Posts: 6
I found the problem, it is the formulas in the hidden row,if you delete this, the form speeds up. But cant find other formula to work.

Thanks for you help, much appreciated.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
What is it that you want the hidden row to do? All those scripts were activated when the form loaded, not while it was running.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

andredup
Registered: Apr 13 2011
Posts: 6
I want a grand total for the very same page and pages before. All the calculate scripts I used,show the same total on all the pages,so I made the hidden row to 'calculate' the totals forward row. Its very confusing but thats the only way I got it to work.
I tried adding pagetotal and totals forward, but only give a grandtotal when going to a new page.

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Ok, you need to adjust your methodology. You need a trailer subform in the table. The trailer at the bottom of the repeated subform on each page. Then use calculation scripts to show the page total. You might want to create a single script to calculate all the totals so the the loop is run in only one location.

Be advised that you are scripting a slightly advanced feature. To pull it off cleanly you'll need to learn a good bit about LiveCycle scripting.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Ok, you need to adjust your methodology. You need a trailer subform in the table. The trailer at the bottom of the repeated subform on each page. Then use calculation scripts to show the page total. You might want to create a single script to calculate all the totals so the the loop is run in only one location.

Be advised that you are scripting a slightly advanced feature. To pull it off cleanly you'll need to learn a good bit about LiveCycle scripting.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

andredup
Registered: Apr 13 2011
Posts: 6
Thanks for your input, I will try to get the info you posted above, but I guess it will get a while to get to slighty advanced,hehe.

Have a nice day