Consultor Eletrônico



Kbase P89131: ADM2, how to close the Pass-through Filter Link window after applying the filter condition
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   7/26/2004
Status: Unverified

GOAL:

ADM2, how to close the Pass-through Filter Link window after applying the filter condition

FIX:

In order to close the smartFilter window after applying the search you have to create a customized version of dynfilter.w that publish a named event after that the applyFilter procedure is performed. This event can be easily trapped by the smartWindow containing the smartFilter in order to close itself.

1) You have to use a customized version of dynfilter.w. In order to do this move a copy of the source file (i.e. ADM2\dynfilter.w) in your propath.
2) Open this file with AppBuilder.
3) Override the applyFilter procedure in this way:
 /* Code placed here will execute PRIOR to standard behavior. */

 RUN SUPER.

 /* Code placed here will execute AFTER standard behavior.    */

 PUBLISH 'endApplyFilter'.

END PROCEDURE.
4) Open the window that contains the filter and override the
initializeObject function:
 /* Code placed here will execute PRIOR to standard behavior. */

 RUN SUPER.

 /* Code placed here will execute AFTER standard behavior.    */

 SUBSCRIBE TO 'endApplyFilter' IN h_dynfilter.

END PROCEDURE.  

5) Create an endApplyFilter procedure:
 APPLY 'WINDOW-CLOSE' TO {&WINDOW-NAME}.

END PROCEDURE.