main logo
Subject: Re: Saving Data added to a General Field
Author: Lynette Tillner
Posted: 2002/02/14 16:34:20
 
View Entire Thread
New Search


Thanks Ed, this fixed the problem!

<i><font color="#663300"><i><font color="#663300">And quickly, before Ed goes on vacation... When I did that I get this error:

Error #: 1912
Message: Operation is invalid for a General field.
Line #: 51
Code: IF NOT (OLDVAL(lcFld) == CURVAL(lcFld))
Method: conflictcheck
Object: idatabehavior

What should I do? Punt and use the table for this form only????</font></i>

No, that's a bug. I guess that not too many people have run tests of this stuff with general fields. I've made the change in the source, but so that you can get going now, make this change to the ConflictCheck() method of the cDataBehaviorClass of cBhavior.vcx: near the end of the code for that method there is a FOR loop. Change it to read:

<code>* Cycle through the fields, and compare their original values to the current ones in the source table.
FOR lnCnt = 1 TO lnFields
%A0%A0lcFld = lcAlias + "." + laFields[lnCnt, 1]

%A0%A0*** EGL: 2002.2.14 13:36 - Exclude General fields from checking
%A0%A0IF TYPE(lcFld) == "G"
%A0%A0%A0%A0LOOP
%A0%A0ENDIF

%A0%A0IF NOT (OLDVAL(lcFld) == CURVAL(lcFld))
%A0%A0%A0%A0lnRetVal = ERROR_UPDATE_CONFLICT
%A0%A0%A0%A0EXIT
%A0%A0ENDIF

ENDFOR</code>

Let me know if that fixes your problem.
</font></i>

Lynette
ltillner .at. yahoo D.OT com

 
©2002 Lynette Tillner
<-- Prior Message New Search Next Message -->