cancel
Showing results for 
Search instead for 
Did you mean: 

Message and checkbox

Former Member
0 Kudos

Hi,

I am new to webdynpro. I am displaying a checkbox with field name.If any operation done on checkbox(check or uncheck)then flag should capture that change and should diplay a message.Please let me know step by step process to handle this.

Thanks,

Hasini.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

answered

Former Member
0 Kudos

Hi,

If a table has a column in which checkbox is there for a column

then for checkbox property

there is an attribute checked for which you need to bind to a context attribute.

If your context node is check and has an attribute wdy_boolean.

then in action related to checkbox write the relevant coding and set the checkbox.

Former Member
0 Kudos

Bind the "checked" property of your checkbox to a context attribute. When you read the attribute, it will return X if the box is checked and space if it is not checked. Then define an action for the OnToggle event of the checkbox. In the event handler, read the context attribute and display a msg accordingly.

Regards,

Nithya

Former Member
0 Kudos

Hi,

Thanks for quick response.Please let me know how to read the action on checkbox. syntax please.

Thanks,

Hasini.

Former Member
0 Kudos

Use the code wizard (Ctrl + F7) to read the context attribute that is bound to the checked property of the checkbox. This will give you the state. This attribute should be of type wdy_boolean.

Regards,

Nithya