offline dropdowns with online data - RDMLX

Please mark posts as being for RPG or RDMLX (LANSA) developers.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
dhnaigles
Posts: 28
Joined: Tue May 08, 2012 12:13 am

offline dropdowns with online data - RDMLX

Post by dhnaigles »

One of the best uses for the new offline capabilities is to "cache" relatively static table data, for dropdowns and other possible validations or display functionality, as offline tables. I have modified the LREX0301(Download Data) and LREX0310 (Working Offline and Online) to demonstrate this functionality. the schema has an additional offline table named "Departments" and the "Employee" table has a new column name "Department". I download the department data from DEPTAB only once and use the offline Departments table to populate a dropdown whether I am working offline or online. Even if you don't expect to work offline, this will improve overall performance, reducing the i/o between the device and the server. I have attached a sample new schema along with the modified code for the forms.
Attachments
DHNOfflineDemo.zip
(14.99 KiB) Downloaded 368 times
New Version of LREX0310.txt
(6.86 KiB) Downloaded 400 times
New Version of LREX0301.txt
(7.28 KiB) Downloaded 422 times
Regards,

David
Post Reply