on 04-17-2008 1:24 PM
I have such a structure in one of my Tabs:
Activitie1--->Dropdown->InputField--->RadioButton
Activitie2--->Dropdown->InputField--->RadioButton
Activitie3--->Dropdown->InputField--->RadioButton
I have a Context-Attribute which contains the variables (Allowed, Not Allowed, No Idea) bind to the DropdownMenu.
And for the InputField and the RadioButton, I have an action which set the readOnly of them on false, if I choose "Allowed" from the Dropdown.
Now my question:
I want to choose for every Activity any value like "Not Allowed for Activity1 and Allowed for Activity2".
This should be independent from other Activities.
Do I have to create a context-attribute for every activity?
-
>So I would have to create a few actions (for every Activity one action.
This must be easier, so I can seperate the lines on another way.
I hope for help.
Thank you
Marcus
Unless you put the rows inside a table, you need for each row separate context attributes.
By the way, these are not menus but drop-down lists.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Activitie1--->Dropdown->InputField--->RadioButton
Activitie2--->Dropdown->InputField--->RadioButton
Activitie3--->Dropdown->InputField--->RadioButton
Context:
Activities (node, 0:n)
- selectedActivity (DDIC type "Activity" with value set)
- value (string)
Table.dataSource = Activities
TableColumn1.tableCellEditor = DropDownByKey1
DropDownByKey1.selectedKey = Activities/@selectedActivity
TableColumn2.tableCellEditor = InputField1
InputField1.value = Activities/@value
(Not sure about your radio buttons per row. What are they intended to do?)
To get 3 rows, you have to add 3 node elements to node "Activities".
To identify the row (node element) in action handler, use parameter mapping.
Armin
User | Count |
---|---|
84 | |
10 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.