Repeating data in a non-repeating control ?

J

josepk

Hello,

I have a set of repeating data that I would like to view in 2 ways:

View #1 - The typical repeating table view where any new data is
inserted vertically on the form and the data grows from top to bottom.
In this view you could see all of the data that was entered at one time
(or by merely scrolling vertically if the data was too much to fit onto
the screen).

View #2 - A view of the same data but only one record at a time
(similar to the "details" view of the Asset Tracking sample that ships
with InfoPath). In this view you can only see one record at a time and
can click a button to go to the next or previous record.

I can make view #1 happen easily enough. However, when I attempt to
bind a repeating data source to a non-repeating control (in order to
create view #2) I get an error - InfoPath always expects a repeating
data source to be bound to a repeating control.

My question is - how can I make two views (as described above) from the
same data source? View #1 requires a repeating data source and view #2
does not.

Thanks,

Joe
 
J

Joe Keller

Ok - sounds good.

One more quick question - how would I reference the filter node. I'm
assuming this can be done via code but can I also change the value of the
filter node without using custom code?

Joe

"Greg Collins [InfoPath MVP]" <Greg.Collins_AT_InfoPathDev.com> wrote in
message What you need to do is take the same repeating control from #1, copy it to
#2, and then add a filter to it based on some node value (can be in a
secondary data source). When you click previous / next, filter node value
gets updated. The repeating control automatically refilters to show just
that item.

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



Hello,

I have a set of repeating data that I would like to view in 2 ways:

View #1 - The typical repeating table view where any new data is
inserted vertically on the form and the data grows from top to bottom.
In this view you could see all of the data that was entered at one time
(or by merely scrolling vertically if the data was too much to fit onto
the screen).

View #2 - A view of the same data but only one record at a time
(similar to the "details" view of the Asset Tracking sample that ships
with InfoPath). In this view you can only see one record at a time and
can click a button to go to the next or previous record.

I can make view #1 happen easily enough. However, when I attempt to
bind a repeating data source to a non-repeating control (in order to
create view #2) I get an error - InfoPath always expects a repeating
data source to be bound to a repeating control.

My question is - how can I make two views (as described above) from the
same data source? View #1 requires a repeating data source and view #2
does not.

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