cancel
Showing results for 
Search instead for 
Did you mean: 

how to make the field as non editable?

Former Member
0 Kudos

Hi Gurus,

I have created the WD leave applications which will trigger the BAPI(which returns half of the work structure allocated to the employee leave sickness)value will be freezed in the input UI element.

Right now am getting the above said value but UI element is in still editable mode.

My requirement is once we freezed the value UI element has to be non editable.

any useful clues will be higly appreciated with higher points...............

Thanks in Advance,

Dharani

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

hai dharani,

1.create a context attribute o type boolean and bind it to the ui elements enable property.

2.use the following code to set the enable to false.

3.wdContext.currentContextElement().setEnabled(false);

Any issues let me know.

Thanks n Regards

Sharanya.R

former_member485701
Active Participant
0 Kudos

Hi ,

If you are getting the values in the inputfield by calling RFC. And you did not want it to modified by user then there is no use of using inputfield UI Element.

In these cases you should use Textview UI element. This will fulfill your requirement.

Regards,

Praveen

Former Member
0 Kudos

hi

if u want to setthis field editable and non-editable dynamically.....pls bind a boolean context value to the editable property of the UI element.And set that context dynamically true and false.

Or otherwise make the readonly property of the ui element as false

Warm regards

shanto aloor

Former Member
0 Kudos

hi,

set the readOnly property to true

Or else set the enabled property to false.

Make use of Text View instead of input field

Regards

Ayyapparaj