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 / June 2005

Tip: Looking for answers? Try searching our database.

Selecting options for a numbered list

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dbconsulting - 24 Jun 2005 15:25 GMT
I would like to have an input view in which I have 3 options that I can
independently select (i.e. 3 check boxes).

I would like a print view to display only the selections I have made and put
them in a numbered list.

So if I select Option 1 and Option 2 I would like the print view to display:

1) Option 1
2) Option 2

However If I select Option 1 and 3, then it would show

1) Option 1
2) Option 3

any ideas would be appreciated.

Thx
Greg Collins [InfoPath MVP] - 24 Jun 2005 18:01 GMT
On option (there's probably better ones) that I can think of right now would be to have a secondary data source that you copy the selected options to (and not the unselected options). Then in the print view, you can have a numbered list displayed from the repeating data in the secondary data source. The numbers will be in seqeunce as you require.

Signature

Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com

I would like to have an input view in which I have 3 options that I can
independently select (i.e. 3 check boxes).

I would like a print view to display only the selections I have made and put
them in a numbered list.

So if I select Option 1 and Option 2 I would like the print view to display:

1) Option 1
2) Option 2

However If I select Option 1 and 3, then it would show

1) Option 1
2) Option 3

any ideas would be appreciated.

Thx
Alex [MSFT] - 26 Jun 2005 02:08 GMT
Alternatively, you could put the same three checkboxes into the print view;
put each of them into a separate section; setup conditional formatting on
each of the sections to hide the section if the checkbox inside of it is
false.

Good luck,
Alex @ Microsoft

On option (there's probably better ones) that I can think of right now would
be to have a secondary data source that you copy the selected options to
(and not the unselected options). Then in the print view, you can have a
numbered list displayed from the repeating data in the secondary data
source. The numbers will be in seqeunce as you require.

Signature

Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com

I would like to have an input view in which I have 3 options that I can
independently select (i.e. 3 check boxes).

I would like a print view to display only the selections I have made and put
them in a numbered list.

So if I select Option 1 and Option 2 I would like the print view to display:

1) Option 1
2) Option 2

However If I select Option 1 and 3, then it would show

1) Option 1
2) Option 3

any ideas would be appreciated.

Thx
dbconsulting - 27 Jun 2005 04:32 GMT
I haven't tried Greg's option, but I will.

I don't think I understand your option, Alex.
I tried what you said, but I put the numbering outside of the sections (in
order to get them to sequence). However, while the conditional formatting
hide the section, the number still showed up with a blank area next to it.

When I try to put the numbering inside of the section, the numbering does
not continue to flow from one section to the other.

Can you help me understand your option ?

Thx

> Alternatively, you could put the same three checkboxes into the print view;
> put each of them into a separate section; setup conditional formatting on
[quoted text clipped - 29 lines]
>
> Thx
Alex [MSFT] - 29 Jun 2005 07:54 GMT
You definitely need to include the numbering inside the sections.

Use expression boxes to come up with the numbering: for example, assume you
have three checkboxes:
1) Option A
2) Option B
3) Option C

Then use the following expression for these expression boxes:
- Option A: number=1
- Option B: if (OptionA = true) number=2
- Option C: if (OptionA = true OR OptionB = true) number = 2. if (OptionA =
true AND OptionB = true) number = 3.

This scheme doesn't scale very well; if you want this to work for a larger
number of options, explore adding a record to a repeating field every time
an option checked, and presenting the view as a repeating table, taking use
of the position() XPath function.

Good luck,
Alex

>I haven't tried Greg's option, but I will.
>
[quoted text clipped - 47 lines]
>>
>> Thx
 
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.