Dear OneStream community,
I'm trying to save the data on this gridview on a shared folder, does anyone know how i can do it ?
Once i will save it on a shared folder, i will put a business rule on the "initiate export" to tranform it and eport it in my computer this time.
Please advice if you have any idea how i can do this,
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
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.
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.