on 02-27-2008 8:34 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.