How to position to a certain page in an instance list?

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
alphabeta13
Posts: 11
Joined: Tue Jan 14, 2020 12:18 am

How to position to a certain page in an instance list?

Post by alphabeta13 » Thu May 07, 2020 12:39 am

I have an instance list that's showing 15 instances per page. The list has several columns, say: Invoice Date, Invoice Number, and Invoice Amount.

User wants to have an ability to input an invoice number in a filter, and the list should automatically shows the page that has that invoice number.

How to achieve this?

Thanks in advance for all your help.

Regards,
Taufik

MarkD
Posts: 657
Joined: Wed Dec 02, 2015 9:56 am

Re: How to position to a certain page in an instance list?

Post by MarkD » Thu May 07, 2020 10:16 am

An "instance list" means you are using the VLF (Visual LANSA Framework) I think?

What platform are you programming for? Windows or Web?

If Web, are you using VLF-ONE or classic WAM based VLF-WEB ?

alphabeta13
Posts: 11
Joined: Tue Jan 14, 2020 12:18 am

Re: How to position to a certain page in an instance list?

Post by alphabeta13 » Thu May 07, 2020 10:16 pm

Hi Mark,

Thanks for responding.

I'm using VLF-ONE.

MarkD
Posts: 657
Joined: Wed Dec 02, 2015 9:56 am

Re: How to position to a certain page in an instance list?

Post by MarkD » Fri May 08, 2020 10:49 am

Have you tried suggesting the automatic instance list filtering capbility - you don't have to code anything and it will search on all the instance list columns?
clip1.PNG
clip1.PNG (34.67 KiB) Viewed 1080 times

MarkD
Posts: 657
Joined: Wed Dec 02, 2015 9:56 am

Re: How to position to a certain page in an instance list?

Post by MarkD » Fri May 08, 2020 11:06 am

Otherwise you could try using the VerticalScrollTo method of the low level instance list visualization.

See this for how to reference the low level instance list visualization (i.e. the #PRIM_LIST object) - https://docs.lansa.com/14/en/lansa048/i ... 8_7070.htm

See this for using the standard VL VerticalScrollTo method - https://docs.lansa.com/14/en/lansa016/p ... rollto.htm

You'd need to use something like #avListManager.avVisualList.VerticalScrollTo Item(#SomeListItem) Scrollposition(Top)

alphabeta13
Posts: 11
Joined: Tue Jan 14, 2020 12:18 am

Re: How to position to a certain page in an instance list?

Post by alphabeta13 » Sat May 09, 2020 5:53 am

Hi Mark,

I will be looking into your suggestions; haven't had enough LANSA experience & knowledge yet.

Thanks!

Post Reply