Ravelling/Unravelling a section

D

Damian Fawkner

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
 
J

JerryTh [MSFT]

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
 
D

Damian Fawkner

Hi,

Thanks very much for the response.

Regards
Damian

JerryTh said:
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
----------------------------------------------------
--------------------------------------------------------------------------


--
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.


Damian Fawkner said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top