Kbase P47616: How to create a dynamic lookup without a button image
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  14/10/2003 |
|
Status: Unverified
GOAL:
How to create a dynamic lookup without a button image.
GOAL:
How to remove a dynamic lookup button.
FACT(s) (Environment):
Dynamics 2.0A
FIX:
The buttons hidden attribute needs to be set to TRUE. In order to do this the lookup super procedure will have to be customized in order to get the handle of the lookup button. So in lookupcustom.p add a function 'getButtonHandle' that returns the button property 'ButtonHandle':
{get ButtonHandle h_Button}
Then in the viewer InitializeObject procedure retrieve the handle of the Lookup, then the handle of the button with the getButtonHandle function, and set the buttons hidden attribute to true. i.e.
RUN SUPER.
DEFINE VARIABLE h_lookup AS HANDLE NO-UNDO.
DEFINE VARIABLE h_button AS HANDLE NO-UNDO.
{get AllFieldNames gcAllFieldNames}.
{get AllFieldHandles gcAllFieldHandles}.
h_lookup = widgetHandle ("SalesRep").
h_Button = DYNAMIC-FUNCTION('getButtonHandle':U IN h_lookup).
h_button:HIDDEN = TRUE.