Load() and with() function difference

 Can Somebody explain the conceptual difference between load() and with() function ? what if I use a rule which is declared inside load() function and again use it without load() function in a form , what will be the difference ? Can somebody explain please.

  Discussion posts and replies are publicly visible

Parents
  • Hi Sounik,

    Load()-->Load variables are evaluated only once when the form loads .
    whereas
    with()-->with local variables are evaluated everytime user interacts with the page.
    With ,local variables are used to create Dynamic SAIL Interface, One of the Best example of dynamic SAIL is Cascading dropdown
    which means values of second dropdown depends on the value of first dropdown, in that case you will want to evaluate or fetch values from DB everytime user changes value in first dropdown.
    this local variable should be inside with(),

    Thanks
    Namrata
Reply
  • Hi Sounik,

    Load()-->Load variables are evaluated only once when the form loads .
    whereas
    with()-->with local variables are evaluated everytime user interacts with the page.
    With ,local variables are used to create Dynamic SAIL Interface, One of the Best example of dynamic SAIL is Cascading dropdown
    which means values of second dropdown depends on the value of first dropdown, in that case you will want to evaluate or fetch values from DB everytime user changes value in first dropdown.
    this local variable should be inside with(),

    Thanks
    Namrata
Children
No Data