Jan 06, 2015, 2:39 PM
Issue with Submitting DateField Value as ExtraParams (MVC)
Is it the right way of passing value of DateField. It is reporting an error that feeDate parameter is null ( saveApplicationFee method in controller declareed it as DateTime) ?
Thanks,
.DirectEvents(de => {
de.Click.Url = Url.Action("saveApplicationFee");
de.Click.Before = "alert(Ext.getCmp('txtFeeDate').getValue());Ext.Msg.wait('saving data. Please wait','Saving..');";
de.Click.Success = "Ext.Msg.alert('Success','Data has been saved successfully.');";
de.Click.ExtraParams.Add(X.Parameter().Name("feeDate").Value("Ext.getCmp('txtFeeDate').getValue()").Mode(ParameterMode.Raw));
de.Click.FormID = "FormPanelSave";
})
In the FormPanel it is defined as .Items(
X.Label().Text("Please enter the Application Fee and Date Fee Received -"),
X.NumberField().ID("txtFeeAmount").Name("FeeAmount").FieldLabel("Fee Amount"),
X.DateField().ID("txtFeeDate").Name("FeeDate").FieldLabel("Date Received")
),
the alert in de.Click.Before is showing the DateField value though. Any clue would help a lot..Thanks,