Forum Discussion

BamaGirl's avatar
BamaGirl
New Contributor II
27 days ago

Dashboard component/business rule

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.

2 Replies

  • RobbSalzmann's avatar
    RobbSalzmann
    Valued Contributor II

    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.

  • BamaGirl's avatar
    BamaGirl
    New Contributor II

    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.