Langsung ke konten utama

Postingan

Menampilkan postingan dengan label datasource

Tutorial: refresh, reread, research, executeQuery

1. Common mistakes Often, developers call 2 of the mentioned methods in the following order: formDataSource.refresh() formDataSource.research() or formDataSource.reread() formDataSource.research() or formDataSource.research() formDataSource.executeQuery() or formDataSource.research() formDataSource.refresh() / formDataSource.reread() All of these are wrong, or at least partially redundant. 2. Refresh This method basically refreshes the data displayed in the form controls with whatever is stored in the form cache for that particular datasource record. Calling  refresh()  method will  NOT  reread the record from the database. So if changes happened to the record in another process, these will not be shown after executing  refresh() . refreshEx Does a redraw of the grid rows, depending on the optional argment for specifying the number of the record to refresh (and this means the actual row number in the gr...