Bug retrieving more than to settings with getMultipleValues

Jun 4, 2008 at 11:10 AM

When trying to retrieve more than two values with getMultipleValues, an exception occurs.

I located the bug and changed the code building the CAML query.

 

 

...
// Loop going through the configuration settings
foreach
(ConfigIdentifier configID in ConfigIdentifiers)
{
// When two or more config. settings add a <Or> element to the start string and close the previous element
if
( configIdCounter > 2 )
{
sbQueryStart.Append(
"<Or>" );
sbQuery.Append(
"</Or>" );
}
configIdCounter++;
....
// Finally joining both strings
query.Query = sbQueryStart.ToString() + sbQuery.ToString();

 

Coordinator
Jun 5, 2008 at 1:36 PM
Oops.

Great contribution, thanks..