InfoPath 2003- publishing forms in SharePoint - InfoPath Dev
in

InfoPath Dev

InfoPath 2003- publishing forms in SharePoint

Last post 04-24-2007 12:17 PM by Shiva. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-10-2007 08:58 AM

    • ashrafa
    • Not Ranked
    • Joined on 04-10-2007
    • United Kingdom
    • Posts 3

    InfoPath 2003- publishing forms in SharePoint

    Hi,



    Can someone please help with the following?



    I have created a form in InfoPath 2003 and this has a Command Button so when the users press the button it should publish the form in a forms library on SharePoint.



    This works without any problems for the first user that submits the form, once one form has been submitted and if another user tries to submit the form they get an error message:



    “A value in the form may be used to specify the file name. If you know the value in the form that specifies the file name, revise it and try again. Otherwise, contact the author of the form template”.



    I know the error is due to the file name been the same, however is there away that I can set it so when the users press the command button to submit the form it puts something like a time stamp so the file name will be different and I would not get the error message.



    Many thanks
  • 04-11-2007 01:13 AM In reply to

    Re: InfoPath 2003- publishing forms in SharePoint

    Hi

    Look at the following link for the solution to your problemhttp://infopathdev.com/forums/topic.asp?TOPIC_ID=4815

    Please do not post the same post in two different areas.
    Madhuri
    http://www.ggktech.com
  • 04-24-2007 12:17 PM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: InfoPath 2003- publishing forms in SharePoint

    Hi Akjal,

    You want to iterate the data repeat the section in that repeating section right. For this you need to use code like for[/] or [b]foreach as below:

    IXMLDOMNodeList outerRepeatingSectionNodeList = thisXDocument.DOM.selectNodes(“Xpath of your outer repeating section node”);

    foreach (IXMLDOMNode outerRepeatingSectionNode in outerRepeatingSectionNodeList)

    {

    IXMLDOMNodeList innerRepeatingSectionNodeList = outerRepeatingSectionNode.selectNodes(“Xpath of your inner repeating section node”);

    foreach(IXMLDOMNode innerRepeatingSectionNode in innerRepeatingSectionNodeList)

    {

    //Get the node1 value in innerRepeatingSection node

    string node1Value = innerRepeatingSectionNode.selectSingleNode(“Xpath of node1”).text;

    //Get the node2 value in innerRepeatingSection node

    string node1ealue = innerRepeatingSectionNode.selectSingleNode(“Xpath of node2”).text;

    //Do some code to append this node value to where do you want display the node

    }

    }

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