[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | LinkWorks APO |
|
Moderator: | HLDE01::SYSTEM |
|
Created: | Tue Feb 22 1994 |
Last Modified: | Thu Jun 05 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 476 |
Total number of notes: | 1817 |
462.0. "Copy object and clearing one or to attributes" by STKHLM::KALIX (Carl-Johan "Kalix" Bergstr�m 876-7036) Fri Feb 07 1997 17:02
Hi
I have an object class with registrartion id attribute where I need to put
instead of copy the value when the object is copied.
I found out that the method CopyObjectBase is responsible for copying the the
attributes, so I solved my problem by:
super::CopyObjectBase(obj, parent, name, versnr, cell)
obj.MyComp:MyAttribute = nil;
obj.CommitTransaction(); // To make the RefreshObject use nil value
parent.RefreshObject(); // To get the attribute value Cleared in List Pres.
This works, but there is to problems:
1. This is not allowed according to the help file. CopyObjectBase is internal
only
2. It is not so good that the CopyObjectBase is doing a commit transaction so
that the new object already has the attribute value it shouldn't have for a
short while before it is reset to nil by my method.
Any comments to this issue?
Any suggestions to alternate solutions
regards
Kalix
T.R | Title | User | Personal Name | Date | Lines
|
---|