Update XSN template programmatically - InfoPath Dev
in

InfoPath Dev

Update XSN template programmatically

Last post 09-14-2009 05:18 PM by Hilary Stoupa. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 09-13-2009 07:16 PM

    Update XSN template programmatically

    Hi Everyone!

    I have got a Drop Down list in InfoPath form. After submit, it create new blank form. I want to set default value for the drop down list programmatically when open the new blank form on the second time, based on the value selected from drop down list before.

    Is it possible and how to do it?

    Thanks

    basquang

  • 09-13-2009 10:27 PM In reply to

    Re: Update XSN template programmatically

    hi basquang

    well it is possible to set the value fo a drop down programatically, you will have to create the new form programatically.

    when you  submit the form, you will have to create the new form (xml) programatically, set the values and then open it.

    you dont have to update XSN, you have to create xml.

    Qazi Anis
    Technical Architect
    Bitwise Inc
  • 09-14-2009 12:21 AM In reply to

    Re: Update XSN template programmatically

    Hi Qazi Anis!

    Thanks for your help! But, how to get value from last form (xml) to set for new form? Do We need access back to last form? Do you have any sample code to cew the new form programmatically?

    Thanks

  • 09-14-2009 02:01 AM In reply to

    Re: Update XSN template programmatically

    you can write code inside the old form, or you can promote the fields whose values you want. tell me which approach you want

    Qazi Anis
    Technical Architect
    Bitwise Inc
  • 09-14-2009 02:14 AM In reply to

    Re: Update XSN template programmatically

    Thanks Qazi, I understand your solution. Does it must be using "Create a new form programmatically"? Cannot use "Open a new blank form" existed function in InfoPath?

  • 09-14-2009 02:33 AM In reply to

    Re: Update XSN template programmatically

    sorry i dont think that is possible, you cant change the xsn dynamically. Might be somebody knows better,

    Qazi Anis
    Technical Architect
    Bitwise Inc
  • 09-14-2009 05:18 PM In reply to

    Re: Update XSN template programmatically

    If you want to push the value from one form into a new form when you open a new form, you'll need to write code for it. IP doesn't handle this scenario out of the box.

    Hilary Stoupa

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