I'm Creating a new page which is essentially the same as Outstanding Sales Line Page. The difference for this is It needs to use tree view mode. So each sales Line in the table with the Same Document No will be able to be viewed by clicking the+ Box. I've added a Field to the Sales Line table called Indentation (Integer). I've set up the repeater on the page design to allow tree view around the Document No.
Here's some code which simply explains what my aim is.. Can I Have some guidance on how to complete it further.
recSalesLine.RESET;
recSalesLine.SETRANGE(Type, recSalesLine.Type::Item);
recSalesLine.SETFILTER("Outstanding Quantity", '>%1', 0);
IF recSalesLine.FINDSET THEN REPEAT
IF recSalesLine."Document No." <> recSalesLineTMP."Document No." THEN BEGIN
Indentation := 0;
Rec := recSalesLine;
INSERT;
END;
recSalesLineTMP := recSalesLine;
UNTIL recSalesLine.NEXT =0;
*This post is locked for comments