Hello to all,
I hope you can help me because I am in a rather cumbersome mess of which I am not capable of going out. The case is that I have several forms created in Infopath, with differents views, buttons and jscript code associate. The case is that I need to pass these forms to browser-enabled forms to update in SharePoint. Apparently, for make a browser-enabled form, I have to remove the jscript code and pass it to Visual Basic (I choose it better than C#) using VSTA.
Well, I do not have idea on how can I pass the jscript code to Visual Basic. It's very difficult for me. Here I show you part of the code that I have to transform. If you can help me...you would save my life ... and even my work. ;)
JScrpt code:
function control_01::Onclick(eventObj)
{
XDocument.PrintOut();
var objDataElement = XDocument.DOM.selectSingleNode("/my:tense");
if (objDataElement.getAttribute("xsi:nil"))
objDataElement.removeAttribute("xsi:nil");
objDataElement.text="send";
XDocument.DataAdapters["view2"].Submit();
XDocument.UI.Alert("Send");
eventObj.ReturnStatus = true;
}
Thanks for your attention. Sorry for my horrible english...I'm trying to learn!!!