cancel
Showing results for 
Search instead for 
Did you mean: 

UI textedit: event "onenter" "onchange" or something like that!

former_member429661
Participant
0 Kudos

Hi all,

for the logic which data of an UI has been changed i look for an event of the UI textedit

... but can't find it. Is there another possibility or technic to find out if there are data changed inside the UI textedit ?

Thanks in advance

--Bernd

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

There is no onChange in any of the text input type UI elements (only the Threshhold Slider really has an onChange event). The TextEdit has no events. The inputField does have an onEnter event.

For textEdit fields you would need to trigger an event using some other mechanism - a save or check button perhaps. Then you could use the context change log to get the before and after values of the context attribute bound to the textEdit field.

Answers (1)

Answers (1)

former_member1151507
Participant
0 Kudos

Hi,

No action events are available for TextEdit UI element. One way to find out whether data entered in TextEdit field has changed or not is by using get_context_change_log( ), which returns node, attribute, old value and new value details. We can write this code in MODIFYVIEW or in some action event of Button .

To use the log, first we need to enable the log using enable_context_change_log( ).

Regards,

Manogna