Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Regarding TreeView in ListBox

Hello Guys,

Kindly help me with my problem in hierarchical data.

Actually I got a table with ParentEntityID and EntityID hierarchy. I have already created the hierarchy in the script but I was not able to show the hierarchy in the listbox.

Script for reference:

Hierarchy(EmployeeBusinessEntityID, ParentEmployeeBusinessEntityID, FirstName,ResourcePath,'|',PathDepth)

SQL SELECT BaseRate,

    BirthDate,

    CurrentFlag,

    DepartmentName,

    EmailAddress,

    EmergencyContactName,

    EmergencyContactPhone,

    EmployeeBusinessEntityID,

    EndDate as Employee_EndDate,

    FirstName,

    Gender,

    HireDate,

    LastName,

    MaritalStatus,

    MiddleName,

    ParentEmployeeBusinessEntityID,

    PayFrequency,

    Phone,

    SalariedFlag,

    SalesPersonFlag,

    SalesTerritoryKey,

    SickLeaveHours,

    StartDate as Employee_StartDate,

    Status,

    Title,

    VacationHours

FROM Employee;

After reload,I created a listbox for ResourcePath field with tree view check box enabled but still, I am not getting the tree view in the list box.

Kindly let me know if you know any possible solutions

Thanks

Kiru

1 Solution

Accepted Solutions
Not applicable
Author

PFA. You need to adjust the script according to your columns.

View solution in original post

4 Replies
Not applicable
Author

PFA. You need to adjust the script according to your columns.

Not applicable
Author

ListBoxHierarchy.PNG.png

tresesco
MVP
MVP

The default separator in listbox for treeview is '/', have you changed it to '|' ?

Not applicable
Author

Thank you so much for all your helpful answers guys and I really appreciate your time!

Best,

Kiru