Forum Post: RE: Private Cloud: Progress Mobile

  • Thread starter Thread starter Anil Kumar
  • Start date Start date
Status
Not open for further replies.
A

Anil Kumar

Guest
In order to populate the related elements in the Mobile App Builder's combo drop down via picklist we need to use the relational service that gets generated as part of the Mobile App creation with selected/exported views. Following example illustrates usage of relational service in Mobile App Builder. Considering Customer Order Example: Customer Page: · Invoke a JSDO Service for Customer and on success: · Invoke a Service to read the Customers (either just id and name with getAll_Customer or use the getView_All_Customer to get all fields) · Map the fields you would like on the List to Labels/placeholders (Name and any other fields you want on the screen inside your list) · Create a hidden field inside the list called CustomerId and map the ID field (from Customer) to this hidden field · On Click of the List set a LocalStorageVariable that maps localCustomerId to the CustomerId Text (Bind to component) · On Click (after the above) Navigate to your Order Page Order Page: · On Page-Show (or Load depending on single vs multi pages) invoke the Service OrderJSDO List of Orders related to Customer: · On Page-Show (or Load depending on single vs multi pages) invoke the Service rcustomer_getAll_R2233984 · On the service above Map localCustomerId (local storage variable) to the ID on the request · Create a list and place a OrderName label and a hidden OrderID inside your list · Map the GenericData from rcustomer_getAll_R2233984 response to the list Item (multiple records) · Map Name to the label OrderName · Map ID to the hidden label OrderID Order Details: · On Click of the OrderList set a LocalStorageVariable that maps localOrderId to the OrderID Text (Bind to component) · On Click of the OrderList (after the above) invoke the Order_Read service and pass localOrderId (localStorageVariable) as the filter on the request · Map the Order_Read fields from the response to you details on the screen Hope this helps. Thanks and Regards, Anil Kumar. From: mobiletest [mailto:bounce-mobiletest@community.progress.com] Sent: Sunday, August 24, 2014 5:23 AM To: TU.Rollbase@community.progress.com Subject: RE: [Technical Users - Rollbase] Private Cloud: Progress Mobile RE: Private Cloud: Progress Mobile Reply by mobiletest I am able to show picklist values on mobile from an Rollbase object. But when this object has relationships to other objects (field Rxxxx), and I want to show these field values as a picklist, then the values are empty. I have added the objects allready as core objects when creating the mobile application. Any idea? Stop receiving emails on this subject. Flag this post as spam/abuse.

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