Web Page: reading a list with several levels

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
Joerg Hamacher
Posts: 53
Joined: Thu Feb 11, 2016 12:01 am

Web Page: reading a list with several levels

Post by Joerg Hamacher » Thu Mar 29, 2018 2:30 am

Hi,

I have a web page that shows reporting data in several levels in a single list view.

Something like this
> Item 1 Level 1 - 1000
> Item 2 Level 1 - 2000
> Item 3 Level 1 - 7500

Clicking on "Item 1 Level 1" opens level 2 and then the list on the screen looks like this:
> Item 1 Level 1 - 1000
- Item 1 Level 2 - 300
- Item 2 Level 2 - 200
- Item 3 Level 2 - 500
> Item 2 Level 1 - 2000
> Item 3 Level 1 - 7500

Now I want to read the list view into a working list to create a PDF file with the data from the web page.
But when I read the list view with Selectlist the sequence of data in my working list is:
Item 1 Level 1 - 1000
Item 2 Level 1 - 2000
Item 3 Level 1 - 7500
- Item 1 Level 2 - 300
- Item 2 Level 2 - 200
- Item 3 Level 2 - 500

How do I get the data in my working list into the correct order.

Many thanks in advance, best regards and happy Easter!

Joerg

atostaine
Posts: 497
Joined: Wed Jan 20, 2016 7:38 am

Re: Web Page: reading a list with several levels

Post by atostaine » Thu Mar 29, 2018 3:23 am

If your list on the web has a sort column specified that doesn't affect how your working list is sorted.

You can try sort_list to set the list in the order you want.

Art
Art Tostaine

Post Reply