Hi,
If you want the day names to be displayed in the different text boxes then use the following xml.
<Weeks>
<Week number="firstweek">
<Day dayName="Monday" date="20"/>
<Day dayName="Tuesday" date="21"/>
<Day dayName="Wednesday" date="22"/>
<Day dayName="Thursday" date="23"/>
<Day dayName="Friday" date="24"/>
<Day dayName="Saturday" date="25"/>
<Day dayName="Sunday" date="26"/>
</Week>
<Week number="Secondweek">
<Day dayName="Monday" date="27"/>
<Day dayName="Tuesday" date="28"/>
<Day dayName="Wednesday" date="29"/>
<Day dayName="Thursday" date="30"/>
<Day dayName="Friday" date="31"/>
<Day dayName="Saturday" date="01"/>
<Day dayName="Sunday" date="02"/>
</Week>
<Week number="Thirdweek">
<Day dayName="Monday" date="03"/>
<Day dayName="Tuesday" date="04"/>
<Day dayName="Wednesday" date="05"/>
<Day dayName="Thursday" date="06"/>
<Day dayName="Friday" date="07"/>
<Day dayName="Saturday" date="08"/>
<Day dayName="Sunday" date="09"/>
</Week>
</Weeks>
Save the above as Weeks.xml.
Now take a receive data connection to retrieve the values.
Go to drop down properties.
1. Select Look up data from an external data source.
2. Select the weeks data source.
3. In the entries box, select number.
4. Click Rules button.
5. Click add button. Then click add action button.
6. Select set a field's value in the action drop down.
7. Select first day text box field in the field.
8. Click fx button beside the value.
9. Then select dayName in the weeks data source then click filter data.
10. Click Add and select number from weeks data source in the first drop down, is equal to in the second drop down and the drop down field in the third drop down.
11. Click ok. In the Insert formula window click Edit Xpath check box. There change the Day/ with Day[1]/.
12. Then click ok until all the windows gets closed. The expression will look like
xdXDocument:GetDOM("weeks")/Weeks/Week/Day[1]/@dayName[../../@number = xdXDocument:get-DOM()/my:myFields/my:field4]
13. Do the same for other text boxes (add another add action to set the second text box value. The only change is add day[2] instead of Day[1]. For third text box Day[3])
14. Do the same for date (Repeat step 4 to step 13).