Consultor Eletrônico



Kbase P131285: Updatable dynamic SmartDataBrowser throws 4517 errors
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   08/04/2011
Status: Unverified

SYMPTOM(s):

Container has updatable DynSDB

Closing and re-opening container

You cannot change the READ-ONLY attribute for br_table while that browser has focus. (4517)

You cannot change the READ-ONLY attribute for <browse-widget> while that browser has focus. (4517)

Unable to set attribute READ-ONLY in widget br_table of type BROWSE. (3131)

Unable to set attribute <attribute name> in widget <widget name> of type <widget-type>. (3131)

FACT(s) (Environment):

The error 4517 is coming from browser.p EnableFields.
OpenEdge 10.x
Windows
Dynamics

CAUSE:

Bug# OE00195099

FIX:

None at this time. As a work around


1. Create a local 'src' directory in the working directory.
2. In the 'src' directory create a directory 'adm2'.
3. Make a local copy of browser.p and copy it into 'src\adm2'.
4. Add a propath entry to the beginning of the propath for <working directory>\src.
5. In the EnableFields procedure of the local copy of browser.p, there is the code:

/* avoid error 4517 setting read-only when browse has focus */
if focus = hBrowse then
hBrowse:sensitive = no.
hBrowse:READ-ONLY = NO.

Replace this code with:

/* avoid error 4517 setting read-only when browse has focus */
if focus = hBrowse then
APPLY "ENTRY":U TO hFrame. /*hBrowse:sensitive = no.*/
hBrowse:READ-ONLY = no.

6. Save and recompile browser.p.
7. Restart the session.

This should make the browse behave as expected without error.