Repeating Table with 2 Rows

J

josepk

Hello,

I want to create a repeating table that has 2 rows in it (InfoPath
defaults to only 1 row). I've read the prior posts on this subject but
cannot get it to work.

Assuming I have 6 fields in a repeating table, by default, InfoPath
gives me only 1 row in the repeating table that looks like the
following:

Row1 = Field1, Field2, Field3, Field4, Field5, Field6

Instead, I want the repeating table to have 2 rows as follows:

Row1 = Field1, Field2, Field3
Row2 = Field4, Field5, Field6

Any help here appreciated!

Thanks,

Joe
 
V

virgul

Hi joe,

I understand but when you duplicate your table the 2 rows are
duplicated or only one?

Explain me more!!


++
 
J

Joe Keller

When I duplicate the table I want both rows to be duplicated. InfoPath has
an Asset Tracking sample that does exactly what I want to do - trouble is -
I cannot figure out how they made it happen.

Any help appreciated...

Thanks,

Joe
 
V

virgul

Sorry but I'm french so your last senstence: InfoPath has
an Asset Tracking sample that does exactly what I want to do - trouble
is -
I cannot figure out how they made it happen.

I don't understand

If I have good understand your idea you can:

create your reapeating table and once his create add other field in in
the second line. I know that is not the best solution but..

the xml the return is:

<source>
<table>
<my:groupe1>
<my:groupe2>
<my:champ1l1>htr</my:champ1l1>
<my:champ2l1>rz</my:champ2l1>
<my:champ3l1>trzrt</my:champ3l1>
<my:champ4l2>trzrt</my:champ4l2>
<my:champ5l2>trzrt</my:champ5l2>
<my:champ6l2>trzrt</my:champ6l2>
</my:groupe2>
</my:groupe1>
</source>

if that is not what you wan't! Say me I possibly could find a better
way


++
 
J

Joe Keller

Sorry - you cannot just add a new field in the second line - thanks for the
response anyways.

Has anyone else gotten this to work? MVP's - could you help please?

Thanks,

Joe
 
J

Joe Keller

Excellent - that worked perfectly - thanks a ton Greg!

Joe
p.s. This should be included in the InfoPath online help search - would've
saved me a lot of time.

"Greg Collins [InfoPath MVP]" <Greg.Collins_AT_InfoPathDev.com> wrote in
message What you want to accomplish is not difficult.

InfoPath allows multiple rows in Repeating Table headers and footers, but
not in the main body. To get around this, make a Repeating Table with a
single row (just right click on the Repeating Table label, and choose Change
Binding... then set it to only have a single column).

Once you have a single column repeating table, add a layout table to that
column and fix the layout to be as you desire. You can copy the final layout
table into the header row (or create another one with duplicate column
widths) and then add your header labels.

Hope that helps!

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



Sorry - you cannot just add a new field in the second line - thanks for the
response anyways.

Has anyone else gotten this to work? MVP's - could you help please?

Thanks,

Joe
 

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