submit to data connection and email problem - InfoPath Dev
in

InfoPath Dev

submit to data connection and email problem

Last post 03-03-2006 12:43 PM by Agni Jonnalagadda. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-03-2006 12:05 PM

    • Mario
    • Not Ranked
    • Joined on 11-04-2005
    • Posts 15

    submit to data connection and email problem

    1st of all, YES, I've done the search in the forums.

    I want to submit a form to a couple of data connections
    on my form and through email. My email code works great (also found using the search):

    Code is vb.net

    Dim oemail As EmailAdapter
    oemail = thisXDocument.DataAdapters.Item("SubmittoMgr")
    oemail.Submit()


    Most of the examples I have found indicate this should work for submitting to a data connection:

    thisXdocument.DataAdapters("Whatever").Submit

    however, I don't even see the .submit method of dataadapter, I also tried

    thisXdocument.DataAdapters.Item("Whatever").Submit

    I only see "Get Type" and "Count", no submit method of dataadapter

    Am I missing a Imports, Namespace???

    Any help appreciated.






  • 03-03-2006 12:43 PM In reply to

    Re: submit to data connection and email problem

    Hi Mario,
    You need to convert the Adapter into apropriate type and then call "Submit" on that.

    For ex: If it is a Webservice adapter
    WebserviceAdapter2 xyz = (WebserviceAdapter2)thisXdocument.DataAdapters("Whatever")
    xyz.Submit()

    Similarly for all the "Adapters" you need to convert to its actual type and then call submit on that object.
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.