Publishing Fields. - InfoPath Dev Sign in | Join | Help in SharePoint Integration InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » SharePoint Integration » Publishing Fields. Publishing Fields. Last post 08-31-2009 09:50 PM by princevis. 21 replies. Page 1 of 2 (22 items) 1 2 Next > Sort Posts: Oldest to newest Newest to oldest Previous Next 08-17-2009 11:20 PM princevis Joined on 08-18-2009 Delhi Posts 129 Publishing Fields. Reply Contact I have an infopath form,i'm publishing that form to a local location at 'D' and some folder,then i'm uploading the form template in Central admin,and after that,i'm using that template as one of the content types in Form library.That form is accepting all the changes if i'm making any change to that,but it's fields are not publishing to that form library,to be more clear,i'm publishing one field as "TravelrequestNumber" and giving it a column name "Travel request Number" in form library,but that column name is not created by the form library by itself,when i created that using settings in the form library,it is not accepting the value entered while filling out the form Any help would be highly appreciated.. Thanks In Advance Vishal SrivastavaSenior Software EngineerSDG Software Pvt Ltd 08-18-2009 08:00 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,297 Re: Giving id to every Repeating Section in Infopath form by code Mark as Not AnswerMark as Answer... Reply Contact Hi-- Do the Id's need to be unique to each form (xml)? or across all forms from that template? Why do you need a Changing event? For complex validation? In that instance, you still have access to the Validating event. I know in InfoPath 2003, you couldn't make changes to the DOM in OnBeforeChange events, the DOM was read only at that time and it looks like the Changing event behaves the same way. Hilary Stoupa 08-18-2009 09:20 PM In reply to princevis Joined on 08-18-2009 Delhi Posts 129 Re: Giving id to every Repeating Section in Infopath form by code Mark as Not AnswerMark as Answer... Reply Contact Hi Hilary,Thanks for replying.. well i'm designing a travel request form, so my requirement is to get a unique id for every form that will be filled with that template,this is achieved, now the user wants to have a multiple trip in the same travel request form, for which i have a repeating section where user can enter details of every trip and can enter multiple trips, by keep adding the section, i want to get the different and unique id's for all the repeating sections and they must be autogenerated as well, also if user delete particular section than that id should get deleted and new section should have a different id.. Any help would be appreciated.Thanks in Advance.. Vishal SrivastavaSenior Software EngineerSDG Software Pvt Ltd 08-21-2009 02:00 AM In reply to princevis Joined on 08-18-2009 Delhi Posts 129 Re: Giving id to every Repeating Section in Infopath form by code Mark as Not AnswerMark as Answer... Reply Contact Thanks Hilary,your preceding-sibling thing works,i managed to create a new ID for every repeating section. Thanks A ton.. Vishal SrivastavaSenior Software EngineerSDG Software Pvt Ltd 08-21-2009 02:00 AM In reply to princevis Joined on 08-18-2009 Delhi Posts 129 Re: Giving id to every Repeating Section in Infopath form by code Mark as Not AnswerMark as Answer... Reply Contact Thanks Hilary,your preceding-sibling thing worked,i managed to create a new ID for every repeating section. Thanks A ton.. Vishal SrivastavaSenior Software EngineerSDG Software Pvt Ltd 08-21-2009 03:50 AM In reply to princevis Joined on 08-18-2009 Delhi Posts 129 Re: Giving id to every Repeating Section in Infopath form by code Mark as Not AnswerMark as Answer... Reply Contact Actually i have 3 sections in an Infopath form,i want to enable the other two sections on click of send button,any idea how this can be achieved. Any help would be appreciated.. Vishal SrivastavaSenior Software EngineerSDG Software Pvt Ltd 08-22-2009 03:38 AM In reply to Qazi Anis Joined on 03-13-2009 Chicago Posts 1,025 Re: Giving id to every Repeating Section in Infopath form by code Mark as Not AnswerMark as Answer... Reply Contact i hope u r disabling the section using conditional formatting. in the conditional formatting add one more condition and check a field (say "is buttonclicked"). set the default value of the field to no. and on button click set the value to "yes". the conditional formatting will automatically fire and the sections will be enabled Qazi AnisTechnical ArchitectBitwise Inc 08-24-2009 04:47 AM In reply to princevis Joined on 08-18-2009 Delhi Posts 129 Re: Giving id to every Repeating Section in Infopath form by code Mark as Not AnswerMark as Answer... Reply Contact Thanks Qazi It helps actually in disabling sections,but on click of one of the button,i'm submitting the form to the form library,and i want to enable sections at the same time on click of that particular button,i put a check box and sets it's value to true by default and on button click through code,i'm changing it's value to false,it is working when i'm keeping the form open after submit,if i'm closing the form after submit,this condition is not working,and none of the sections are becoming visible even after button click. Any suggestions. Thanks In Advance Vishal SrivastavaSenior Software EngineerSDG Software Pvt Ltd 08-24-2009 09:29 PM In reply to princevis Joined on 08-18-2009 Delhi Posts 129 Publishing Fields in Infopath form Mark as Not AnswerMark as Answer... Reply Contact I have an infopath form,i'm publishing that form to a local location at 'D' and some folder,then i'm uploading the form template in Central admin,and after that,i'm using that template as one of the content types in Form library.That form is accepting all the changes if i'm making any change to that,but it's fields are not publishing to that form library,to be more clear,i'm publishing one field as "TravelrequestNumber" and giving it a column name "Travel request Number" in form library,but that column name is not created by the form library by itself,when i created that using settings in the form library,it is not accepting the value entered while filling out the form Any help would be highly appreciated.. Thanks In Advance Vishal SrivastavaSenior Software EngineerSDG Software Pvt Ltd 08-25-2009 01:18 AM In reply to Qazi Anis Joined on 03-13-2009 Chicago Posts 1,025 Re: Publishing Fields in Infopath form Mark as Not AnswerMark as Answer... Reply Contact hi Vishal, you will need to disable the form first and then upload form in central admin and then enable the form to your site collection . But this has a problem the columns get created with same name (but actual name is some weird). and you cannot programatically access those. the only solution i could find was create the columns manually and in the infopath form instead of publishing the form use spobjects to update the Qazi AnisTechnical ArchitectBitwise Inc 08-25-2009 01:23 AM In reply to Qazi Anis Joined on 03-13-2009 Chicago Posts 1,025 Re: Giving id to every Repeating Section in Infopath form by code Mark as Not AnswerMark as Answer... Reply Contact hi vishal i guess u r changing the value to false after submitting the form and this value does not get saved. that is why if you dont close the form it works fine. but if you close and try to again open it, it does not work you will need to change the value before submitting the form hope it helps Qazi AnisTechnical ArchitectBitwise Inc 08-25-2009 05:08 AM In reply to princevis Joined on 08-18-2009 Delhi Posts 129 Re: Giving id to every Repeating Section in Infopath form by code Mark as Not AnswerMark as Answer... Reply Contact Dear Qazi, When i'm trying to change the value of fields before submitting the form,the form is showing processing error as system.exception. Any hint how to do that without getting the error... Vishal SrivastavaSenior Software EngineerSDG Software Pvt Ltd 08-25-2009 06:07 AM In reply to Qazi Anis Joined on 03-13-2009 Chicago Posts 1,025 Re: Giving id to every Repeating Section in Infopath form by code Mark as Not AnswerMark as Answer... Reply Contact it seems your data validations are failing after you change the value before submitting. And if you change value after submitting those dont get changes Qazi AnisTechnical ArchitectBitwise Inc 08-25-2009 07:08 AM In reply to princevis Joined on 08-18-2009 Delhi Posts 129 Re: Giving id to every Repeating Section in Infopath form by code Mark as Not AnswerMark as Answer... Reply Contact Is it possible to disable certain section in infopath form,and on copyng that form to other location using workflow,that section would be enabled... Vishal SrivastavaSenior Software EngineerSDG Software Pvt Ltd 08-26-2009 12:29 AM In reply to Qazi Anis Joined on 03-13-2009 Chicago Posts 1,025 Re: Giving id to every Repeating Section in Infopath form by code Mark as Not AnswerMark as Answer... Reply Contact hello vishal, yes this is possible, you disable certain sections based on the value in a particular field. promote that field to appear in the list, and check the field that says allow users to edit data in the filed by using a datasheet or properties page. now when you move it to other location using workflow change the value of this field in the list and it will get reflected in the form also. hope this solves your problem Qazi AnisTechnical ArchitectBitwise Inc Page 1 of 2 (22 items) 1 2 Next > Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
I have an infopath form,i'm publishing that form to a local location at 'D' and some folder,then i'm uploading the form template in Central admin,and after that,i'm using that template as one of the content types in Form library.That form is accepting all the changes if i'm making any change to that,but it's fields are not publishing to that form library,to be more clear,i'm publishing one field as "TravelrequestNumber" and giving it a column name "Travel request Number" in form library,but that column name is not created by the form library by itself,when i created that using settings in the form library,it is not accepting the value entered while filling out the form
Any help would be highly appreciated..
Thanks In Advance
Hi--
Do the Id's need to be unique to each form (xml)? or across all forms from that template? Why do you need a Changing event? For complex validation? In that instance, you still have access to the Validating event. I know in InfoPath 2003, you couldn't make changes to the DOM in OnBeforeChange events, the DOM was read only at that time and it looks like the Changing event behaves the same way.
Hi Hilary,Thanks for replying..
well i'm designing a travel request form, so my requirement is to get a unique id for every form that will be filled with that template,this is achieved, now the user wants to have a multiple trip in the same travel request form, for which i have a repeating section where user can enter details of every trip and can enter multiple trips, by keep adding the section, i want to get the different and unique id's for all the repeating sections and they must be autogenerated as well, also if user delete particular section than that id should get deleted and new section should have a different id..
Any help would be appreciated.Thanks in Advance..
Thanks Hilary,your preceding-sibling thing works,i managed to create a new ID for every repeating section.
Thanks A ton..
Thanks Hilary,your preceding-sibling thing worked,i managed to create a new ID for every repeating section.
Actually i have 3 sections in an Infopath form,i want to enable the other two sections on click of send button,any idea how this can be achieved.
Any help would be appreciated..
i hope u r disabling the section using conditional formatting. in the conditional formatting add one more condition and check a field (say "is buttonclicked"). set the default value of the field to no. and on button click set the value to "yes". the conditional formatting will automatically fire and the sections will be enabled
Thanks Qazi It helps actually in disabling sections,but on click of one of the button,i'm submitting the form to the form library,and i want to enable sections at the same time on click of that particular button,i put a check box and sets it's value to true by default and on button click through code,i'm changing it's value to false,it is working when i'm keeping the form open after submit,if i'm closing the form after submit,this condition is not working,and none of the sections are becoming visible even after button click.
Any suggestions.
hi Vishal,
you will need to disable the form first and then upload form in central admin and then enable the form to your site collection .
But this has a problem the columns get created with same name (but actual name is some weird). and you cannot programatically access those. the only solution i could find was create the columns manually and in the infopath form instead of publishing the form use spobjects to update the
hi vishal
i guess u r changing the value to false after submitting the form and this value does not get saved. that is why if you dont close the form it works fine. but if you close and try to again open it, it does not work
you will need to change the value before submitting the form
hope it helps
Dear Qazi,
When i'm trying to change the value of fields before submitting the form,the form is showing processing error as system.exception. Any hint how to do that without getting the error...
it seems your data validations are failing after you change the value before submitting. And if you change value after submitting those dont get changes
hello vishal,
yes this is possible, you disable certain sections based on the value in a particular field. promote that field to appear in the list, and check the field that says allow users to edit data in the filed by using a datasheet or properties page.
now when you move it to other location using workflow change the value of this field in the list and it will get reflected in the form also.
hope this solves your problem