How to create an Infopath 2010 form from VisualBasic - InfoPath Dev
in

InfoPath Dev

How to create an Infopath 2010 form from VisualBasic

Last post 03-11-2013 01:40 AM by jricorod. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-05-2013 02:54 AM

    How to create an Infopath 2010 form from VisualBasic

    Hi to all!

     I´m developing a Sharepoint Site and I´m loading an InfoPath 2010 Form into a Sharepoint Library. I need to save some fields of that Form in other InfoPath Form. The way I´ve thought is using VB but I´m looking for some information about this and I don´t find anything.

    Anyone knows How I can develop this? Or some website with information for this?

     Thanks a lot!!

    Regards, jricorod.

  • 03-10-2013 11:22 AM In reply to

    Re: How to create an Infopath 2010 form from VisualBasic

    Hi JRicoRod,

    I think Greg did an example of this back in 2005 - check out Downloads->Samples (it may use C# though). Here are the techniques I can think of:

    1. Code - launch InfoPath form from existing and pass it a pointer back to current. Target form uses pointer to get data. This is Greg's technique in the samples.
    2. Input Parameter and Promoted Properties - first form launches second form with an input parameter (something like http://server/site/library/form.xml?p=123, where p is the parameter and 123 is the ID of the form you are launching from). The target form queries the form library on load filtering on the parameter p and pulls the promoted properties (column data) into the form. This works pretty well and is mostly codeless. qRules has an GetInputParameter command, so you could be totally codeless, or you could search this forum for code to get the input parameter using VB.NET.
    3. Lists. Data to be shared between forms is stored in an intermediate list (or SQL DB for lots of data). The source form code use a list to save the data. The target form could query that list on open. Obviously, need to pass some parameter from source to target to tell it which items to load. Input parameter needed to do that (see 2).

    Good luck!

    Patrick Halstead
    Project Manager at Qdabra
  • 03-11-2013 01:40 AM In reply to

    Re: How to create an Infopath 2010 form from VisualBasic

    Hi Patrick,

    Finally I found a VB solution, when I finish the development I´ll share the solution with all. Anyway, Thanks a lot for your reply.

     

    Regards, jricorod.

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.