Mar 05, 2015, 9:53 AM
How to set a date with javascript
Hello everyone!!!!
I have a javascript file where i take a value from a grid to populate the field of a particular screen.
how can I set the value correctly?
Thank you very much and sorry for english.
Paolo
I have a javascript file where i take a value from a grid to populate the field of a particular screen.
var chargeIntermediario = function ()
{
var raw = App.Main_usrGridIntermediari_grigliaIntermediario.getSelection()[0].raw;
App.Main_usrIntermediari_txtId.setValue(raw.Id);
App.Main_usrIntermediari_txtDataScadenza.setData(raw.DataScadenza);
}
Client side i declare the element in this mode:<ext:FieldContainer ID="FieldContainer6" runat="server" Layout="HBoxLayout">
<Items>
<ext:DateField ID="txtDataScadenza" runat="server" MarginSpec="0 0 0 20" ValidateOnChange="False" ValidateOnBlur="False"
Flex="2" />
</Items>
</ext:FieldContainer>
All element in my code have the same declaration, and each element correctly loads the data , with the exception of types datatime that have the value setting to 'null'.how can I set the value correctly?
Thank you very much and sorry for english.
Paolo
Last edited by zagam; Mar 06, 2015 at 8:15 AM.