Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / March 2007

Tip: Looking for answers? Try searching our database.

Ravelling/Unravelling a section

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Damian Fawkner - 23 Mar 2007 05:08 GMT
Hi,

I have a repeating section on a form.  Now the contents of each instance of
the repeated section has the potential to be quite long.  I would like to
allow  ravelling and unravelling of a repeated section.  Similar to a tree
view control (click on the +/-) in explorer.

Ideally I'd like to do this with a minimal of coding underneath.  

To illustrate what I'm after - Let's say the section normally contains
Name
Description (a section inside this section)
Other elements

Now when I 'ravel' this section, I want to hide the Description section and
any other elements in this section and just show the 'Name' component.

I.e. If a ravel up all the sections, I'd like to see
+ Name 1
+ Name 2
+ etc...

When I unravel them, then I want to see something like:
- Name1
 Description section for Name 1
 Other elements for this Name
- Name 2
 Description section for Name 2
 Other elements for this Name
etc...

Is this possible.  And if so, how?

Regards
Damian
JerryTh [MSFT] - 28 Mar 2007 01:51 GMT
No coding required!
You will need to rework you data just a little.

Add 2 buttons and a field and a section to the Repeating section.
The added field ("Hide") does not need to be on the form.
When the user clicks the [+] button, have it set the "Hide" = False (using
Rules).
On the nested section, add Conditional Formatting to hide the control when
"Hide" = True, and not hide when "Hide" = False.
Also add this conditional formatting to the buttons so that only 1 is showing.
(You don't have to add the section, but that is easier than adding the
formatting to every field, and remembering to add it when you add new fields!)

------------------------------  Repeating Section---------------------
[+][-] Name: _______________

    ---------------------Section----------------------
    |     Other data, description, etc
    ----------------------------------------------------
--------------------------------------------------------------------------

Signature

This posting is provided "AS IS" with no warranty & confers no rights.
Sample code subject to http://www.microsoft.com/info/copyright.htm. Do not
send email to this alias. It is for newsgroups only.

> Hi,
>
[quoted text clipped - 31 lines]
> Regards
> Damian
Damian Fawkner - 29 Mar 2007 12:02 GMT
Hi,

Thanks very much for the response.

Regards
Damian

> No coding required!
> You will need to rework you data just a little.
[quoted text clipped - 52 lines]
> > Regards
> > Damian
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.