Using uHandleSearchorCommand

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
caseywhite
Posts: 94
Joined: Thu May 26, 2016 1:17 am

Using uHandleSearchorCommand

Post by caseywhite » Fri Feb 08, 2019 8:19 am

In a filter I would like to know that someone has typed something in the Instance List Quick search field and not the main quick search box that is global. Is there anyway to know that someone is typing something in the Instance List Quick search.

The method uHandleSearchorCommand fires only when typing in the global quick search field and not the instance list one.

Thanks.

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

Re: Using uHandleSearchorCommand

Post by MarkD » Fri Feb 08, 2019 10:19 am

You could try something like this. Create and snap in a custom instance list browser something like this:

Code: Select all

Begin_Com Role(*EXTENDS #VF_UM040O)

Define_Com Class(#MyCustomerManger) Scope(*APPLICATION) /* Custom framework manager - also defined in the listening filter */

Mthroutine Name(uPerformQuickSearch) Options(*REDEFINE)

#COM_ANCESTOR.uPerformQuickSearch Searchstring(#SearchString) /* Let VF_UM040O do the real search */

#MyCustomManager.SignalInstanceListSearchPerformed /* Tell anyone who is interested that an instance list search was performed */

Endroutine

Mthroutine Name(uCancelQuickSearching) Options(*REDEFINE)

#COM_ANCESTOR.uCancelQuickSearching

#MyCustomManager.SignalInstanceListSearchCancelled /* Tell anyone who is interested that an instance list search was cancelled */

Endroutine

End_Com

This should let anyone listening know that an instance list was searched or a search was cancelled.

If you intend to use this in multiple instance lists and filters then you'd need to distinguish between them.

caseywhite
Posts: 94
Joined: Thu May 26, 2016 1:17 am

Re: Using uHandleSearchorCommand

Post by caseywhite » Fri Feb 08, 2019 10:59 am

Thanks Mark. Sounds like this should do it.

Post Reply