Feb 20, 2012, 4:07 PM
[CLOSED] DateField
I have a date range that I need to set the END DATE to start at the START DATE only if it is blank. For example dteSessionEndDate should be set to dteSessionStartDate only if blank. This way the END DATE will be in the correct month.
<ext:CompositeField ID="CompositeField1" runat="server" FieldLabel="Start Date" AnchorHorizontal="100%">
<Items>
<ext:DateField ID="dteSessionStartDate" runat="server" Vtype="daterange" DataIndex="SessionSD" Width="90" AllowBlank="false" Format="m/d/yyyy">
<CustomConfig>
<ext:ConfigItem Name="endDateField" Value="#{dteSessionStartDate}" Mode="Value" />
</CustomConfig>
</ext:DateField>
<ext:DisplayField ID="DisplayField1" runat="server" Flex="1" Html=" " />
</Items>
</ext:CompositeField>
<ext:CompositeField ID="CompositeField2" runat="server" FieldLabel="End Date" AnchorHorizontal="100%">
<Items>
<ext:DateField ID="dteSessionEndDate" runat="server" Vtype="daterange" DataIndex="SessionED" Width="90" FieldLabel="End Date" AllowBlank="false" Format="m/d/yyyy">
</ext:DateField>
<ext:DisplayField ID="DisplayField2" runat="server" Flex="1" Html=" " />
</Items>
</ext:CompositeField>
Last edited by Daniil; Feb 27, 2012 at 10:24 AM.
Reason: [CLOSED]