Does Business Object .Refresh() method work in 9.2.1?

 

Hi,

 

I've a query around the Refresh() method on a business object.  I haven't been able to get it to successfully work.  No call to the database occurs when it is called.

 

Based on the below link and excerpt from the designer user guide it should call the query again - or am I missing something.  I've attached a sample solution that I would have thought would update the grid when the button is clicked.

 

Thanks

 

J.

 

/awd/forums/questions/3408624

 

Using the Business Object’s Refresh Method

The Business Object Refresh() method enables a Query Business Object to reload its content
by retrieving data from the database.

Example

Consider a 'Code Activity' that retrieves data into a Grid from a Query Business Object
bound to a database table, and then subsequently adds data to the database table. For
improved performance, the Query Business Object does not refresh itself by making a call
to the database and displaying the newly added data on the Grid. However, if you need to
reload the Query Business Object, use the Business Object's Refresh() method as follows:

UsersListData1.Refresh();
// UsersListData1 is a Query Business Object

 

 

 

Tagged: