Generation of notes from a configuration of a sales line

Hi All,

I am developing a report in AX2012 with SSRS. I have created the report and fields fine in the temp table, however I am having trouble populating one of the fields.

The standard fuctionality that I need to replicate that takes the configuration of the line and then generates a new DocuRef attached to the line. I would like to generate this on the fly and use the notes to populate a field in my report. I can see that the class used is pcAdaptorVisitorDocumentReference, which generates and passes back the notes field. The issue I am haing though is how to create them. At the time of running the report I have the SalesLine record so I need to get this from the salesLine down.

Has anyone managed this or can point me in the right direction?


-Howard Webb