I am doing mobile online training course.
After creating the local storage I could not select the values on ToDoDetail Page's Category
How can solved this issue
Hi Benjith Sam
Thank you very much.
issue is solved
Hi @Dilmi Hashara Amarasingha.
Seems if you clean all local storage you also clean the values from the local Category, that's why they not appear.
You need to sync again.
If you need assistance with the code please share the oml, because the file that you shared does not work.
Regards
Gonçalo Almeida
Thank you Goncalo Almeida
Hi Dilmi,
I have checked the shared .zip > .oml files, from which I could say that the dropdown list was empty because you missed the Data Synchronization logic implemenation. When you create the local entities, at first the local stoarge is empty, you will have to pull the data from the server entities to the respective local entities (manually define the data sync logic + set the Offline Data sync configuration parameters value).
Refer to the below-mentioned links for better understanding:
https://www.outsystems.com/training/courses/170/data-synchronization/
https://success.outsystems.com/Documentation/11/Developing_an_Application/Use_Data/Offline/Implementing_Offline_Sync
https://success.outsystems.com/Documentation/11/Developing_an_Application/Use_Data/Offline/Sync_Framework_Reference
Please find the attached updated .oml file.
I have incorporated the logic/code to sync data, only for LocalCategory entity from the respective Category server entity.
The short-cut (scaffolding) way to create the basic data sync logic for an Local Entity is to
1) Select the "Create Action to Sync Data (read-only)" right click option of an local entity (as shown in the below image), which you automatically create the basic data sync client & server action (under Logic Tab).
2) Add the newly created Data Sync client action to the OfflienDataSync client action flow (Logic Tab > Client Actions > OfflineDataSync)
3) Update the OfflineDataSyncConfiguration values as per your requirement (Logic Tab > OfflineDataSyncConfiguration client action)
4) Logout the application and re-login the application (SyncOnLogin=True), then you will see the category dropdown populated with list of categories value.
Hope this helps you!
Kind regards,
Benjith Sam
You're welcome, Dilmi.
I guess you have mistakenly marked your post as solution :)
Glad to help you :)