Hi,
When to use "Group as Choice Section"?
I am tryng to hide and show a either Row.Textfiled1 or Row.Textfield2 based on the Binding value.
At present I am able to do this using Scrip, and 2 Rows.
The XML Structure would be like;
<Test>
<Need>true</Need>
<ColorRed>Print in Red</ColorRed>
<ColorBlue>Print in Blue</ColorRed>
<Test>
<Test>
<Need>false</Need>
<ColorRed>Print in Red</ColorRed>
<ColorBlue></ColorRed>
<Test>
<Test>
<Need>false</Need>
<ColorRed>Print in Red</ColorRed>
<ColorBlue></ColorRed>
<Test>
This is how I have done now,
*** I have bounded Test[*] to a table. Have 2 rows
And will only display the Color Text depending on the <Need> element value.
*** If the <Need>==true, display value from <ColorBlue> and if need is ==false
display value from <ColorRed>
Right now this how the coding is;
1. Got 2 Rows each having 2 textfileds, one bound to <Need> and the
other one to ColorRed in the first row and to ColorBlue in the second row.
2. In the initialize event of the Row, i check on the value of textfield that is bound to <Need> to
assess its Rawvalue, if it is true or false the appropriate ROWs are made visible.
3.Initially both rows are hidden.
4.The Textfiled bound to the <Need> are always invisible as there is no need to show this value.
Is there a way to use the "Group as Choice Section" and avoid the above method of scripting.
Any explanations would be helpful.
Thanks
Ds
Views
Replies
Total Likes