How can i get the form name into a field of the form? - InfoPath Dev
in

InfoPath Dev

How can i get the form name into a field of the form?

Last post 03-12-2009 03:30 AM by Ajrob. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 03-12-2009 03:30 AM

    • Ajrob
    • Not Ranked
    • Joined on 03-12-2009
    • Spain
    • Posts 2

    How can i get the form name into a field of the form?

    First of all hello to everybody, I am new at InfoPath (the version I am actually working is 2007 with C# 2007 OM) 

    I am working with infopath with web browser complatiblity and i am trying to do the next thing: when the form is new I assign the name getting the date, but when the form is not new and the user is editting it when he submit the form must keep his name. As i am working with custom save buttons the DataConnection used to send the form requires the name of the form, and I don´t know how can i get it.

    The logic I have developed is below:

    When the form is new, I save/upload it to a MOSS through a custom save button and this button assign the name with the Date/hour that is stored in a form field name dtNow with the function now().

                //submit the form using the data connection
                DataConnections["Envío de Aceptación"].Execute();

                //set e.CancalableArgs to be false once form has successfully saved
                e.CancelableArgs.Cancel = false; 

     

    When the form is edited, I would like to save without putting it another name, so I thought that I could capture the name into a form field and use another DataConnection in the managed code.

     

    Thank you in advance.

     

     

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