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 / August 2006

Tip: Looking for answers? Try searching our database.

static prefilled repeating sections?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bryan - 11 Aug 2006 19:31 GMT
Hi.  I have a series of questions, and I want to save the questions along
with the answers.  I don't want to create a new element name for each
question.  I want the report xml to look something like:

<test>
<question>How many?</question>
<answer>3</answer>
</test>
<test>
...
</test>
...

It looks like the only way to have multiple test elements is to use a
repeating section.  But with a repeating section, how do you prefill the
questions independently of each other?  I would prefer not to use an external
data source to hold the questions, if possible.  I feel like I'm missing
something very simple.  Has this issue come up for others?
Greg Collins [InfoPath MVP] - 11 Aug 2006 23:57 GMT
You didn't necessarily miss anything. The feature is there, but VERY hidden. Here's how to do it.

Go to Tools | Edit Default Values.
In the Edit Default Values dialog box, locate the 'test' node.
Right-click 'test' and choose 'Add another test below'.
Repeat this until you have the number of test nodes you want.
Then go back and select each question node and fill in a default value for it.

Signature

Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPathDev ( http://www.InfoPathDev.com )

bryan - 12 Aug 2006 01:47 GMT
Thanks so much, Greg.  Exactly what I was looking for!

> You didn't necessarily miss anything. The feature is there, but VERY hidden. Here's how to do it.
>
[quoted text clipped - 3 lines]
> Repeat this until you have the number of test nodes you want.
> Then go back and select each question node and fill in a default value for it.
Greg Collins [InfoPath MVP] - 13 Aug 2006 00:37 GMT
Glad I could help!

Signature

Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPathDev ( http://www.InfoPathDev.com )

 
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.