Kbase 20350: ADM2. How to Disable SmartSelect and its Triggering Button
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  05/11/2008 |
|
Status: Verified
GOAL:
ADM2. How to disable a SmartSelect field along with it's triggering button.
FACT(s) (Environment):
Progress 9.x
FIX:
A SmartSelect field is a SmartDataField that performs a "lookup" on a single data field.
Sometimes you are not allowed to update a value in a smartselect field. If the SmartSelect field is displayed as a browse, there is a need to disable the fill-in as well as the triggering button.
Follow these steps to disable a SmartSelect field and the triggering button:
1) Create an UpdateMode override procedure in the SmartViewer that contains the SmartSelect.
2) Add the following code in the UpdateMode Procedure (make sure that the logic goes after RUN SUPER):
DEFINE INPUT PARAMETER pcMode AS CHARACTER NO-UNDO.
RUN SUPER( INPUT pcMode).
IF pcMode = "UpdateBegin" THEN
RUN disableField IN h_dynselect.
END PROCEDURE.