Skip to main content
September 12, 2025
Solved

Dashboard component/business rule

  • September 12, 2025
  • 2 replies
  • 0 views

Is it possible to do a live character count using a text box and label component inside of a business rule that counts characters as they are being typed into a text box component that is used in a dashboard? The contents of this text are written to a relational table but as for the character count, I want to do that live BEFORE I write the contents to a relational table. This is on an 8.4 application.

Best answer by RobbSalzmann

AFAIK not possible.  OneStream is proprietary UI components that lack the discreet event handling needed for your requirement.  You would have to make a user initiated button click round trip to a business rule for each character to accomplish this.

Instead consider placing a label near the textbox informing the user of the character limit.  If exceeded on save, send back a message through the XFSelectionChangedTaskResult object in your Dashboard Extender code that handles this event.

2 replies

September 15, 2025

AFAIK not possible.  OneStream is proprietary UI components that lack the discreet event handling needed for your requirement.  You would have to make a user initiated button click round trip to a business rule for each character to accomplish this.

Instead consider placing a label near the textbox informing the user of the character limit.  If exceeded on save, send back a message through the XFSelectionChangedTaskResult object in your Dashboard Extender code that handles this event.

BamaGirlAuthor
September 16, 2025

Thank you. This is a requirement we have had from several users. It would be great if Onestream would add the character count capability enhancement for upcoming releases. I do use the hover that shows the limit. I could also add a label. I'll work on the message to send back when they totally ignore all other messages. Currently they get the String or binary data would be truncated message which is irritating.  Thanks, I'll add logic for the error.