on 02-09-2009 8:40 AM
Hi Frnds,
I have a requirement were based on the value of one field is yes then the other field is set to display mode and vice versa.
Both the read only property of the fields is binded to a atribute Display only which is used to make it in display mode when the whole application is to be run on display mde.
Also when i was trying to change the read only binding of the field to the other attribute then it is not letting me change the binding and giving me a error of "error occured ". Can anybody tel me what is the efficient way to do this.
Thanks
Rohit
Hi ,
You can change the element at run time base on some condition.
First hide elements by writing code on method WDDOMODIFYVIEW
data : lr_button type ref to cl_wd_button,
data lo_textview type ref to cl_wd_text_view.
lo_textview ?= view->get_element( id = 'ID of your element' ).
call method lo_textview->set_visible
exporting
value = '01'.
You can display element by changing display property on the base of some condition like this
data lo_textview type ref to cl_wd_text_view.
lo_textview ?= view->get_element( id = 'ID of your element' ).
call method lo_textview->set_visible
exporting
value = '02'.
I hope it will help you.
Regards
Kulvendra Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rohit,
First delete the binding by clicking delete binding on the pop up. then bind the UI element with other attribute.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.