OupaAppie
OupaAppie

Reputation: 3

AX2009 progressive character count dialog filed

I need to do an active progress character count on a dialog field. I will be using this dialog as a user input for sending an SMS from AX (no problems with that bit of the code). So SMS is limited by 160 characters, and I need to display the character count as the user types: 160 - current count = characters left.

Upvotes: 0

Views: 77

Answers (1)

FH-Inway
FH-Inway

Reputation: 5107

If your dialog is a form and not generated for example with the Dialog class Framework, you could overwrite the textChange method on your input control. In this method you can retrieve the text entered so far and determine the number of characters in the text. With this information you can you can display the remaining characters for example on another static text control in your dialog form.

Upvotes: 1

Related Questions