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.
Using uHandleSearchorCommand
Re: Using uHandleSearchorCommand
You could try something like this. Create and snap in a custom instance list browser something like this:
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.
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_ComThis 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: 192
- Joined: Thu May 26, 2016 1:17 am
Re: Using uHandleSearchorCommand
Thanks Mark. Sounds like this should do it.