Skip to main content
Newcomer
January 10, 2022
Solved

Table View - Tab Addition Automation ??

  • January 10, 2022
  • 2 replies
  • 0 views

SOURCE: ONESTREAM CHAMPIONS

Hi Team,

Greetings for the Day.

We have a requirement to download the registers data into an Excel Book with all Account as different Sheets and that too from within one stream.

One STream table view is the best option provided to fetch the data from one stream.

The question here is we have 100+ Accounts in there, which we need to bring in the tabs, and to achieve that we need to add all tabs 1 by 1 under Spread Sheet - Table view (Refer to attached screenshot).

Is there any automatic way to append the Table view with all accounts tab names using some macro or inbuild One Stream Functions?

 

darpan13_0-1641844838598.png

 

image.png1114×546 39.1 KB

 

 
Best answer by JennyCalvache

I would like to know how to create an Excel document using a data table in BR. When I used a table view from Excel, it was too slow since the table view has too many rows and columns. Basically want to see the rest of the codes you posted.

Thanks!

2 replies

Newcomer
January 10, 2022

Darpan, I don’t think that Tables Views are actually your best option. You’re probably best off using an Extensibility rule to create an excel document of the exact format you desire, that way it will be flexible about the addition of accounts in the future, but give you control over the formatting of the data as necessary as well.

https://discourse-static.influitive.net/uploads/db_8467a788_7b9e_45b8_8b6c_d37e1967220d/original/1X/902b6b1ced71600532c07ec9ac72ae871d360651.png
image.png1530×758 75.8 KB

 

This is a screenshot of some example code for creating an Excel document with separate sheets for each data table in a data set. If you need more info, just let me know!

Newcomer
January 10, 2022

Oh, and you’ll need to paste this into you “Referenced Assemblies” line on the BR properties.

C:\Program Files\OneStream Software\OneStreamAppRoot\OneStreamApp\bin\DocumentFormat.OpenXml.dll; C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\WindowsBase.dll

Newcomer
January 10, 2022

If a choice is given I would’ve gone with EPPlus than OpenXML. That thing is convoluted. Now, to answer your question Darpan Table View cannot do that. If and only IF books support a table view query then it was easier to do this.
For now as John mentioned you need something that can create an EXCEL file. My choice is EPPlus (it is an external dll). You could use interop however, that means you need EXCEL installed and it is slow.

Newcomer
April 26, 2023

I would like to know how to create an Excel document using a data table in BR. When I used a table view from Excel, it was too slow since the table view has too many rows and columns. Basically want to see the rest of the codes you posted.

Thanks!

Newcomer
April 26, 2023

Sent you the link to the file in a PM. Please let me know if you have any questions 🙂