2008 Sep 12 3:08 PM
Hello everyone.
I have tried to create a persistent class in the Object Navigator using the usual creation dialogue. For some reason, the creation process of the persistent class and the corresponding agent classes stopped prematurely. So I ended up with the actual zcl class, a base agent zcb class, but no agent zca class.
This sucked, so i tried to delete them, which failed:
- Deleting the actual class -> can't access class agent
- Deleting the base agent -> not allowed to access co-classes directly
So I'd be glad if someone handed me the crowbar i need to get rid of these orphan classes.
cheers & Thanks in advance,
Jens
EDIT:
BTW - If anyone has ever managed to get inheritance and persistent classes working together, please let me know. E.g. persistent class b inherits persisten class a, both work on the same table which has a type identifcator column to distinguish between types.
Edited by: Jens Barthel on Sep 12, 2008 4:09 PM
Hello everyone.
I have tried to create a persistent class in the Object Navigator using the usual creation dialogue. For some reason, the creation process of the persistent class and the corresponding agent classes stopped prematurely. So I ended up with the actual zcl class, a base agent zcb class, but no agent zca class.
This sucked, so i tried to delete them, which failed:
- Deleting the actual class -> can't access class agent
- Deleting the base agent -> not allowed to access co-classes directly
So I'd be glad if someone handed me the crowbar i need to get rid of these orphan classes.
cheers & Thanks in advance,
Jens
EDIT:
BTW - If anyone has ever managed to get inheritance and persistent classes working together, please let me know. E.g. persistent class b inherits persisten class a, both work on the same table which has a type identifcator column to distinguish between types.
Edited by: Jens Barthel on Sep 12, 2008 4:09 PM
2008 Sep 12 3:43 PM
Hi Jens,
As you know what ever we create are maintained in Table TADIR.
so if it is not possible to delete directly then write a simple program to delete the entry in TADIR table..
Delete <classname>
From TADIR
where PGMID = 'R3TR'
and OBJECT = 'CLAS'
and DEVCLASS = '$TMP' " if its local or specify the package name.
Before that check the entry in the table.
This would do to delete.
Hope this would help you.
Good luck
Narin
2008 Sep 12 4:01 PM
Hey Narin, thanks for the quick reply.
I have deleted the two troublemakers from TADIR, but they are still present in the Object Navigator. I can also still open them with the class builder.
Any suggestions?
Jens
2008 Sep 15 6:05 AM
Hi,
Even you delete the package corresponding to it from TDEVC table..
Hope this would help you.
Good luck
Narin
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |