Upgrading an admin approved infopath form - InfoPath Dev
in

InfoPath Dev

Upgrading an admin approved infopath form

Last post 07-14-2012 07:16 AM by Gennady Vanin (Геннадий Ванин, Новосибирск). 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 06-20-2012 02:49 AM

    Upgrading an admin approved infopath form

    Greetings all - Bit of a strange one.

    I have an infopath form library that I publish a form to.

    I now have code in the form and it has full trust level. I have published this to a network location as per the SP instructions.

    I can verify and upload the file and activate the the form to a site collection.

    However, the original form (without code) stays the same and is not upgraded. I can find the 'new" form in the site collection form libary site collection and it runs ok.

    Why is my form not updating to the new one! I have checked version and URN settings!

  • 06-20-2012 05:15 AM In reply to

    Re: Upgrading an admin approved infopath form

    If the file names are the same, you should expect to get a message about upgrading the solution. That is, you wouldn't need to re-activate the form.

    So that would be my first guess: that the filenames are different and therefore SharePoint central admin is treating them like separate forms.

    Can you check? Thanks!

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 06-21-2012 06:42 AM In reply to

    Re: Upgrading an admin approved infopath form

    Thanks for the response Ernest, really scratching my head on this one.

    Steps I take are

    1 ) Open the current form in infopath (Has no managed code) Save it to my computer.

    2) Save the form (with say filename SVR.XSN).

    3) Publish that form.

    4) Add code to the form. Publish to a network location.

    5) Verify and Publish the form through central admin (with say filename SVR.XSN).

    This is the process I am following at the moment and the original form (without code) is not upgraded to the new form (with code). Any Suggestions.

     

  • 06-25-2012 03:24 AM In reply to

    Re: Upgrading an admin approved infopath form

    Any takers on this?

     Ive changed  the content type tp reflect the new form (That is in form templates) but this still doesnt solve my problem as updates to  the new coded form are NOT updated in existing forms.

     Some one must know the answer here! :)

  • 06-25-2012 09:05 AM In reply to

    Re: Upgrading an admin approved infopath form

    Did the new form overwrite the old template? Or does it have a new name? If the name is different, the old XML will be linked to the previous template, and will need to be relinked (you can to this in the form library - there is a relink view for this).

    Hilary Stoupa

  • 06-26-2012 12:11 AM In reply to

    Re: Upgrading an admin approved infopath form

    Thanks for the response Hilary. 

    Relinking doesn't affect the form at all. It still opens in the old template.

    The new form is applied to the form template library. In order to use the browser based from in the a custom form library ive added it as a content type. So any new ones will be in the new format but old ones are still in the old one. I had assumed by updating the one in the form template library, this would automatically update the one in the custom list.

    The form published to a network location for administrator approval has the same name as the original form, just some code! This is killing me!

    Is there anyway to set  the path of the form from within the form so it always uses a certain template?!

     

     

     

  • 06-27-2012 01:55 AM In reply to

    Re: Upgrading an admin approved infopath form

    I seem to have stumped the panel?! - Should I ask elswhere?

  • 06-27-2012 08:13 AM In reply to

    Re: Upgrading an admin approved infopath form

    I think the issue may be that the behavior you are describing is unusual. Perhaps no one else has run into it?

    Hilary Stoupa

  • 07-14-2012 07:16 AM In reply to

    Re: Upgrading an admin approved infopath form

    Bricey:
    I have an infopath form library that I publish a form to.

    I now have code in the form and it has full trust level

    This, full trust, seems to be unnecessary and required only for client/Filler forms , to be run locally or previewing browser forms by F5 in Infopath Filler locally (?) 
    I have just re-checked that Browser Form with custom C# code does not need Full Trust  (and, hence, administrator approval) for publishing and running from sharepoint form library

    The default Domain security level is enough to publish and run browser forms with custom code from sharepoint server.
    BTW,  local previewing (F5) of browser form with a code in local Infopath Designer 2010 is not possible without attributing a full trust, by strange quirks and twists of Microsoft's logic!

    Though they are published and run fine remotely - from Sharepoint server without any becessity to be approved - can anybody explain the sense of it:

    • to be restricted in running local form on my local Infopath Filler, even if it is not accessing anything outside
    • while having no such restrictions fro running i t outside

    BTW, I even cannot run administrator-approved forms on my Sharepoint Online (Office 365) site since there is no access to Sharepoint Central Administration and, hence, approving forms.

    Though, I can configure to open/run browser form locally in Infopath Filler by clicking links on sharepoint server
    (without any changes I have browser forms opened in browser while in Mozilla Firefox and locally in Infopath Filler from Internet Explorer!
    nice workaround by Microsoft itself).

    So, this full trust is just incomprehensible (what's for?) pain in the ass easily bypassed!   

    Why is this question in Browser forms forum?

    Bricey:
    I have published this to a network location as per the SP instructions

    You mean on shared folder outside of sharepoint server?

    Which instructions, can you give references?

     

    Bricey:
    The new form is applied to the form template library. In order to use the browser based from in the a custom form library ive added it as a content type. So any new ones will be in the new format but old ones are still in the old one. I had assumed by updating the one in the form template library, this would automatically update the one in the custom list.

    The form published to a network location for administrator approval has the same name as the original form, just some code! This is killing me!

    Is there anyway to set  the path of the form from within the form so it always uses a certain template?!

     

    I am somewhat confused whether you are describing here one setup, with content types, or a few ones, also without a content types, etc...?

    Have you checked the Allow management of content types check box in the Settings area, under Advanced Settings.

    Tip Content types cannot be added to a list or library if the Allow Management of Content Types checkbox is cleared.

    Anyway I would appreciate if you share here how your case ended up

    Update:
    I believe you should also find very entertaining:

     with included there reference to:

    Gennady Vanin (Novosibirsk) --- Геннадий Ванин (Новосибирск)
Page 1 of 1 (9 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.