Private Cloud: Progress Mobile

Posted by mobiletest on 19-Aug-2014 15:44

Is it also possible to create mobile apps for portal pages? We want to create an app where the users are stored in an visitor object. Because we have seen - when creating a mobile app - that the login (as default) is related to the main USER login of rollbase. Is it possible to create a login for portal visitor, and how to achieve this? 

All Replies

Posted by Shelley Chase on 19-Aug-2014 16:38

It is not possible today to login to a mobile app as a portal visitor. We know this is a needed use case and are working on ways to support this in the future.

-Shelley

Posted by mobiletest on 20-Aug-2014 12:42

Shelley, thanks for the info. It is really a must have to interact with portal users with mobile. This will be great enhancement in the future!

Posted by mobiletest on 20-Aug-2014 16:16

Another question: We've noticed that the list is emtpy when clicking on create new -> Database services. Is this functionality available for private cloud users (normally it refers to: mobile.rollbase.com/database to create mobile databases)?

Posted by Anil Kumar on 21-Aug-2014 01:27

Hi,

A 'Database service' can be created against a database which was created in the Mobile App Builder. A new database can be created from the 'Mobile Applications Monitoring Dashboard' page which can be launched by invoking Push Notifications option in the Rollbase environment.

However, creating a new ‘Database service’ against a database created in Database tab (through Mobile Applications Monitoring Dashboard) is not supported usecase for the Rollbase Mobile. This scenario will bypass the Rollbase usage.

The Databases tab in the Mobile App Builder is only used for the Push Notifications usage in the Rollbase Mobile environment.

Thanks and Regards,

Anil Kumar.

Posted by mobiletest on 21-Aug-2014 05:30

Thanks Anil for your explemenation. We are busy to learn the possibilities of Rollbase Mobile, together with Rollbase. Do you have an example how to create a search on a Rollbase object with Mobile? Do we need to use the REST API to achieve this? Any example is appreciated. Thanks a lot!

Posted by Anil Kumar on 21-Aug-2014 11:00
We can achieve Search functionality in Rollbase Mobile against set of records which were retrieved from the Rollbase. However, there are few limitations with the current version of Rollbase Mobile where we cannot perform search criteria against specific field in Rollbase. i.e., ‘Search by Customer Name’ or ‘Search by Customer Number’ (considering the Customer Order example).
 
Attached document explaining the mobile app example with search.
 
Hope this helps.
 
Thanks and Regards,
Anil Kumar.
 
[collapse]
From: mobiletest [mailto:bounce-mobiletest@community.progress.com]
Sent: Thursday, August 21, 2014 4:01 PM
To: TU.Rollbase@community.progress.com
Subject: RE: [Technical Users - Rollbase] Private Cloud: Progress Mobile
 
Reply by mobiletest

Thanks Anil for your explemenation. We are busy to learn the possibilities of Rollbase Mobile, together with Rollbase. Do you have an example how to create a search on a Rollbase object with Mobile? Do we need to use the REST API to achieve this? Any example is appreciated. Thanks a lot!

Stop receiving emails on this subject.

Flag this post as spam/abuse.

[/collapse]
Posted by mobiletest on 21-Aug-2014 15:29

Thnx, we'll have a look. Looks great!

Posted by mobiletest on 23-Aug-2014 18:52

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?

Posted by Anil Kumar on 24-Aug-2014 07:47
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.
 
[collapse]
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
 
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.

[/collapse]
Posted by mobiletest on 24-Aug-2014 12:25

Thanks Anil for the great example. This is usable when we jump to different pages. But what if we have a simple app within Rollbase with two objects: ObjectA and ObjectB and we have a one to many relationship. From objectA we have a "new" page where we can do a new registration. On this page we have also a relationship field (Rxxxxx) to another object (ObjectB) with some values. We do the registration within only one page. Now we want to achieve the same registration logic from our mobile app. We have created the fields, the picklists etc. Everything works fine, but we are not able to poputale the selectmenu list for the relationship field (Rxxxx). How can we put these values in this selectmenu list/pick list on mobile?

Posted by Santosh Patel on 24-Aug-2014 13:10

You would use the getAllB service to populate the existing set of B objects when filling the lookup field. Basically a getAll_R##### would be used when showing a current object (viewing) or when editing to show the current set of Bs that are related to A. During create/edit you may want to list out all Bs so that the user can add more Bs to the lookup field in A, which would be achieved by getAll_B.

A getAll_<object_integration_name> method is provided under all objects which are related to the primary object of the View exported.

Do get back if you still have doubts.

Regards,

Santosh

Posted by mobiletest on 24-Aug-2014 13:27

Here the example, i've also added the JSDO...

Posted by mobiletest on 24-Aug-2014 13:43

Thanks Anil & Santosh, it works! I did the configuration in _getAll_Rxxxx in stead of getAll_B

Posted by mobiletest on 30-Aug-2014 16:56

Is there an easy way to get the value of relation fields within Rollbase Mobile. Now we get the id in stead of the value. Normally we use R1234#value to get the value...

Posted by Anil Kumar on 19-Dec-2014 03:47
Hi,
 
We have support for both Portal (Portal User) and Anonymous (Portal Visitor) logins against mobile apps from Rollbase environment starting from Rollbase 3.1.0 release which was released on 6th December 2014. However, 3.1.0 release has specific portal and anonymous support only for Rollbase Private cloud but not hosted cloud.
 
Thanks and Regards,
Anil Kumar.
 
[collapse]
From: mobiletest [mailto:bounce-mobiletest@community.progress.com]
Sent: Wednesday, August 20, 2014 11:13 PM
To: TU.Rollbase@community.progress.com
Subject: RE: [Technical Users - Rollbase] Private Cloud: Progress Mobile
 
Reply by mobiletest

Shelley, thanks for the info. It is really a must have to interact with portal users with mobile. This will be great enhancement in the future!

Stop receiving emails on this subject.

Flag this post as spam/abuse.

[/collapse]
Posted by bal on 24-Dec-2014 02:47

hi Anil,

Sounds great! Could you please explain the difference between the portal visitor/user? Where can we configure the portal user with Rollbase Mobile? Is it true that we can create the portal users in Rollbase and the mobile users can use these logins to access the environement?

Posted by Anil Kumar on 24-Dec-2014 03:55
Hi Bal,
 
The functionality of Portal User and Portal Guest is standard behavior which is available for Rollbase web applications and we have enhanced the same support for Rollbase Mobile applications in 3.1 release.
 
Portal Users: Assigned to authenticated users of external-facing Portals. On the same lines for Rollbase Mobile, one can associate specific authentication in the ‘Edit Mobile Application’ page. i.e., this edit mobile app page will show set of objects which possess Portal User attribute under Authentication Details category.
 
Portal Guest: Assigned to non-authenticated users of external-facing Portals. Unlike Portal users, Portal Guests cannot log into a portal. Portal Guests can only access a public portal page. This deal with Anonymous support/access for the mobile applications. i.e., if we want to create a new mobile application whose data needs to be accessed without any credentials we can access the same by checking ‘Anonymous’ option in the ‘Edit Mobile Application’  page.
 
Note: There is change in naming conventions with respect to Portal attributes in 3.1. i.e., ‘Portal Visitor’ prior 3.1 is renamed to ‘Portal User’ in 3.1 and ‘Non-authenticated Portal User’ prior 3.1 is renamed to ‘Portal Guest’ in 3.1.
 
Steps to enable Portal User support against a mobile application:
 

1)      Launch and login to Rollbase environment in a browser

2)      Create a new Rollbase web application (say RB_for_Portal) along with an object (myPortalObj)

3)      Edit the application and associate 'Portal User' attribute for the portal object

4)      Add Login Name, Password attributes to the 'New myPortalObj1' page by editing the same page

5)      Perform Save & Synchronize operation and make sure that the fields got added properly to portal page

6)      Add a record (with which we can access the mobile). Say testportal as username and testportal as password

7)      Now create a new mobile application by selecting 'From Scratch' operation

8)      Add a new object (say newMobObj) to the same mobile app

9)      Edit the mobile app and select 'myPortalObj' as the authentication type. Also, export 'All newMobObjs' view and save the mobile app

10)   Click on Test button and provide portal and provide portal user credentials (testportal, testportal)

 
Steps to enable Anonymous (Portal Guest) support against a mobile application:
 

1)      Launch and login to Rollbase environment in a browser

2)      Create a new Rollbase web application (say RB_for_Anon_Portal) along with an object (my_Obj)

3)      Edit the object 'myObj' and provide all permissions (Create, View, Edit, Delete) under ‘Permissions’ section associated with role ‘Portal Guest' and save object

4)      Create a new mobile application by selecting above created web application

5)      Make sure that the mobile app got created properly. Navigate to Mobile App Builder by clicking on Design button

6)      Modify the 'authenticationModel' attribute to Anonymous in appconfig.js file located under Javascript section in Mobile App Builder [By default this value is FORM]

7)      Design app such that it will bring the data from Rollbase (using getVIew_All JSDO service)

8)      Test the mobile application. Do not provide any credentials in the Login page and click on Login button in the Emulator. Make sure that the login is successful. Also, make sure that the data is shown properly in the mobile emulator.

 
Following are few references on working with Portals:
 
Additional information on mobile app editing for setting up authentication details:
 
Thanks and Regards,
Anil Kumar.
 
[collapse]
From: bal [mailto:bounce-bal@community.progress.com]
Sent: Wednesday, December 24, 2014 2:18 PM
To: TU.Rollbase@community.progress.com
Subject: RE: [Technical Users - Rollbase] Private Cloud: Progress Mobile
 
Reply by bal

hi Anil,

Sounds great! Could you please explain the difference between the portal visitor/user? Where can we configure the portal user with Rollbase Mobile? Is it true that we can create the portal users in Rollbase and the mobile users can use these logins to access the environement?

Stop receiving emails on this subject.

Flag this post as spam/abuse.

[/collapse]
This thread is closed