cancel
Showing results for 
Search instead for 
Did you mean: 

default X to checkbox

Former Member
0 Kudos

Hi all,

how can i check the checkbox when im not yet on ONACTION method.

if it satisfy some validation i need to mark that checkbox.

need help.

thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi donna......

you might have bounded an attribute to the check box. just pass the x value to it.

---regards,

alex b justin

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Bind the property checked to an attribute say 'X' type wdy_boolean.

If condition is satisfied then set this attribute using set_attribute ( ).

Former Member
0 Kudos

hi,

i cant see checked property in my element.

im using checkboxgroup.

please help.

thanks.

br,

donna

Sm1tje
Active Contributor
0 Kudos

Yeah, but every checkbox is bound to a property in the context, correct? Now pass a flag to this context for default value. Use the code wizard to bind the flag to your checkbox context.

Don't look for this in the properties on the layout editor, but check your context and in method WDDOINIT (for example) bind the default data to the context.

Former Member
0 Kudos

Hi Donna,

You can bind it to 'Text' and 'enabled' property

Please have a look into the follwing application for check box group.

WDR_TEST_EVENTS &WDR_TEST_UI_ELEMENTS

Cheers

Mary

Former Member
0 Kudos

Hi Mickey,

Actually i can display already the value that i need to the checkbox group. i.e. below

_ Donna1

_ Donna2

_ Donna3

_ Donna4

_ Donna5

*_ represent the box.

example the name of the context is myname. i make the selection property of the myname into 1..n now it display

/ Donna1 *this is checked

_ Donna2

_ Donna3

_ Donna4

_ Donna5

how ever i would like to check also the Donna2, so how would i do it?

thanks.

Sm1tje
Active Contributor
0 Kudos

Now I see what you mean, since you are using a checkbox group. For that indeed, I would refer to WDR_TEST_EVENTS, view CHECKBOXGROUP and method ONACTIONONTOGGLE.

Sorry I couldn't be of more use to you, good luck.

Former Member
0 Kudos

its ok Micky, i will do some trick, i will add checkbox and bind the names that have default check 😃