on 06-07-2013 6:39 PM
HI Eexperts,
I have a Requirement on Text Edit UI.
Requirement is :
In Create mode i will update the text in the backed by using text edit ui. And when i come through Change mode the text which is coming from backed should be no editable.and user should be able to enter the new text in the same text edit.
Please Provided with required information.
Waiting for Reply.
Thanks & Regards.
Krishna.
Hi Krishna,
Just create two varibles in the context
1.To hold Text Edit UI element data Ex .lv_text
2.To change Text Edit UI state( Read/Write) Ex. lv_state
Go to WDDOINIT method and check if lv_text is intital,then set lv_state = ' ' else lv_state = 'X'.
Thanks,
Karthik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just trying to understand your requirement, so you want to display the previous text and it should be in display mode and is ther any button you will have to get to change mode and add new text to already existing text.
Please make this clear to suggest you a proper solution.
Phani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Doesnt look like this is possible with a single text edit UI. Would it help if you had 2 seperate text edit UI elements one below the other without padding. You coule use the text edit on top to display the data and the one below to add.
Thanks,
Pris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krishna Kumar,
What ever said by Romero is correct, and while saving the text update it in the same text id/database field.
In the change mode get same from database and put it in non-editable UI element.
Or else if you want to save the every change save it with Combination DATE TIME filed like
10.06.2013 17:05 text(xxxxxxxxxxxxx)
10.06.2013 18:20 text(yyyyyyyy)
Thanks,
Sudheer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krishna Kumar,
I think is not possible to have a TextEdit with some text editable and some other text not editable in the same TextEdit...
What you can do is create two TextEdits, one not editable for the saved texts and another editable for the new texts...
Regards,
Ricardo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think we can not control the text in the TEXT EDIT UI which has come from back end to non editable and entering new text. Only one thing is possible either you can make it as non editable or editable. You can not make back end data as non editable and entering new text at the same time in single TEXT EDIT UI element. If i'm wrong please suggest me with correct info.
Regards,
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krishna Kumar,
Create one attribute on type WDY_BOOLEAN and bind this to enable property of text edit field.
In change mode write code to set this attribute to edit by passisng abap_true or abap_false.
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.