cancel
Showing results for 
Search instead for 
Did you mean: 

Can we Enable "save" button after modify InputField's value in wd java?

Former Member
0 Kudos

Hi all,

i found this function in portal,when edit the property of object (such as iview),the "save" button of it become enable, can we implement this function in the web dynpro java?And how to implement it ?

best regard

reefish.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Reefish,

Create a context attribute of type 'boolean'.Bind the <b>enabled</b> property of your button to the context attribute created. And depending on the condition set the context attribute.

if(cond)

wdContext.currentContextElement().set<attribute>(true);

else

wdContext.currentContextElement().set<attribute>(false);

Regards,

Jhansi

Former Member
0 Kudos

hi,

I knows how to enable/disable the button ,but I need to enable the button <b>when inputfield's value is modified</b>,this can be seem in the portal .

regard

ree fish

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi ree fish,

WD Java onChange() event for inputfield is not possible. It can only handle pressing of the enter key by using the "onEnter" event.

Regards, Suresh KB

Answers (2)

Answers (2)

Former Member
0 Kudos

Thx all,i've awarded points.Hope next versions of dynpro contain this feature.

best regard

reefish

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi,

You can add this point to the POLL 'UI Element Enhancement Proposal',

Hope next versions of dynpro contain this feature.

there is no such event provided for InputField so far.

Thanks & Regards

Abhimanyu L