Hi David,
I really appreciate your VERY prompt answers. Thank you!
I am able to get the desired results using your tips.
But... I want these results dyna,ically based on the selected "Country" rather than hard coding the country code.
Ideally, I willhave just ONE State field (combobox) whose entries should be populated based on the selection made in the "Country" combobox. {just like DNN Country, Region List]
All the examples given on this site (more specifically those given in Demo 11) use a variable in the WHERE clause like:
select text as questionoption,value as questionoptionvalue from Lists where listname = 'Region' and ParentID = '$(mycountry)'
[where MyCountry is the short name for the Country Combobox]
Since that is NOT working in my case, I am forced to create THREE comboxes - one each for USA State, Canada Province, and Mexico State. Using Question events, I am showing teh relevant State List based on the Country selected. Within each State list combobox, I am using hard coded SQL like:
select text as questionoption,value as questionoptionvalue from Lists where listname = 'Region' and ParentID = 221
And finally, I created a 'hiddenState' and writing the selected State from each of the three State comboboxes. This will contain the "latest selection' from any of the three State lists.
To avoid these work-arounds' I really appreciate if you can point me to a page that gives details on how to use a "variable" in the WHERE Clause for ParentID.
Thanks a lot in advance!
VJ