eXpress App Framework Team

This Blog

News

You are welcome to test the new XAF features prior to the 17.2 release: one, two, three, four, five, five

How to Change the Default Data Service URL in XAF Mobile Applications at Runtime

We've created a KB article that describes how you can extend your XAF mobile application so that can change the application's Data Service dynamically after logon:

https://www.devexpress.com/go/XAF_Try_Mobile_DataServiceUrlSelection_v17.1_August.aspx

This information will be helpful to those who need to supply the same application to different customers (companies). Company data should be stored separately in different databases. The database (or, to be more precise, the Data Service connected to it) should be selected in one of the following ways: 
- The user enters his or her credentials, and the application's Data Service is changed dynamically based on the logged in user.
- The user specifies his or her Data Service manually in the logon screen.

It's possible that we'll extend this feature so that you'll not need to maintain separate data services for each company (a different database will be chosen dynamically), but first, we would love to learn whether the current implementation covers your specific use-case scenarios.


Your feedback is needed!
This is not an official feature of our Mobile UI (CTP) and our API may change in future release cycles. We are publishing this article prior to the 17.2 release to collect early user feedback and improve overall functionality. We would appreciate your thoughts on this feature once you've had the opportunity to review it. Please report any issues, missing capabilities or suggestions in separate tickets in our Support Center. Thanks for your help in advance!

Test XAF's newest features prior to the 17.2 release!

We want to hear what you think - please don't forget to check out my other blog posts on upcoming XAF features...
    Performance improvements (Core)
    OAuth2 authentication (Web)
    Barcode scanner (Mobile)
    Push Notifications (Mobile)
    Background Geolocation (Mobile)
Published Aug 25 2017, 09:22 AM by
Bookmark and Share

Comments

Martin Praxmarer - DevExpress MVP

Nice one - thx Guys :)

August 25, 2017 12:53 PM

Martin Brekhof 2

I would like to see option 1 (user enters credentials and nothing more) possible.

For the rest as Martin says :-)

August 26, 2017 2:41 AM

Genesis Supsup 1

+1 also for "user enters credentials and nothing more"

August 26, 2017 9:49 AM

Evgeniy Meyke

Nice work!

I would need to switch the connection string from within the data service :)

Evgeniy

August 26, 2017 12:28 PM

Jignesh Thakkar 2

great!

August 29, 2017 12:59 AM

Dennis (DevExpress Support)

@All: Thanks for testing this solution in your projects.

@Martin, Genesis Supsup: Did you mean not deploying separate data services targeting each company database, as Evgeniy noted? In either case, please clarify your real problems with the current approach. Thanks in advance.

August 29, 2017 5:47 AM

Geoffrey Jones

Thanks very much for developing this new feature - it is great!

The second option: "The user specifies his or her Data Service manually in the logon screen" covers our scenario best. We are a line-of-business SaaS provider with a 1 database per client model. We would provide a user-friendly URL for each client which points to the appropriate data service for their database.

A quick question... Would it be possible to persist the URL, username and password so that the user does not have to enter these every time they use the app?

Thanks!

September 18, 2017 5:40 PM
LIVE CHAT

Chat is one of the many ways you can contact members of the DevExpress Team.
We are available Monday-Friday between 7:30am and 4:30pm Pacific Time.

If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

FOLLOW US

DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

Copyright © 1998-2017 Developer Express Inc.
All trademarks or registered trademarks are property of their respective owners