jaycee99
31st July 2011, 08:03
If user enter a value at the ITEM zoom field, for example "C" then it should direct point to "C" from all the item list. It's work when using script as below.

field.item.f.segment.2:
selection.filter:
query.extend.where.in.zoom("tcibd001.item >= " & quoted.string(item.f))


But then those that before "C", for example "A" and "B" is not showing in the item list. I can't scroll back to A and B, cos the C is the top one at the list.

It's only showing all the item after C.

How to make it direct point to "C" and then the "A" and "B" still in the item list?

vahdani
31st July 2011, 09:02
Hi,

of course you don't see items less than "C" as you have defined the filter setting (tcibd001.item >= "C") for the called session. What you could try instead is:

field.item.f:
before.zoom:
tcibd001.item = item.f

Standard Baan functionality then takes care of finding the right record in the called session.

jaycee99
3rd August 2011, 18:40
Hi Vahdani,

Thanks for your reply. It's working.