Consultor Eletrônico



Kbase 16716: How to move object from one module to another in Roundtable
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
How to move object from one module to another in Roundtable

It is possible to move objects from one product module to
another in Roundtable. Prior to Roundtable 8.1, this move
was a one way deal. That is, once an object was moved and
edited in the new module, it could not be moved back to the
original module with the changes intact. Roundtable 8.1
allows objects to be freely moved back and forth between
modules keeping all changes in tact.

In this example, there are two modules: module1 and
module2. There is one object called Fred.p.

Lets say you created Fred.p in module1. You now want to
move it to module2:

1. Select module2 from the Tabletop.
2. File -> New Object
3. In the Object fill-in, enter Fred.p. (Make sure you
have selected the correct sub-type).
4. Roundtable will recognize the name and prompt you with the
following dialog box:

"An object of the same object type and name exists in the
workspace. It is assigned to the 'first' product module.
Replace existing object with a new object belonging to the
product module you have specified?"

This is Roundtable's way of saying, "Hmm, it seems like you
want to move this object - is this true?"

If you click YES, another dialog box appears:

"Object moved from module 'module1' to module 'module2'."

Now say you realize you made a mistake in moving the
object. If you return to module1 and try to move it back,
prior to Roundtable 8.1, you will get the following:
"Cannot create a new object as an object already exists in
product module 'module1' named 'Fred.p'. Enter a new
object name and try again."

What is happening here is that Roundtable remembers that
there used to be an object named Fred.p in module1. In
fact, if you did a File -> Assign -> and clicked Object:,
you would see your original Fred.p is still in the
repository and assigned to module1. You may not assign it
back from the repository, because Roundtable realizes that
module2 now has a newer version of the object, and
Roundtable does not allow two object versions with the same
name in two different modules. Prior to 8.1, Roundtable
did not think that you may be trying to move it back.

In 8.1, the dialog box is more verbose when you try to move
the object back. In module1, File -> New, Fred.p:

"PCODE 'Fred.p' is currently assigned to the workspace, but
belongs to a different product module 'module1'. Version
200000 of PCODE 'Fred.p' exists in product module 'module2'
and is not assigned to the workspace. Assign PCODE
'Fred.p' of product module 'module2' to the workspace and
version it based on the PCODE 'Fred.p' currently assigned
to the workspace?"

In other words, are you trying to move the object back?
Click YES and the object is moved, complete with the
changes made to it in module2.


Progress Software Technical Support Note # 16716