Usage of Load()within with()

Hello Folks,

 

can anybody give me a use case/ scenario where load() function is used within a with() function.

 

Thanks In Advance.

 

Regards,

Amit

  Discussion posts and replies are publicly visible

Parents
  • Hello Amit

    Everytime you load the page and you have some filters you place the filters dropdowns on the load (because you want to load them once. Even you can load the initial information to display on the grid, in this scenario you have to load the grid information again if the user clicks a button or sort the information on the grid.

    In the same scenario above if you want the information to be updated right away after the user changes the filter then you need to load all the filters In the load, and inside that load a “with” function loading the information for the grid. In this case you don’t need to wait until the user clicks the button. When the user changes the filter the information will be updated.

    One specific example for with.
    You should use with as well in a expression rule on which you want to make some processing on the information and you want to split the logic in a “understable way”. to do that you need variables. In this case you want to ensure your variables get the proper values everytime you call the rule, let’s say in the same screen. To ensure that all the variables in that rule should be created within a “with”.

    Hope this helps

    Jose
Reply
  • Hello Amit

    Everytime you load the page and you have some filters you place the filters dropdowns on the load (because you want to load them once. Even you can load the initial information to display on the grid, in this scenario you have to load the grid information again if the user clicks a button or sort the information on the grid.

    In the same scenario above if you want the information to be updated right away after the user changes the filter then you need to load all the filters In the load, and inside that load a “with” function loading the information for the grid. In this case you don’t need to wait until the user clicks the button. When the user changes the filter the information will be updated.

    One specific example for with.
    You should use with as well in a expression rule on which you want to make some processing on the information and you want to split the logic in a “understable way”. to do that you need variables. In this case you want to ensure your variables get the proper values everytime you call the rule, let’s say in the same screen. To ensure that all the variables in that rule should be created within a “with”.

    Hope this helps

    Jose
Children
No Data