Ok, I think I am almost there. At least it cant find errors in the formulas. However, it does not show rates. I "think" it has to do with the date format.
Here is what I have in my resource.xml file that is used to populate the default values:
<PerDiem>
<Rate start="2011-10-1" end="2011-10-31">248.60</Rate>
<Rate start="2011-11-1" end="2012-2-28">201.30</Rate>
<Rate start="2012-3-1" end="2012-6-30">246.00</Rate>
<Rate start="2012-7-1" end="2012-8-31">185.90</Rate>
<Rate start="2012-9-1" end="2012-9-31">248.60</Rate>
<MealStart>53.25</MealStart>
<MealDuring>71.00</MealDuring>
</PerDiem>
The dates look good to me. However, when I run the form and save it, it comes out like this:
<my:PerDiem>
<my:MealStart>53.25</my:MealStart>
<my:MealDuring>71.00</my:MealDuring>
<my:Lodging>
<my:rate>248.60</my:rate>
<my:start>10/1/2011</my:start>
<my:end>10/31/2011</my:end>
<my:reset></my:reset>
</my:Lodging>
<my:Lodging>
<my:rate>201.30</my:rate>
<my:start>11/1/2011</my:start>
<my:end>2/28/2012</my:end>
<my:reset></my:reset>
</my:Lodging>
<my:Lodging>
<my:rate>246.00</my:rate>
<my:start>3/1/2012</my:start>
<my:end>6/30/2012</my:end>
<my:reset></my:reset>
</my:Lodging>
<my:Lodging>
<my:rate>185.90</my:rate>
<my:start>7/1/2012</my:start>
<my:end>8/31/2012</my:end>
<my:reset></my:reset>
</my:Lodging>
<my:Lodging>
<my:rate>248.60</my:rate>
<my:start>9/1/2012</my:start>
<my:end>9/31/2012</my:end>
<my:reset></my:reset>
</my:Lodging>
</my:PerDiem>
I cant find where it is changing the date. I have set the data type to Date everywhere I can think of.
Thanks.