Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Nested loops

Participant ,
Jul 14, 2008 Jul 14, 2008
I having trouble specifying field names, using nested loops, I'd like to check the option in the select list as selected if the location matches. However it keeps defaulting to the first result, can anyone help?

Thankyou




342
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 14, 2008 Jul 14, 2008
LATEST
More details might help us understand more on the problem on your approach. Like do you expect to return more than 1 record in your query "getsession" and also in "courseLocation"? 'Coz if they both do, then one option value could be printed as many times as the number of records your getsession returns which will cause comparison problems just like you did. Another thing could be that maybe your "locationID" could have different set of values from your "getsession.sessionvenue". Can't really exactly tell from your code. More details would help.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources