Anybody can explain the difference between load and with functions?
Discussion posts and replies are publicly visible
Hi Please check these related posts community.appian.com/.../56363 community.appian.com/.../usage-of-load-within-with
Thanks and Regards,
It's simply not true to say that load() is faster than with() - they are extremely similar functions that satisfy slightly different requirements. Neither one is any faster than the other, but incorrect use of with() could cause your interface to perform poorly.
Use of load() and with() as part of an expression makes no difference at all as far as speed is concerned.
load(): While loading the page, local variables value are assigned/mapped. This mapping happens only once. local variables associated with load are the used for storing the value if any internal calculation needed. with(): This function differs from the load() function because it recalculates the local variable values after every user interaction with the interface. A local variable may be defined with or without a value, and the value may be simple or complex. When a value is not defined, it's assigned a null value.
For further specific information with example follow the below Appian docs links docs.appian.com/.../fnc_evaluation_load.html docs.appian.com/.../fnc_evaluation_with.html
© 2021 Appian. All rights reserved.