VLOOKUP???

R

rchorner

Total newbie here, please excuse me. I've bound a drop down control in my
form to one of the fields in an external LIST within my sharepoint site that
has multiple columns of data. My question is: how can I automatically
populate other fields (read-only) on the form with other data elements
(columns) from the LIST?

If I were doing this in excel, I'd just do a VLOOKUP. Any ideas???
 
B

Bruce Anderson

What worked for me was to add an Expression Box control. The DataSource had
XPath:

xdXDocument:GetDOM("TestLookup")/ns1:myFields/ns1:entities/ns1:value[../ns1:key = current()/my:id]

I was able to build most of this XPath using wizard, but then had to edit
the XPath by inserting the current() reference.

Hope that helpls.
 
R

rchorner

Thanks, Bruce. I also found a very helpful link on this subject that walks
you through, step by step, with screenshots. My form is complete!

http://www.wssdemo.com/Pages/infopath_lookup_of_list_data.aspx?menu=Articles


Bruce Anderson said:
What worked for me was to add an Expression Box control. The DataSource had
XPath:

xdXDocument:GetDOM("TestLookup")/ns1:myFields/ns1:entities/ns1:value[../ns1:key = current()/my:id]

I was able to build most of this XPath using wizard, but then had to edit
the XPath by inserting the current() reference.

Hope that helpls.

rchorner said:
Total newbie here, please excuse me. I've bound a drop down control in my
form to one of the fields in an external LIST within my sharepoint site that
has multiple columns of data. My question is: how can I automatically
populate other fields (read-only) on the form with other data elements
(columns) from the LIST?

If I were doing this in excel, I'd just do a VLOOKUP. Any ideas???
 

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