on 01-18-2012 9:19 AM
Hi Experts,
I use this webdynpro and i added a few fields.
my problem is how can i disable the input fields that i added' when the user see this web page and
make this fields enable after the user press the button "check duplicate"
thanks in advanced,
dana.
Hi,
1. Define a global attribute for a view reference in the component controller.
2. in WDDOMODIFYVIEW in the respective View which you want to alter, write the instance provided "view" into your global attribute.
3. Set you Input fields "disabled" in the layout design time
4. Create an action handler in the button
5. Within the action handler create variables for instances of the inpout fields in runtime (cl_wd_input_field). Then cast down the UI-tree for your disabled input fields you want to enable into these variables.
6. use method set_enabled to enable the input fields.
If you've done some dynamic programming in WDA before this might suffice for you. If you need more detailed steps with coding, please say so.
Cheers, Lukas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thank you very much,
its work!!!
you gave me a BIG help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lukas Weigelt ,
thank you for your answer.
Could you pls give me some more details ?
thank you very much.
Dana.
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 | |
23 | |
11 | |
9 | |
8 | |
5 | |
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.