Offline Support - Which records show up?

  • 1
  • Question
  • Updated 7 months ago
  • In Progress
Am I correct to assume that models load locally cached records?

What would happen in this scenario.

1. User logs into Salesforce for first time and only goes to Skuid Accounts Tab page and 10 records load. The model has 8 fields.
2. They click on the first record and opens Skuid Account Detail page which has an additional 7 fields and 3 additional related lists/models.
3. User goes offline.
4. User goes back to Accounts Tab and clicks on second record.

So, what happens here? The second record should be cached with the 8 fields, but the Account Detail page has 15 fields. What is shown to the user for the additional fields? What is shown for the related lists?
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb

Posted 7 months ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Currently, accessing the second record would fail when in offline mode, Skuid is only able to access the results of Model queries that have previously been made by that user in the browser that they are using Skuid from. So if the user has visited records 1 and 3 but not two, the user would only be able to view 1 and 3 when offline. 
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Got it. Fail how specifically? A specific message about how it's not available for offline mode? Generic error message?
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
The request to load the Model data will fail, with a "Network Request Failed" error.