Hi
I have a library where two InfoPath content types(QualityReportForm
and QualityCommentForm) are published. Basically, the library should
display reports and its related comments by grouping them as shown in
the fig1. Both of the content types derive from the one parent content
type which has a field GUID. I have a workflow, which sets this GUID
field by the Name of the report for QualityReportForm. In case of
QualityCommentForm, I have a dropdownlist (please see fig2) which user
select to choose the report name so that I can set GUID by the selected
value of this dropdownlist.
fig1: Library with two content type

fig2: Comment form

Now, I want to set the report name in the comment form automatically
depending on which report is checked in the list (Please see fig1, there
Report5 is checked). Let's suppose, we first check the Report5 as shown
in fig1 in the list view. Click on the New Document and then on
QualityCommentForm. When the new Comment form is open, it should
automatically set Report5.xml in the dropdownlist.
Basically, this requires passing the ID or Name of the selected
item(in our case, report5.xml) to the newly opened infopath form.
Can this functionality be achieved in InfoPath 2010?
Thanks
Prakash