var DateResult = getScriptHostQI("IGrooveFormsToolUIDelegate").DisplayDatePickerDialog(intDate, intDateFormat, bIsDateTime);
if (DateResult.Result == GrooveDialogBoxResultCode_OK)
{
objDate.value = DateResult.Data;
// Set the dirty bit if it needs to be set.
int_setIsDirty(true);
// Call onblur to validate the date.
objDate.fireEvent("onblur");
// Call onchange if the value has changed.
if (objDate.value != DateValue)
objDate.fireEvent("onchange");
}
}
}
}
catch (error)
{
var strError = "There was an error saving the date value, most likely caused by the form reloading in response to a design change. Please try choosing the date again.";
var strError = "There was an error adding the attachment, most likely caused by the form reloading in response to a design change or because the file may be in use by another program. Please try adding the attachment again, after correcting the issue.";