Creation of views programatically - InfoPath Dev
in

InfoPath Dev

Creation of views programatically

Last post 11-12-2009 09:44 PM by Qazi Anis. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 11-09-2009 07:21 AM

    • nebuk
    • Top 500 Contributor
      Male
    • Joined on 09-14-2009
    • UK
    • Posts 28

    Creation of views programatically

    Hi I am more just wondering if this is possible I have divided up my infopath form into sections using groups (with uniform names) so that I can identify them separately in the datasource, I was then looking to be able to copy the contents of these groups and create new views and paste them in. The copying of all of the parts is not the problem but I cant seem to find any resources on creating views programatically in infopath Any help would be greatly appreciated Many thanks Ben
  • 11-09-2009 11:24 PM In reply to

    Re: Creation of views programatically

    Hi nebuk,

    I dont think views can be created programatically, because that will attribute to changing of schema at run time. I would be more than happy if anybody has a positive response for this.

    Qazi Anis
    Technical Architect
    Bitwise Inc
  • 11-10-2009 01:45 AM In reply to

    • nebuk
    • Top 500 Contributor
      Male
    • Joined on 09-14-2009
    • UK
    • Posts 28

    Re: Creation of views programatically

    I think you could be right but anyone who would like to disagree please do :) do you know if there is anyway to programmatically modify the content of views? If not then I may just have to come up with a new plan :P
  • 11-10-2009 02:18 AM In reply to

    Re: Creation of views programatically

    hi nebuk,

    you can always use conditional formatting to decide which parts to show and which parts to hide, that would be the easiest way out for you

    Qazi Anis
    Technical Architect
    Bitwise Inc
  • 11-11-2009 07:03 AM In reply to

    • nebuk
    • Top 500 Contributor
      Male
    • Joined on 09-14-2009
    • UK
    • Posts 28

    Re: Creation of views programatically

    What do you mean by conditional formatting? I cant seem to find any way to setting infopath parts to be invisible Many thanks again for your help
  • 11-11-2009 07:10 AM In reply to

    Re: Creation of views programatically

    right click the control/field you want to hide, click on conditional formatting, and use conditions when to hide.

    Qazi Anis
    Technical Architect
    Bitwise Inc
  • 11-12-2009 03:01 AM In reply to

    • nebuk
    • Top 500 Contributor
      Male
    • Joined on 09-14-2009
    • UK
    • Posts 28

    Re: Creation of views programatically

    I really need to do this programatically as I am looking at doing this on sections and doing it over several 1000 sections in one form do you know if this is possible? Cheers Ben
  • 11-12-2009 09:44 PM In reply to

    Re: Creation of views programatically

    hi ben,

    as far as i know there i no way you can create views dynamically, or use conditional formatting directly through code. albeit there is a work arouund for using conditional formatting via code, but that is not purely code based.

    create a textbox on your form (say textbox_conditional_section_1 and set its initial value to "hide") and put conditional formatting on your form (if textbox_conditional_section_1 = "hide") hide the section. similar with all the sections you are going to use.

    in code determine what sections the user should be able to view and for those sections set the associated textboxes(textbox_conditional_section_1) to something other than hide. that should hide other sections and project only the required sections.

    Qazi Anis
    Technical Architect
    Bitwise Inc
Page 1 of 1 (8 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.