Hi Lewis
EDIT - I just noticed you were having problems with the association. This may not work for you then but if you ever get that part sorted my solution below should help you.
-------------------------------------
I hope I am understanding the requirement correctly...
I think I have achieved what you are trying to achieve... but i'm not sure so let me know if I'm off track.
This was my scenario:
We had a child node inside our custom BO which needed to be displayed in our OWL.
One contact ID (our primary key in custom BO) could have many child records. However our requirement was to show all child records in the OWL and repeat the header data (similar to SAP ALV lines).
Previous to this fix, it was only displaying one child per header node.
Here is the root node of the Custom BO:
Root Node association to standard BusinessPartner BO (ContactInternalID)
Here are the associations to my standard BO. Note these are on the ROOT node but I was grabbing associated data from the HEADER level. Your case you need it from the child.
You must ensure that you populate your associations using script logic when creating your custom BO contract/invoice lines. Lets assume that you have already taken care of populating the association and that you have the association at child node level.
For your requirement I think you need your association at child node level. (this is slightly different to mine but I believe if you populated this association it would work).
Create a SADL query and bind it to your CHILD node association (in my case techinformation and in your case invoice lines). This will ensure that each entry is displayed in your OWL and not just 1 parent -> 1 child per query.
Here is the bit that took a bit of working out at my end....
OWL DataList is bound to SADL Query child node as below:
If you wish to display any HEADER data you must first navigate through the child node and select ToParent and then browse to your data... Do not try directly bind to the header node BO.
Hopefully this screenshot explains it:
Let me know if this is confusing.. I hope this solves your issue.
Cheers
Brad



