We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Fill dropdown with saved reports

Thread ID:

Created:

Updated:

Platform:

Replies:

123837 Apr 25,2016 02:59 PM Apr 29,2016 06:59 AM JavaScript 6
loading
Tags: ejPivotClient
Joberto Diniz
Asked On April 25, 2016 02:59 PM

How to fill toolbar dropdown with saved reports?
This link shows a code snippet:

[System.Web.Http.ActionName("InitializeClient")]
        [System.Web.Http.HttpPost]
        public Dictionary < string, object > InitializeClient(Dictionary < string, object > jsonResult)
            {
                OlapDataManager DataManager = new OlapDataManager(connectionString);
                DataManager.SetCurrentReport(CreateOlapReport());
                return olapClientHelper.GetJsonData(jsonResult["action"].ToString(), DataManager, jsonResult["clientParams"].ToString());
            }
It sets a "Default Report" as CurrentReport, but I want to:
1st: load all saved reports
2nd: set the first saved report as the current one.

How to accomplish that? 
And, where are the OlapClient (c# class) docs?

Joberto Diniz
Replied On April 25, 2016 03:24 PM

And BTW, your example of saving/loading/deleting reports are not working: http://js.syncfusion.com/demos/web/#!/azure/olapclient/defaultfunctionalities

Sastha Prathap Selvamoorthy [Syncfusion]
Replied On April 26, 2016 09:15 AM

Hi Joberto, 


And BTW, your example of saving/loading/deleting reports are not working 

Sorry for the inconvience caused. We will fix this issue and will refresh the live samples soon. 
1st: load all saved reports 
2nd: set the first saved report as the current one. 
 
How to accomplish that?  
And, where are the OlapClient (c# class) docs? 

We have prepared stand- alone sample for your requirements, please find the sample in following link. 


Regards, 
Sastha Prathap S. 


Joberto Diniz
Replied On April 27, 2016 10:42 AM

Hi, thanks for the sample, however you created a separated dropdown. I want to fill the built-in toolbar dropdown.
I'm not using MVC. I'm using javascript only: http://help.syncfusion.com/js/olapclient/getting-started



Ramesh Govindaraj [Syncfusion]
Replied On April 28, 2016 07:53 AM

Hi Joberto, 
We have prepared the OlapClient sample with the mentioned “Load Report” drop-down list included in the toolbar panel which shows the names of reports available from the database “ReportsTable.sdf”. It placed before the drop-down list (Report List). If anyone logs into your application, this drop-down list will display the reports from database by default (to each users) from which they can select the desired ones.  
NOTE: “Report List” holds one or more OlapReports which can be saved in the database under a common name. Later, we can load the reports available under the common name to retrieve the OlapReport collection from the database.  Both the drop down lists “Report List” and “Load Report” serves different purpose. To know more, please refer to the following link. 
Regards,
Ramesh G. 


Joberto Diniz
Replied On April 28, 2016 04:52 PM

Hi, thanks...

I think it's rather confuse all these New/Add/Save/Load/Remove reports in the toolbar.
The link you provided explain, but it's confusing for end-users.

Ramesh Govindaraj [Syncfusion]
Replied On April 29, 2016 06:59 AM

Hi Joberto, 

The sample given in our last update, you can see two option for loading the saved report from database. So you could disable the icon for loading report from toolbar and please find the KB link for customizing the ToolBar in OLAP Client. 

 


Also, please refer the flow diagram which illustrates “Save Report” and “Load Report” operations. 


 

Please let us know if you have any concerns. 

Regards,
Ramesh G. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;