Synched records available to query in offline mode for mobile?

Certified Lead Developer

Hi All,

We have requirement to provide one offline mobile form as a site visit task. There engineer needs to search the customer from synched customer record. 

just want to know is this synched record available offline to query? if not available what is the best way to achieve the same.

Thanks is advance.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Hi  , 

    If you still need an answer - yes you can query a synced record. However, you must query the record type in a local variable at the top of the parent interface and cast the results to a CDT or map().

    Here's an example design pattern for offline forms to cast the results of a synced record query to a list of a!map() (or you can replace a!map() with your CDT type):

    a!localVariables(
      local!queryData: cast(
        a!listType(typeof(a!map())),
        a!queryRecordType(...).data
      ),
      a!formLayout(...)
    )

    I hope this helps

Reply
  • 0
    Certified Lead Developer

    Hi  , 

    If you still need an answer - yes you can query a synced record. However, you must query the record type in a local variable at the top of the parent interface and cast the results to a CDT or map().

    Here's an example design pattern for offline forms to cast the results of a synced record query to a list of a!map() (or you can replace a!map() with your CDT type):

    a!localVariables(
      local!queryData: cast(
        a!listType(typeof(a!map())),
        a!queryRecordType(...).data
      ),
      a!formLayout(...)
    )

    I hope this helps

Children
No Data