Master-Detail View with XML datasource

P

PR

Hi All

I have two views, namely master and detail. The master view shows the
content of a PO . The detail View will get launched upon clicking a
button present in a repeating table control that shows the order line
item details. The detail view will give complete description and other
details of the item selected. I have used a custom XSD as the
datasource. This xsd cannot be modified.
I do not know how to show the details of only the item whose button is
clicked in the detail view. How can I filter out the content? Any help
is appreciated.

Thanks
Priya
 
G

Greg Collins [InfoPath MVP]

A good way to do it is to create a secondary data source, can be just a simple XML file with a single field in it. This field would store a key piece of data needed to filter the detail view--something like an ID or a row number, etc.

Then in the detail view, add a filter using this secondary data source value.

--
Greg Collins [InfoPath MVP]
Visit http://www.BrainTrove.com
Visit http://www.InfoPathDev.com


Hi All

I have two views, namely master and detail. The master view shows the
content of a PO . The detail View will get launched upon clicking a
button present in a repeating table control that shows the order line
item details. The detail view will give complete description and other
details of the item selected. I have used a custom XSD as the
datasource. This xsd cannot be modified.
I do not know how to show the details of only the item whose button is
clicked in the detail view. How can I filter out the content? Any help
is appreciated.

Thanks
Priya
 
P

Priya

Thanks! A simple and easy solution.

I have another question

There are 3 attributes (Descrip1, Descrip2, Descrip3) in my xml schema
that I have to concatenate and bind to a single Description text
control. How can I do this?

Thanks again
 
G

Greg Collins [InfoPath MVP]

Create a default value formula on Description that is something like (I add spaces between each word):

concat(@Descrip1, " ", @Descrip2, " ", @Descrip3)

--
Greg Collins [InfoPath MVP]
Visit http://www.BrainTrove.com
Visit http://www.InfoPathDev.com


Thanks! A simple and easy solution.

I have another question

There are 3 attributes (Descrip1, Descrip2, Descrip3) in my xml schema
that I have to concatenate and bind to a single Description text
control. How can I do this?

Thanks again
 

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