function button1_Click(eventObject)
{
var xmlRequest = BusinessDataModel.getMethodRequest();
cordys.setNodeText(xmlRequest,".//*[local-name()='employeeid1']",employeeid1.getValue(),"");
cordys.setNodeText(xmlRequest,".//*[local-name()='employeecode']",employeecode.getValue(),"");
cordys.setNodeText(xmlRequest,".//*[local-name()='firstname']",firstname.getValue(),"");
cordys.setNodeText(xmlRequest,".//*[local-name()='lastname']",lastname.getValue(),"");
cordys.setNodeText(xmlRequest,".//*[local-name()='email']",email.getValue(),"");
cordys.setNodeText(xmlRequest,".//*[local-name()='department']",department.getValue(),"");
cordys.setNodeText(xmlRequest,".//*[local-name()='designation']",designation.getValue(),"");
cordys.setNodeText(xmlRequest,".//*[local-name()='managerid']",managerid.getValue(),"");
cordys.setNodeText(xmlRequest,".//*[local-name()='financeapproverid']",financeapproverid.getValue(),"");
cordys.setNodeText(xmlRequest,".//*[local-name()='travelbalance']",travelbalance.getValue(),"");
cordys.setNodeText(xmlRequest,".//*[local-name()='generalbalance']",generalbalance.getValue(),"");
cordys.setNodeText(xmlRequest,".//*[local-name()='createddate']",createddate.getValue(),"");
cordys.setNodeText(xmlRequest,".//*[local-name()='modifieddate']",modifieddate.getValue(),"");
cordys.setNodeText(xmlRequest,".//*[local-name()='upload1']",upload1.Uploadfile(),"");
BusinessDataModel.setMethodRequest(xmlRequest);
}
function BusinessDataModel_OnResponse(eventObject)
{
application.notify("The form has been sent successfully");
employeeid1.setValue("");
employeecode.setValue("");
firstname.setValue("");
lastname.setValue("");
email.setValue("");
department.setValue("");
designation.setValue("");
managerid.setValue("");
financeapproverid.setValue("");
travelbalance.setValue("");
generalbalance.setValue("");
createddate.setValue("");
modifieddate.setValue("");
upload1.addFile("");
}
the error is the uploading file in the xforms and it cannot understand file and throws an error , please someone tell me how to fix this issue only for upload file and other things are working fine , someone help with this.