Allow Column and Row Headers to be changed in a template and saved with template

Answered
Tom Ray asked on March 14, 2024

Depending on the template a column or row header could need to be changed to fit with the usage within the template.  Can a feature be added to Flexmonster to allow headers to be customized per template.

8 answers

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster March 15, 2024

Hello, Tom!
 
Thank you for reaching out to us.
 
Kindly note that it is possible to customize the grid headers using our customizeCell() API call. Could you please provide us with more details about the desired customizations? Any code samples and screenshots would be appreciated.
This information would help us greatly to continue working on your case.
 
Looking forward to hearing from you.
 
Kind regards,
Solomiia

Public
Tom Ray March 15, 2024

We use the product in SAAS application where users are building adhoc reports and each would have need to alter the headers directly in the grid and not through a programmatic approach.

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster March 18, 2024

Hello, Tom!
 
Thank you for your swift response.
 
Kindly note that we don't have built-in controls to customize Flexmonster appearance from the UI. We recommend creating your own UI controls for customizing headers and using our API calls to apply the customizations to Flexmonster for the described case.
 
Also, could you please specify which headers you want to customize? We have attached the screenshot of our grid and would be grateful if you highlighted the needed cells and returned the image to us.
 
Looking forward to hearing from you.
 
Kind regards,
Solomiia

Attachments:
Flexmonster-grid.png

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster March 26, 2024

Hello, Tom!

Hope you are doing well.

Our team is wondering if you had some time to read our previous response.
Could you please let us know if you need our further support on using Flexmonster API calls on your UI controls to customize headers?

Looking forward to hearing from you.

Kind regards,
Solomiia

Public
Tom Ray March 26, 2024

The customization would be of the field names, in your example Order Date could be changed to Date for this template only.  Or Country could be changed to CTRY, etc.  This would also be the case for measure names.
 
Hope this helps.
 
Thanks
Tom

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster March 27, 2024

Hello, Tom!
 
Thank you for providing details about the desired headers customization.
 
Kindly note that it is possible to change captions for header fields by modifying report.dataSource.mapping[yourFieldName].caption property and then applying changes using setReport() API call.
We have prepared a JSFiddle to illustrate the idea: https://jsfiddle.net/flexmonster/sbpag7q9/.
You can find more details about mapping in our docs: https://www.flexmonster.com/doc/mapping/.
 
Please let us know if the suggested approach works well for your case.
 
Kind regards,
Solomiia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster April 3, 2024

Hello, Tom!

Hope you are having a great week.

Our team is wondering if you had some time to check our example on changing fields' captions from the UI. Could you please let us know if it works well for your case?

Looking forward to hearing your feedback.

Kind regards,
Solomiia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster April 16, 2024

Hello, Tom!

Hope you are doing well.

Just checking in to ask if our example on changing fields' captions from the UI works well for you?

Looking forward to hearing your feedback.

Regards,
Solomiia

Please login or Register to Submit Answer