on 08-13-2014 10:59 AM
Hello Expert's
I want to lock my Text edit if a specified event occurs.
the user should be unable to change the filled text.
otherwise he should be able to change the text.
Thank you for any hint
Best regards
Annette Bruy
Hi Annette,
We can disable the text edit by using the read only property of the UI.
1. Create a attribute of WDY_BOOLEAN, and bind it to the read only propert of Text Edit UI.
2. Based on you requirement for the specified event , set the value of this attribute to 'X' in the event handler method, so that the UI is locked for editting.
Regards,
Harsha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Annette,
You have bound the READ_TEXT to the visible property instead you need to bind it to the READ ONLY property
Note:
when you set READ_TEXT = ABAP_TRUE ------> The text edit field will not locked for editing ( READ ONLY )
and if you set READ_TEXT = ABAP_FALSE ------> The text edit field will be open for editing
Hope this helps you.
Regards,
Rama
Hi Annette,
Once the event is occuered, set a flag = 'X' as an ATTRIBUTE in component controller.
And then in the WDMODIFYVIEW you can write the condition for making the TEXT-EDIT non-editable/editable based on the the above attribute flag.
Hope it would help.
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.