Consultor Eletrônico



Kbase 21018: Event VALUE-CHANGED is Not Fired in a SmartDataBrowser?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/16/2008
Status: Unverified

FACT(s) (Environment):

Progress 9.X

SYMPTOM(s):

Event VALUE-CHANGED is Not Fired in a SmartDataBrowser?

CAUSE:

The event VALUE-CHANGED is not fired when clicking on the "Next" or "Prev" buttons on a linked SmartToolBar or SmartPanel. VALUE-CHANGED is, however, fired when clicking on "First" or "Last". Accordingly, VALUE-CHANGED is not fired with functions, fetchnext and fetchprev, but IS fired with fetchfirst and fetchlast. The same behavior follows suit when moving through the records with the UP and DOWN arrows.

FIX:

The following workaround is also included in the bug text, but it should be noted that customizing browser.i is subject to the standard caveats relative to future migrations of code.
In the browser.i file dataavailable procedure, include the statement:

APPLY VALUE-CHANGED":U TO hBrowse

for both "When "NEXT"..." and "When "PREV" ...".

The modified code would look like this:

WHEN "NEXT":U THEN do:

hBrowse:SELECT-NEXT-ROW() NO-ERROR.
APPLY 'VALUE-CHANGED' TO hBRowse.

END.
WHEN "PREV":U THEN DO:
hBrowse:SELECT-PREV-ROW() NO-ERROR.
APPLY 'VALUE-CHANGED' TO hBRowse.

END.