web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Creating Tree Views

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Verified answer
    keoma Profile Picture
    32,729 on at
  • Verified answer
    Alexander Ermakov Profile Picture
    28,096 on at

    Please refer also to www.pardaan.com/.../some-tips-about-creating-tree-view-in-list-pages

  • Verified answer
    Tharanga Chandrasekara Profile Picture
    23,118 on at

    Check below link : blogs.msdn.microsoft.com/.../some-tips-about-creating-tree-view-in-list-pages

  • Verified answer
    Community Member Profile Picture
    on at

       Thank you, I'm attempting to populate my new page with existing Sales Lines, Here is my code so far however when the page opens it still doesn't display any information.  106.PNG ( The functions are called from the On Open Page)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans