Page 1 of 1

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

Posted: Thu May 07, 2020 12:39 am
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

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

Posted: Thu May 07, 2020 10:16 am
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 ?

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

Posted: Thu May 07, 2020 10:16 pm
by alphabeta13
Hi Mark,

Thanks for responding.

I'm using VLF-ONE.

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

Posted: Fri May 08, 2020 10:49 am
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 14728 times

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

Posted: Fri May 08, 2020 11:06 am
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)

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

Posted: Sat May 09, 2020 5:53 am
by alphabeta13
Hi Mark,

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

Thanks!