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

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

Post by alphabeta13 »

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: 692
Joined: Wed Dec 02, 2015 9:56 am

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

Post by MarkD »

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

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

Post by alphabeta13 »

Hi Mark,

Thanks for responding.

I'm using VLF-ONE.
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

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

Post by MarkD »

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 14730 times
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

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

Post by MarkD »

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

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

Post by alphabeta13 »

Hi Mark,

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

Thanks!
Post Reply