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
What properties of an Exception Handler can be configured?
-Abort transaction
If true, it rolls back all DB changes which were made so far by the process which raiosed the exception. Is only available on server side/server actions.
-Log Error
Defines if the error should be logged in the OS platform logs. If configured for Client side actions, the logs will be synced as soon as the user is online
-What is available in the monitoring for the App?
Details About:
- Error Logs
- Database query durations
- Web service cvalls
Where can monitoring be accessed?
In the monitoring tab of OS Servicecenter under myName.outsuystemscloud.com/servicecenter
Can I refresh an aggregate in a Client action?
No, Aggregates can only be refreshed in screen action
Assume data is fetched in a screen action by an aggregate, how can I refresh the agrregate after updating the corresponding entities?
You can only refresh screen aggregates in a client action. The only way ist to call another aggregate to obtain the modified data.
Can I use functions in an aggregate, e.g. to calculate data in a calculated attribute?
Yes, you can. Even self programmed User functions. But you can not pass the data which should be fetched as an input to it.
If you bootstrap data from a sheest of an excel with several sheets, what will be the name of the table?
The name of the selected sheet.
If you perform an advanced SQL query, what is the correct structure?
- SELECT * FROM Entity.Name
- SELECT * FROM [Entity].{Name}
- SELECT * FROM {Entit}.[Name]
SELECT * FROM [Entity].{Name}