Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Infopath
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Infopath Programming and automation discussions only please. :)
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Infopath section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 5th, 2007, 07:29 PM
Registered User
Join Date: Nov 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Default Rows Based Upon Number of XML Attributes.

Greetings everyone,

Based upon the number of attributes in an XML, I want to add a corresponding number of default rows to a repeating section within infopath. For example in this case there are 4 parameters under "Part_3". In this case I would want there to be 4 rows as a default but if I chose another, say with only 2 parameters, I would want the rows to default to 2. A clip of the XML follows:

<Module Name="Part_3">
-<Collection Name="Input">
-<Parameter Name="Parameter_1" Type="Boolean" Default="false">
-<Parameter Name="Parameter_2" Type="String" Default="None">
-<Parameter Name="Parameter_3" Type="String" Default="None">
-<Parameter Name="Parameter_4" Type="Boolean" Default="false">

I can use XPath to dial down to particular values within this file but I need the rows to automatically default to the required number.

I'm using InfoPath 2003. Would anyone be able to help with this? Thanks in advance.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
can I filter rows based on this type of constraint callagga SQL Language 2 August 21st, 2008 04:31 PM
need html attribute based on xml attributes charles95621 XSLT 1 May 24th, 2007 05:21 PM
Default attributes from DTD while transformation nmahesh567 XSLT 5 March 28th, 2007 03:31 AM
Grouping based on attributes values Chamkaur XSLT 4 June 21st, 2006 05:51 AM
select rows based on a criteria and paste ashu_gupta75 Excel VBA 2 July 30th, 2004 01:32 AM

All times are GMT -4. The time now is 03:29 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.