Local storage and offline Flashcards
How can you create a local copy of xerver side entities?
Right click on Local Storage and select “Add Entity from DB…”
What are the restrictions on local entities?
- No data preview available
- Can’t be bootstrapped
How can I secure small amounts of sensitive data in the local storage?
- Use the device’s Keystore/Keychain with the Keystore Plugin from the forge, then the encryption is done by the device itself
- Use a Javascript encryption frameto encrypt data before storing it. Then youn still need to secure the encryption ke, this can be done using the keystore
How can I secure large amounts of sensitive data in the local storage?
- Encrypt the whole local storage with the Ciphered Local Storage Plugin
- Then you have a performance overhead
What Sync Actions are available wnd where are they?
The Synvc actions can be found in the Logic Tabs's folders Client/Server actions. Client Actions: -OfflineDataSync -OfflineDataSyncConfiguration -TriggerOfflineDataSync Server Actions: -ServerDataSync
What is the content of the offline data sync event block?
Actions: -On Configure -On Sync -Trigger OnSyncStart/Error/Complete Events -OnSyncStart/Error/Complete
How can I react to a Network Status Change?
There is a Network Status Changed block with event which is part of the MobilePatterns/Private Section
When could you do offline data sync?
- OnLogin
- OnOnline
- OnResume
What are the OfflineDataSync Config variables? What are their default settings?
- SyncOnOnline False
- SyncOnLogin False
- SyncvOnResume False
- SyncOnError False
- RetryIntervalInSeconds 30
How is the OfflineDataSync called in the TriggerOfflineDataSync Routine and what are the parameters?
It is an action from the SILKUI private block which will start the sync to run in background. The parameters are:
SyncUnit
-DiscardPendingSyncUnit
What are the typical Sync patterns?
-Read Only Data
Read Only Data - Optimized
-Read Write Data - Last write wins
-Read Write Data - With Conflict Detection
What buttons/functions are available while debugging?
- Step over
- Step into
- Step Out
- Break on all Exceptions
How are watches used in debugger?
Right click on variables, their content is then listed and updated in the watches tab of the debugger
How is an exception handler selected?
OS always chooses the most specific one. If no handler applies in current context OS bubbkles up until arriving at the GlobalException handler
Where can the global exception handler be configured?
In the Onexception action in Folder Common of UI Flow