Where's my code? - 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 » Where's my code? Use our Google Custom Search for best site search results. Where's my code? Last post 08-28-2009 02:56 AM by Rémi MATAYRON. 2 replies. Page 1 of 1 (3 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 08-27-2009 03:36 PM KarenSL Joined on 12-22-2008 Posts 38 Where's my code? Reply Contact I have a form that I put some code on some buttons to move some fields around. I followed the instructions from here: http://msdn.microsoft.com/en-us/library/ms772110.aspx on how to publish templates with code. That all works as I expected it to, however when I go to my site collections form templates library and click on the form, the code that is behind those buttons is gone, nothing happens. The code works fine in IP preview mode so I know it's there; I can open the original template and see the code as well. Did I miss a step that takes the code with the template in the publish? Any thoughts? Thanks! 08-27-2009 10:50 PM In reply to Qazi Anis Joined on 03-13-2009 Chicago Posts 1,025 Re: Where's my code? Mark as Not AnswerMark as Answer... Reply Contact i think you are missing doing it wrong, you have missed out activating it to a site collection, and setting content type of some doc/form library to this new template. i guess u need to read this http://sharenotes.wordpress.com/2008/03/18/using-stsadm-to-deploy-upgrade-update-infopath-forms-templates-with-managed-code-behind/ tell me if it didnt solve your problem Qazi AnisTechnical ArchitectBitwise Inc 08-28-2009 02:56 AM In reply to Rémi MATAYRON Joined on 08-28-2009 FRANCE Posts 27 Re: Where's my code? Mark as Not AnswerMark as Answer... Reply Contact I think you are using a control that is not defined as "Always send data to server". Right click on the control and go to "Properties/Navigator Forms" and click "Always". It will work fine in Fom Server now... RĂ©mi MATAYRON / MVP InfoPath Visit my blog : Infopath Blog Page 1 of 1 (3 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Use our Google Custom Search for best site search results.
I have a form that I put some code on some buttons to move some fields around. I followed the instructions from here: http://msdn.microsoft.com/en-us/library/ms772110.aspx on how to publish templates with code. That all works as I expected it to, however when I go to my site collections form templates library and click on the form, the code that is behind those buttons is gone, nothing happens. The code works fine in IP preview mode so I know it's there; I can open the original template and see the code as well.
Did I miss a step that takes the code with the template in the publish?
Any thoughts?
Thanks!
i think you are missing doing it wrong, you have missed out activating it to a site collection, and setting content type of some doc/form library to this new template. i guess u need to read this
http://sharenotes.wordpress.com/2008/03/18/using-stsadm-to-deploy-upgrade-update-infopath-forms-templates-with-managed-code-behind/
tell me if it didnt solve your problem
I think you are using a control that is not defined as "Always send data to server".
Right click on the control and go to "Properties/Navigator Forms" and click "Always".
It will work fine in Fom Server now...