Hello
I am currently working with InfoPath 2003 and I have a problem using a button.
I created a button and its purpose is to save the form in a path with a name that contains data from a secondary data source.
My code would be un JScrit (the default languge behind a button in fact) :
function CTRL144_5::OnClick(eventObj)
{
XDocument.SaveAs("D:\\"+xdXDocument:GetDOM("observer")/observer/projet+".xml")
}
But it does not work. (If I put : XDocument.SaveAs("D:\\test.xml", it works)
Any idea ?
EDIT : observer is one of my secondary data source