Home » Developer & Programmer » Forms » how to change the value of Record Group at run time
how to change the value of Record Group at run time [message #305143] Sun, 09 March 2008 03:59 Go to next message
nadiahq
Messages: 16
Registered: March 2008
Location: KSA
Junior Member

I want to change the value of drop down list.depending upon the value of another field.
for an example:
one field contain number of country code.based upon country code record group should populte Districts of corresponding country.
first time it doesn't give error.but 2nd time whenever i change the value of country code its not generating record group.
i put clearlist under when-validate-item error coming.
pls anybody have solution.
Re: how to change the value of Record Group at run time [message #305144 is a reply to message #305143] Sun, 09 March 2008 04:13 Go to previous messageGo to next message
Flash
Messages: 34
Registered: February 2008
Member
Hi,

1. Copy the code and put it on When-List-Changed of the first item.
2. Then, clear the second list, only if the group is not null.

This should work.

Thanks
Flash
Re: how to change the value of Record Group at run time [message #305149 is a reply to message #305144] Sun, 09 March 2008 05:08 Go to previous messageGo to next message
nadiahq
Messages: 16
Registered: March 2008
Location: KSA
Junior Member

Hi,
first item is not list item. that is text item.and i put clearlist under When-validate-Item of first item.because district list will be populate based upon first item code where query different.
Re: how to change the value of Record Group at run time [message #305153 is a reply to message #305149] Sun, 09 March 2008 08:23 Go to previous messageGo to next message
Flash
Messages: 34
Registered: February 2008
Member
Hi Nadia
I can give you an example where it works, but tell me whether you are using POPULATE_LIST or POPULATE_GROUP_FROM_QUERY;

Better still, paste your code here ..

Thanks
Flash

[Updated on: Sun, 09 March 2008 08:31]

Report message to a moderator

Re: how to change the value of Record Group at run time [message #305211 is a reply to message #305143] Mon, 10 March 2008 03:14 Go to previous messageGo to next message
nadiahq
Messages: 16
Registered: March 2008
Location: KSA
Junior Member

HI
its done. thank for your co-operation.
Re: how to change the value of Record Group at run time [message #305215 is a reply to message #305211] Mon, 10 March 2008 03:17 Go to previous message
Flash
Messages: 34
Registered: February 2008
Member
What was the mistake ?
Previous Topic: Window is not closing
Next Topic: How can a variable (which contain the column name) as a column in select clause
Goto Forum:
  


Current Time: Sat Dec 03 08:23:33 CST 2016

Total time taken to generate the page: 0.15561 seconds