I have a table:
ZDIR | DIR
RD | ZDIR
NO | RD
MS | NO
I know the position. I need to get a list of all the parent positions. For example, I know the position NO, as a result I should get a list [RD, ZDIR, DIR]. The search procedure is shown in the screenshot https://www.screencast.com/t/EWJwIeNJDg84
The maximum length of the result list is 5.
Hello,
Your โleftโ column could refer to your โrightโ column using an AppSheet REF. Hereโs an example (unrelated to your question) which letโs you build a hierarchy.
https://www.appsheet.com/samples/Sample-App?appGuidString=7e115b1c-1bb3-464d-9c23-cf54e7795b99
Take a close look at the data as well as the table called โhierarchyโ.
Hope this helps! -Ty
User | Count |
---|---|
41 | |
29 | |
22 | |
20 | |
15 |