cancel
Showing results for 
Search instead for 
Did you mean: 

dynamically change the ui elements

Former Member
0 Kudos

Hello,

I need to change the View dynamically.

I have a drop down in my view:

if i select one day then i need to show one date field,

if i select period i need to show two date fields.

do i need to change the context structure dynamically or ?

can yu tell me what is the procedure. how do i need to code it, etc

Thanks & Best Regards,

Ajay Chowhan.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

best is to create in the context an attribute eg date2_visible of type wdy_boolean

when you want to react on the dropdown box, enter an action name in the onSelect event of the dropdownbox.

in the action handler, you can then react on the selected value to set the date2_visible attribute in the context to true or false.

The ui-elements of the label and input field of the second date field, must then be bound with their visible attribute to this

attribute from the context.

grtz,

Koen

Former Member
0 Kudos

hello Koen,

thanks a lot.

Cheers,

Ajay

Edited by: Ajay Chowhan on Feb 27, 2008 11:23 AM

Answers (0)