NSurvey - Belgian Regions

Posted Monday, February 21, 2005 11:13 PM by CumpsD
One of the standard controls of NSurvey is the Country List, which provides a dropdown list of countries. Belgium is one of these countries, but when you select Belgium, it doesn’t display the possible regions for Belgium.

This is because the region information is also implemented with the subscriber model. When the country selection changes, it publishes the selected country to the Region List which then looks up the xml file of the selected country, containing the region information. The problem was that there wasn’t a region file for Belgium. So, I looked up the Belgian regions from Microsoft Passport and created the be.xml file:

 

<?xml version="1.0" standalone="yes"?>

<NSurveyDataSource xmlns="http://www.nsurvey.org/NSurveyDataSource.xsd">

  <XmlDataSource>

    <RunTimeAnswerLabel>Region :</RunTimeAnswerLabel>

    <XmlAnswers>

      <XmlAnswer>

        <AnswerValue></AnswerValue>

        <AnswerDescription>[Select Region]</AnswerDescription>

      </XmlAnswer>     

      <XmlAnswer>

        <AnswerValue>Antwerpen</AnswerValue>

        <AnswerDescription>Antwerpen</AnswerDescription>

      </XmlAnswer>

      <XmlAnswer>

        <AnswerValue>Vlaams-Brabant</AnswerValue>

        <AnswerDescription>Vlaams-Brabant</AnswerDescription>

      </XmlAnswer>

      <XmlAnswer>

        <AnswerValue>Hainaut</AnswerValue>

        <AnswerDescription>Hainaut</AnswerDescription>

      </XmlAnswer>

      <XmlAnswer>

        <AnswerValue>Liege</AnswerValue>

        <AnswerDescription>Liege</AnswerDescription>

      </XmlAnswer>

      <XmlAnswer>

        <AnswerValue>Limburg</AnswerValue>

        <AnswerDescription>Limburg</AnswerDescription>

      </XmlAnswer>

      <XmlAnswer>

        <AnswerValue>Luxembourg</AnswerValue>

        <AnswerDescription>Luxembourg</AnswerDescription>

      </XmlAnswer>

      <XmlAnswer>

        <AnswerValue>Namur</AnswerValue>

        <AnswerDescription>Namur</AnswerDescription>

      </XmlAnswer>

      <XmlAnswer>

        <AnswerValue>Oost-Vlaanderen</AnswerValue>

        <AnswerDescription>Oost-Vlaanderen</AnswerDescription>

      </XmlAnswer>

      <XmlAnswer>

        <AnswerValue>Waals-Brabant</AnswerValue>

        <AnswerDescription>Waals-Brabant</AnswerDescription>

      </XmlAnswer>

      <XmlAnswer>

        <AnswerValue>West-Vlaanderen</AnswerValue>

        <AnswerDescription>West-Vlaanderen</AnswerDescription>

      </XmlAnswer>

    </XmlAnswers>

  </XmlDataSource>

</NSurveyDataSource>

Filed under:

Comments

No Comments