How does states affect the memory of a K2 Form ?

  • 5 March 2018
  • 1 reply
  • 0 views

Badge +10

I have a 8 Level Approval Workflow... have a Buttons View for each Approval with

Approve

Reject

Rework

Re-Submit

 

This bring about 16 Different States in the Form and now is very slow... return some loop error that we mitigate increasing the memory.

 

However the form is very slow on Edit.. I wonder if somebody can comment how does a state affect the memory of a K2 Form... surely is not the same to have no states and 10 Views in the From than have 16 States with the same views... 

 

The Browser constantly crashing... =(

 


1 reply

Hello,


 


States are great for setting up a couple of different scenarios, but excessive use will cause a lot of front load. I believe the Form loads up with all State layouts and rules and then passes the State value in. 


 


I recommend a couple of things. Try creating a couple of different forms with SaveAs that will handle 3-4 states. This way only 3-4 states are being loaded instead of 16. We would then just have 4 separate Forms of 3-4 states each and I think this would help a lot with the loading up front. 

Reply