cancel
Showing results for 
Search instead for 
Did you mean: 

ERC_C_APPL_MGMT_UI

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Lukas_Weigelt
Active Contributor
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

thank you very much,

its work!!!

you gave me a BIG help.

Lukas_Weigelt
Active Contributor
0 Kudos

Hi Dana,

glad I could help. Sorry I didn't answer your post from January 22th, I didn't keep track of the thread ;-/

Cheers, Lukas

Former Member
0 Kudos

Hi Lukas Weigelt ,

thank you for your answer.

Could you pls give me some more details ?

thank you very much.

Dana.