locked
Switching between two infopath templates RRS feed

  • Question

  •  

    Hi,

     

    I have a scenario in which i need to use two infopath form templates in a library say Template1 and Template2. Out of these two one template Template1 should be used when a user will create a new request. But the other template Template2 should be used whenever someone will open the previously generated requested(generated using Template1). Both the templates are having very similar fields. But the arrangement is different a bit.

     

    Can you tell me how this can be done?

     

    Akash Kansal.

    Friday, July 11, 2008 1:22 PM

Answers

All replies

  • People would normally use different "views" in Infopath fort his purpose.

     

    Have a look here:

    http://blogs.msdn.com/trobbins/archive/2005/06/02/424501.aspx

    Sunday, July 13, 2008 1:00 PM
  • Thanks Paul. That video was very good.

     

    Now, one more problem is there i.e. i want to add a picture in my infopath form that will be static and the form should be browser enabled also. I tried various links like

     

    http://enterprise-solutions.swits.net/blog/?p=40    and

     

    http://enterprise-solutions.swits.net/browserforms/display-images-browser-form-repeating-table-rich-text-box-control.htm

     

    But that was of not much help as i was not able to implement that.

    if you can provide me with some links regarding that I will be very thankful to you.

     

    Akash Kansal.

     

     

     

    Tuesday, July 15, 2008 6:16 AM
  • Hi,

     

    I just pasted the pics in the table cells and that will do for me.

    But other problem is that while i am checking my form to be browser enabled it is giving me the error message "User roles are not supported." I commented whole my code behind file then checked still the same error then i checked each and every control of both of my infopath views for the possibilty they may be using some user role but no control in my forms using any rule or data validation or formatting which will depend on the user using the form.

    And i am switching the view depending upon a text box if its not empty then switch otherwise not.

     

    Can you tell what are the most common reason for that error may be i am forgetting something.

     

    Akash Kansal.
    Tuesday, July 15, 2008 8:01 AM
  • I'm not familiar with that error.

     

    Your logic for switching views should be fine. 

     

    I would try deleting the code (make a backup first) to isolate the problem to that.  You can delete the code in one step like this: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!609.entry?wa=wsignin1.0

     

     

    Tuesday, July 15, 2008 11:43 AM
  • Hi, 

    I am working on Infopath 2007 template having two views. One is request creation and other is approval. But when i checked my forms compatibility with the browser i got the error "User roles are not supported.". I thought may be some problem with my design and i am using some rules in UI and code which are not compatible. Then i removed my code first then i removed all of my controls one by one and then even some of the images and at last i removed everything so just blank forms in both views. But still i was getting the same irritating error even with empty forms.

    And when i created new project with empty template it was working fine.

    Can you tell me the possible reason for this?

     

    Akash Kansal.

    Tuesday, July 15, 2008 12:12 PM