How to programme in VSTA an InfoPath Forms Services? - InfoPath Dev
in

InfoPath Dev

How to programme in VSTA an InfoPath Forms Services?

Last post 02-08-2008 10:25 AM by davidair. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-07-2008 12:43 AM

    • Rakel
    • Not Ranked
    • Joined on 02-06-2008
    • Posts 4

    How to programme in VSTA an InfoPath Forms Services?

    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!!!

  • 02-08-2008 10:25 AM In reply to

    Re: How to programme in VSTA an InfoPath Forms Services?

    Unfortunately you really have to rewrite your code - Forms Services requires you to use C#/VB.NET using new object model.

    David Airapetyan / Software Services Architect
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.