Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 86170

Re: Dynamic Form is painfully slow to open and edit

$
0
0

Hi,

 

So you are saying that the operation was successful but the patient died.

 

Try this form, it's still slow but then most things are on my old computer, hopefully yours is not eight years old and it runs ok for you.

 

https://sites.google.com/site/livecycledesignercookbooks/home/Log_Sheet.modified.3.pdf?att redirects=0&d=1

 

I have made the following changes;

 

  • Move the code back into the columns under repTotalTotals, and teamTotals, so only the calculations that need to be done are executed.
  • Added a variable to the ItemSet subform (called ClientCode).  This is updated by the Client dropdown and used by the calculate scripts, but variables aren't added to the calculation dependency list so selecting a client doesn't cause the whole form to re-calculate.
  • The team calculation script only looks at the Client/Rep totals (not the individual ItemSet rows), if I understand the form correctly this should be ok and cuts out a lot of rows.
  • Moved the lineNo value calculation from the layout:ready event to the calculate event.  layout:ready is called pretty much when anything happens anywhere on the form.

 

The scripts are now in a script object (called "Script"), so if it is still too slow and you want to go with a "calculate button", the code in the click event would just be a series of calls to the, e.g.

 

teamTotals.teamCorrespTotal.rawValue = Script.CalcTeamTotals(P1, "correspTotal", "correspTotal");

 

Hope it helps this time.

 

Regards

 

Bruce


Viewing all articles
Browse latest Browse all 86170

Latest Images

Trending Articles



Latest Images

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