- Home
- Forum
- Dashboard Platform
- Way to access from custom Mobile app
Way to access from custom Mobile app
I am confused because of suggestions in this forum thread and help section. I am preparing POC for viewing dashboards for an reputed client which will be used across the globe. Please provide right way to achieve and guide me on the following things.
Expectation from Syncfusion Dashboard Platform:
1. Should be role based
2. Custom themes applying to charts and dashboards
3. Chart type changing for end-user (not available from the features)
4. Store dashboards offline (is it possible)
If I am going for custom Xamarin App to view Dashboards, which integration method I have to follow
a) Embed dashboard (iframe)
My findings:
-> Doesn't work on mobile consistently, most of the time ends up with origin error and different url patterns usages like file:// and http://.
-> If the dashboard is rendered (by fluke) it breaks if Dashboard has Tabs, which shows solution is not reliable
-> how to apply custom themes
b) Use eJSDashboardViewer in webview
My findings:
-> How do I pass user credentials for authentication to access private dashboards.
SIGN IN To post a reply.
3 Replies
PS
Prince Solomon Bala Subramani
Syncfusion Team
December 6, 2017 12:48 PM UTC
Hi Ravikrishna,
Thanks for contacting Syncfusion Support.
From your requirements, we understand that you have published the dashboards in the Dashboard server, and you would like to build a Xamarin app, which will list out those dashboards in the app. In this case, below are the response for your queries.
|
Expectation from Syncfusion Dashboard Platform |
Response |
|
Should be role based |
We are providing role based security for User or group level. User Filter allows you to limit the data view of the published dashboard based on the logged in user. Below link explains about how to configure user based filter for the dashboard.
You can also use the filterParameters API to filter the dashboard data for each user. Passing the parameter within the filterParameter API will filter the Dashboard at initial load itself. The code snippet for the filterparameters API is below
$("#dashboard").ejDashboardViewer(
{
serviceUrl: 'service URL',
dashboardPath:'Path of the dashboard',
filterParameters: "Country =Germany",
}
);
To know more about the filterParameters API please follow the below link
|
|
Custom themes applying to charts and dashboards |
We have provided the custom theme only in SDK level. Please check the below link about how to set custom theme for the dashboards.
|
|
Chart type changing for end-user (not available from the features)
|
Currently, we do not have a support to change the chart type at run time.
However we can achieve your requirement through Dashboard Platform SDK using below code snippet, Please refer the below online links for the widget customization sample and its code snippet,
|
|
Store dashboards offline (is it possible) |
We don’t have a support for storing the dashboards offline. However, this will be achieved after our current release which is planned on Jan 2018 |
|
If I am going for custom Xamarin App to view Dashboards, which integration method I have to follow
|
Embed dashboard (iframe)
We don’t recommend using this feature in the Xamarin apps, because when you embed the dashboard using Iframe, then you will not be able to customize the dashboards using SDK.
Also, when you open the Iframe, each time the whole scripts will be downloaded and there will not be any cache, so it will take more time for viewing the dashboards.
And regarding the issue which you have reported, can you please share the screenshots of the issues which you face, also share the code snippet which you use. As we are unable to reproduce this issue at our side, these information can give us some idea about what will be the reason for this issue. |
|
Use eJSDashboardViewer in webview
We would also suggest this way for satisfying your requirement.
We have prepared a sample for using ejDashboardViewer with WebView in Xamarin application and the sample requires some changes in the Dashboard Server. So, please follow the below steps to done changes in the Dashboard Server.
C:\Syncfusion\Dashboard Server\DashboardServer.Web\API\bin
Please download the embedding dashboard sample Xamarin app project from the below link.
The below document explains on, how to run the project and how to embed the dashboard and authenticate the user in the Xamarin application.
|
Regards
Prince Solomon B
RA
ravikrishna
December 6, 2017 01:09 PM UTC
Hi Prince Solomon,
Thanks a lot for your patience demonstrated by replying to queries.
Will follow as suggested, hope it will address my current scenarios.
Regards,
Ravikrishna
PS
Prince Solomon Bala Subramani
Syncfusion Team
December 7, 2017 10:24 AM UTC
Hi Ravikrishna,
Most welcome.
Please let us know if you need further assistance
Regards
Prince Solomon B
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
RA ravikrishna
- Dec 5, 2017 04:39 AM UTC
- Dec 7, 2017 10:24 AM UTC