Displaying a section multiple times - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Displaying a section multiple times

Last post 12-01-2005 08:35 PM by rjohnson. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 11-30-2005 08:25 PM

    • rjohnson
    • Top 500 Contributor
    • Joined on 09-01-2005
    • Australia
    • Posts 28

    Displaying a section multiple times

    Is it possible to display a section a number of times on a view?

    For example, I have a section I need to be displayed 3 times,
    but in design mode I want to make changes to the section once, and when the end user runs the form, it will show the 3 sections.

    This might be possible if I use a repeating section and predetermine the amount of entries in the repeating section, but I am not sure how to do this.
    However, I'd rather be able to create a section, and be able to place it wherever I wanted in the view, and when I changed the section, all other copied section would change accordingly.

    Does anyone have any ideas?

    Thanks.
  • 11-30-2005 08:52 PM In reply to

    Re: Displaying a section multiple times

    Hi,

    Why don't you just copy the section once you worked on it at design time and paste it as many times as you want in the same view?

    Regards,

    Franck Dauché
    InfoPathDev
  • 11-30-2005 09:51 PM In reply to

    • rjohnson
    • Top 500 Contributor
    • Joined on 09-01-2005
    • Australia
    • Posts 28

    Re: Displaying a section multiple times

    Thanks for the quick reply franck,

    but the problem with copying a section, is that when I need to make changes at a later stage, I'd have to make the changes across all the sections that were made.

    I'd rather be able to make the ammendments once, and let them flow through to all the sections.
  • 11-30-2005 10:56 PM In reply to

    Re: Displaying a section multiple times

    I am a little confused here. If the other sections are just a copy of your original section, can you delete the old copies and copy and paste again? I must be missing something.

    Regards,

    Franck Dauché
    InfoPathDev
  • 11-30-2005 11:18 PM In reply to

    Re: Displaying a section multiple times

    Hi RJohnson,
    Set minOccurs=3 and it will show up three times. You can do this via the schema

    Patrick Halstead [InfoPath MVP]
    InfoPathDev
    Patrick Halstead
    Project Manager at Qdabra
  • 12-01-2005 08:35 PM In reply to

    • rjohnson
    • Top 500 Contributor
    • Joined on 09-01-2005
    • Australia
    • Posts 28

    Re: Displaying a section multiple times

    Thanks for the reply Patrick,

    It took me a while to work out how the minOccurs works, but I understand it now.

    I edited the schema, but got an error "x-soln://... 'minOccurs' > 'maxOccurs'."

    I later realised that once I had made the change in the "myschema.xsd" file, I had to go into design mode and make a small change, eg: add a space, then save the file. Only then would the new minOccurs be recognised.

    This still doesn't allow me to create a section that can be dynamically repeated anywhere on a view, such as in between text or pictures. However, being able to repeat a given section via repeating sections is a good workaround for me.

    - Reg
Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.