I am having an issue with Conencted Web Parts in 2010. This is all in SharePoint Designer, I can solve this in studio no worries; Im trying to do this No Code Solution instead.
I have 3 lists. Quotes, ParentPart, Sub Part.
The Quotes list has a title and a Lookup onto ParentPart. ParentPart has a title and SubPart has a title and a Lookup onto ParentPart.
I want to Customise the Quotes Display form to add another webpart in that page which will show all the SubParts related to that ParentPart field on that quote list item.
I add an DataViewPart and then add a connection which passes the row data from the main part to the newly added dataview part. (You can try filter or parameters, easy to see what is being passed with filter though).
When connected the Filter/Parameter passed thru is 1#;ParentItem1 the format of a lookup field.
Ofcourse in a dataview part the Filter MUST not contain the 1#; part of it. In the case of a parameter (what I really want) the CAML query which contains the {Param1} in the where clause also does not work as it needs just the text also, or the ID but with both it doesn't work.
I tried adding an "additional field" to the Quotes, which is the ParentPart:Title, then connected that field, but alas it also passes the lookup field and not just the title.
So without resorting to writing a webpart in Studio how do I solve this problem.
How do I get the source connected part to pass either just the ID or just the text of the lookup; or how do I, in the CAML, parse the Parameter to be either ID or Text; or is ther some special CAML command that can take a full Lookup as a parameter. I do not want to filter in XSLT, it's too late, I want paging to work and everything, there may be many sub parts in that list so it has to be optimised.
This just seems broken to me.
thx