How to update the value of XML file contained in .XSN file. - InfoPath Dev
in

InfoPath Dev

How to update the value of XML file contained in .XSN file.

Last post 09-04-2008 06:57 PM by f4f16. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 09-01-2008 01:18 AM

    • f4f16
    • Not Ranked
    • Joined on 08-26-2008
    • Posts 9

    How to update the value of XML file contained in .XSN file.

    Hi all, 

    I add a xml file into Infopath project. Now I want to update this xml file automatically when to open infopath form (.xsn file).

    Any suggetions is appreciated.

  • 09-01-2008 08:32 PM In reply to

    Re: How to update the value of XML file contained in .XSN file.

    Hello,

    In the process of taking the data connection for that xml, check the 'Automatically retrieve data when form is opened' check box at the end.

    Hope this helps you. 

     

    Swathip
    www.ggktech.com
  • 09-01-2008 09:41 PM In reply to

    • f4f16
    • Not Ranked
    • Joined on 08-26-2008
    • Posts 9

    Re: How to update the value of XML file contained in .XSN file.

    Thanks swathip's reply.

    But my design is:
    I add a XML file to Infopath project as datasource of Text Box controls. And I add some codes for updating this XML file by get Values from Database. Then I compile this project and get a .xsn file. Now when I open this Infopath Form Templete, I will get an exception and it cannot update this XML file.

    I realy want to implement the Infopath offline function.
    But I think it is unavailable. Because after I update this XML file included in form, I need to recompile this project. I mean we cannot modify those files included in form (.xsn file)

    Correct?????

  • 09-02-2008 02:16 AM In reply to

    Re: How to update the value of XML file contained in .XSN file.

    Hi, 

    After getting the xml file, set the xml data to a hidden field(Say field1)  in main data source. Use that field when you open the form offline.

    Swathip
    www.ggktech.com
  • 09-04-2008 06:57 PM In reply to

    • f4f16
    • Not Ranked
    • Joined on 08-26-2008
    • Posts 9

    Re: How to update the value of XML file contained in .XSN file.

    Thank you very much for your reply. But I still don't resolve my issue completely.

    My developing environment is Infopath2003 + Visual Studio 2003. Your way looks like not to save this status when to close the Infopaht template. so when I open this template with offline I still cannot get these data.

    Correct??

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