Kbase P43290: How to display blanks in a decimal browse cell when its value is 0 ?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Verified
GOAL:
How to display blanks in a decimal browse cell when its value is 0 ?
GOAL:
Can blanks be displayed in a decimal browse cell instead of all zeros?
FIX:
Blanks can be displayed in a decimal browse cell by redefining the display format of the decimal field.
Define a ROW-DISPLAY trigger for the browse and when the field equals 0.0 then change the FORMAT to have no decimals and all zero suppression characters.
ON ROW-DISPLAY OF BROWSE b DO:
customer.balance:FORMAT IN BROWSE b = IF customer.balance = 0.0
THEN ">>>>>>>>>>>>>"
ELSE ">>>>>>>>.99".
END.