Load Command and Load Method in User Events

Official Content
This documentation is valid for:

The Load command and the Grid Load method are used within User defined events in Web Panels, SD Panels and Work With for Smart Devices objects in order to force the loading of a new line into a Grid control.

The Web User Experience property has to be set to "Smooth", so that the Load command and the Load method add a new line into the grid, without refreshing the whole grid in the process.

Scenario of use

For developing a messaging page, as explained in HowTo:Develop a messaging web page, we will need to guarantee that when a user adds a new comment, all other users who may be also editing the page will receive the first user's comments, without losing what is typed at their end.

Technically, the grid must not refresh as a whole when a Web Notification arrives and it is added to the comments grid.

In this case, the Load command adds a new line to the grid without refreshing the grid. So, if any other row is being edited it will be kept unchanged.

Note

Consider that in particular the Load command can be used within User defined events only if the object contains one grid. One the other hand, if the object contanis more than one grid, use the Grid Load method.




Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.