Forum Post: RE: Rollbase Mobile: Could't get the related records fields

  • Thread starter Thread starter egarcia
  • Start date Start date
Status
Not open for further replies.
E

egarcia

Guest
Hello, As it has been mentioned, you need to use either use the getViewAll or the READ service to obtain the details of the related records. Depending on your requirements and the number of records that you are handling, you could do the following: a) Use the getAll_R service to return the related records and then use the READ service to get the detail of a given record. b) Use the getAll_R service to return the related records. Then use getViewAll on the related table to get all the records and process them to select the records returned by getAll_R. For this approach, you could use the addRecords() API in the JSDO to populate the related table with the results then use the READ service with the option readLocal = true to show the details for the related records in a list. Notice that this approach is to display a list of the related records with the detail, the expectation is that the processing of the related records returned by getAll_R is fast enough that it is ok to read all the records and filter them based on what is returned by the getAll_R service. Please let me know if you are interested on approach b) since I can share a project that uses the logic that I described. I hope this helps.

Continue reading...
 
Status
Not open for further replies.
Back
Top