Is it normal on a client script to have a delay after clicking save when using the saveRecord function? Or is it probable that its related to my code ?
s
Sandii
12/03/2020, 9:18 PM
It's "normal" in that your code is doing something before the save action can take place. The delay is most likely related to your code or any other code running on save, yes.
k
Kit Vera (she/her)
12/04/2020, 12:13 AM
If your code is iterating through any sublists, it could take a while...
g
Gail Kasnett
12/06/2020, 7:38 AM
@Kit Vera (she/her) any suggestions on how to speed up, or this is just how it is?
k
Kit Vera (she/her)
12/07/2020, 5:39 PM
That is a good question and depends on what you are doing. Possibly create an array of the lines in memory and iterate over that or use a user event beforesubmit if you can.
Kit Vera (she/her)
12/07/2020, 5:43 PM
Accessing a field on each line in a client script just has a lot of overhead.
s
Sandii
12/07/2020, 5:44 PM
Anything taht can be offloaded from client to server is ideal.