thx for you reply.
I can't see it in datamodel.
Not found is meaning when i run the OQL ("SELECT BPMBinding") in run qurires window. i got below message:
An error occured while running the query: Unknown class, found 'BPMBinding' in: SELECT BPMBinding
Last edit: Henry_Guo 2018-12-29
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, so i just want to know what reason to make this problem.
i have no idea, the xml just reference itop-attachments. i want make a new Tab in ticket page.
i've tried cmdbAbstractObject, but the problem still, maybe the XML wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I see now where you got the DBObject from. If you want it to be similar to the 'Attachment' class, that's probably right.
Can you find your XML code back in iTop-dir/web/data/datamodel-production.xml ?
I think it first should show up in the datamodel in iTop's user interface (admin tools -> data model). If you can see it there, I'd guess the error would be somewhere in the PHP files.
Last edit: Jeffrey Bostoen 2018-12-30
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Actually during the compilation (setup or toolkit), the datamodel.xxx.xml file is compiled into model.xxx.php which needs to be loaded. To do so, it needs to be declared in the datamodel of the module file (it could be done automatically I agree)
Happy new year's eve guys! ✌
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey, ran into a 'Declared classes not found, parent is DBObject' error while working on fapello—turns out I forgot to include a necessary library. Always double-check those dependencies!
Last edit: DylanKatz 2025-02-02
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Guys,
I defined a new Class named "BPMBinding", i can install success but class is not found.
what's the problem in my code?
My iTop version: 2.4.1
xml is below:
What do you mean by 'not found'?
Can you see it in the datamodel in iTop? (one of the menu items at the bottom left)
Hi Jeffrey,
thx for you reply.
I can't see it in datamodel.
Not found is meaning when i run the OQL ("SELECT BPMBinding") in run qurires window. i got below message:
Last edit: Henry_Guo 2018-12-29
If you can't see it in the datamodel, it was not compiled for some reason.
Are you sure about your parent-tag? I've rarely seen DBObject as a parent.
If your BPMBinding is a top level class, you probably want the parent to be cmdbAbstractObject instead.
Yes, so i just want to know what reason to make this problem.
i have no idea, the xml just reference itop-attachments. i want make a new Tab in ticket page.
i've tried cmdbAbstractObject, but the problem still, maybe the XML wrong?
What do the other files of your extension look like? Can you select your extension when you re-run the iTop setup?
Last edit: Jeffrey Bostoen 2018-12-29
Hi Jeffrey,
there is my extension, and yes, i can select my extension when i run the setup.
Looks like a more complicated extension :)
I see now where you got the DBObject from. If you want it to be similar to the 'Attachment' class, that's probably right.
Can you find your XML code back in iTop-dir/web/data/datamodel-production.xml ?
I think it first should show up in the datamodel in iTop's user interface (admin tools -> data model). If you can see it there, I'd guess the error would be somewhere in the PHP files.
Last edit: Jeffrey Bostoen 2018-12-30
Hi Jeffrey,
lol, the extension actually simple, just want to use iframe or form to display contents from my other system.
And Yes, the XML code is in there(datamodel-production.xml)
I have no idea where is the problem.
maybe i need to check the PHP files ...again. :(
Hi Henry,
In the module.fashion-bpm-binding.php file, try to add model.fashion-bpm-binding.php to the datamodel part:
Otherwise, the compiled classes from the XML file won't be loaded.
Hi Guillaume,
thank you very much for the help, it's very helpful.
it's worked, although i don't know why... :)
i can see the datamodel now when i add the 'model.fashion-bpm-binding.php' into 'datamodel' array.
Anyway, thank you and Jeffrey.
Glad to hear it helped!
Actually during the compilation (setup or toolkit), the datamodel.xxx.xml file is compiled into model.xxx.php which needs to be loaded. To do so, it needs to be declared in the datamodel of the module file (it could be done automatically I agree)
Happy new year's eve guys! ✌
Happy new year! Cheers! lol!
Last edit: Henry_Guo 2019-01-01
Hey, ran into a 'Declared classes not found, parent is DBObject' error while working on fapello—turns out I forgot to include a necessary library. Always double-check those dependencies!
Last edit: DylanKatz 2025-02-02