Consultor Eletrônico



Kbase P109966: smartLOBField object cannot be used to save images to database
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   27/10/2005
Status: Unverified

FACT(s) (Environment):

OpenEdge 10.0B

SYMPTOM(s):

smartLOBField object cannot be used to save images to database

smartToolbar object does not recognize changes to smartLOBFields

Save button is not enabled for save with smartLOBField

Changes to a smartLOBField cannot be saved to the database

**Unable to query attribute LOAD-IMAGE for IMAGE IMAGE-1. (4077)

**Unable to query attribute <attribute> for <widget id>. (4077)

CAUSE:

This is a known issue being investigated by Development

FIX:


As a work around, customize adm2/viewer.p in procedure createObjects. Modify the code in so that it looks like the following:

/* Build list of frames and fieldnames for identification in widgetloop */
DO iTarget = 1 TO NUM-ENTRIES(cTargets):
hTarget = WIDGET-HANDLE(ENTRY(iTarget,cTargets)).
&SCOPED-DEFINE xp-assign
{get ContainerHandle hChildFrame hTarget}
{get ObjectType cObjectType hTarget}

&UNDEFINE xp-assign
IF cObjectType = 'SmartDataField':U
/**/ OR cObjectType = 'SmartLOBField':U THEN /* FIX to enable lobfield */
cTargetFrames = cTargetFrames + ',':U + STRING(hChildFrame).
ELSE /* keep list in synch with cTargets
(blank is avoided as list is trimmed after loop) */
cTargetFrames = cTargetFrames + ',' + '?'.
END. /* containerTarget loop */