Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include the format of each table column within a result set #585

Closed
danpanaite opened this issue Apr 13, 2020 · 0 comments
Closed

Include the format of each table column within a result set #585

danpanaite opened this issue Apr 13, 2020 · 0 comments

Comments

@danpanaite
Copy link
Contributor

danpanaite commented Apr 13, 2020

Is your feature request related to a problem? Please describe.
I currently need to dive into the resultSet.loadResponse.annotation object to grab the formats of each measure or dimension in my result set, in order to properly render any boolean, currency, percent, or date fields. The tableColumns function currently does not include the format of the column.

Describe the solution you'd like
The resultSet.tableColumns function could return format and type properties that is obtained from the corresponding dimension or measure. The same pattern for populating the title and shortTitle could be followed for format, since both measures and dimensions can have a format.

Describe alternatives you've considered
Alternatively, the result.tablePivot function could run through a format processing step before returning the list of rows. This would enable the user to render a table without having to build custom formatting logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant