I'm just getting my feet wet in infopath and I'm finding the coding part of
this rather difficult to use.
What I'm trying to do is have a drop down list box in a repeating section.
This listbox is populated from a sharepoint datasource. Now when they
select an item I wanted to display an additional field from that same record
next to that entry.... so I have a data source that has:
Title, id, Reference Document, Status
The listbox shows the list of titles. When they select one I wanted the
textbox next to it to show the status of that item, and a button to launch
the hyperlink in the Reference Document field.
I tried to put some code in the "AfterChangeEvent" on the listbox, but I'm
pretty unsuccessful in getting anything to work. I think that is compounded
by the fact that this would appear in a repeating section and I'm not sure
how to access an instance of a control in the current repeating section.
Any help and education on this would really help...
Thanks in advance,
=Blain
S.Y.M. Wong-A-Ton - 14 Feb 2007 23:59 GMT
Try this article:
http://enterprise-solutions.swits.net/infopath2003/article.php?t=retrieve-field-
value-same-row-repeating-table&c=infopath2003
Keep in mind that a repeating section is the same as a repeating table
behind the scenes. And the same way you can retrieve a field in the same row,
you can also set its value.
---
S.Y.M. Wong-A-Ton
> I'm just getting my feet wet in infopath and I'm finding the coding part of
> this rather difficult to use.
[quoted text clipped - 19 lines]
> Thanks in advance,
> =Blain