Forum Discussion
- ChristianWValued Contributor
I just answered a similar question here: https://community.onestreamsoftware.com/t5/Rules/Saving-an-export-directly-to-the-shared-folder/m-p/4664/highlight/true#M235
- JoakimKContributor
So to call that function from a dashboard, you have two options really, to simplify it a little.
1: Create the function in a Dashboard extender Rule that is triggered from the Dashboard
2: Create an extensibility rule, setup a DataManagement job to trigger that rule, then setup the button on the dashboard to trigger the DataManagement sequence.
The potential benefit of option 2 is that now you also have a way to Schedule/Automate the same DataManagement job to generate the file, which option 1 does not give you.
- hoaphanNew Contributor III
Hi Christian,
Thank you for your answer, yes it your BR will help me a lot,i have one more question what type of BR is yours? extesibility Rule or Dashboard Extender one?
Regards- ChristianWValued Contributor
Something like this, gives you the datatable object:
'Define the SQL Statement Dim sql As New Text.StringBuilder sql.Append("Select * ") sql.Append("From <Your Table> ") sql.Append("Where <your Restrictions> ") Dim dt as datatable Using dbConnApp As DBConnInfo = BRAPi.Database.CreateApplicationDbConnInfo(si) dt = BRAPi.Database.ExecuteSql(dbConnApp, sql.ToString, False) End Using
- ChristianWValued Contributor
It can be both, if you want it behind a button, you need a dashboard extender, if you want a data management job, or if you like to run it directly form the business rules sceen, you can use an extensibility rule.
Cheers
Related Content
- 2 years ago
- 11 months ago
- 11 months ago
- 11 months ago