Hi,
i have a question, is there any way how to add new tab to ticket? I try to find it on wiki or all forums but i didnt find nothing. Or does anybody know where are thes tabs declared in datamodels?
As far i can tell, the tabs are only references to object from other classes. So i think it is not possible to put a field off your object class to another only for displaying. (first Tab ist your object off a class and therefore there are all the informations that belong to that object. other tabs = other object from other classes). You can do it by going deep into the sourcecode and define a new tab. But that will be much reading and understanding php.
Last edit: med 2017-12-14
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes it's possible, if the tab should display objects from a LinkedSet or IndirectLinkedSet attribute, all you have to do is add the attribute to "details" presentation list in the XML of your extension.
On the other hand, if you want to build the content of the tab from scratch, take a look at the iApplicationUIExtension::OnDisplayRelations() interface. There are several examples in the code.
Hope this helps,
Guillaume
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes it's possible, if the tab should display objects from a LinkedSet or IndirectLinkedSet attribute, all you have to do is add the attribute to "details" presentation list in the XML of your extension.
On the other hand, if you want to build the content of the tab from scratch, take a look at the iApplicationUIExtension::OnDisplayRelations() interface. There are several examples in the code.
Hello, I try to achieve the same the but I can't figure it out with the attachments class. (Not a PHP master) Could it be possible to upload an example of an extension that adds a new tab with some data inside (for tickets-incidents) ? Thank you
Last edit: Jba 2020-10-05
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
i have a question, is there any way how to add new tab to ticket? I try to find it on wiki or all forums but i didnt find nothing. Or does anybody know where are thes tabs declared in datamodels?
https://imgur.com/9vKAi39
Hi, i solv it how to add new tab, but now i dont know how to add new fields in this tab. I follow this guide: https://wiki.openitop.org/doku.php?id=2_3_0:customization:add-attribute-sample and create new field. But i dont know how to set it to display it in new tab.
If u set the rank it will only chage place where is it in tab properties, but i need to display it in new tab.
Can someone help me how to target tabs in XML? Or any way how to do it?
As far i can tell, the tabs are only references to object from other classes. So i think it is not possible to put a field off your object class to another only for displaying. (first Tab ist your object off a class and therefore there are all the informations that belong to that object. other tabs = other object from other classes). You can do it by going deep into the sourcecode and define a new tab. But that will be much reading and understanding php.
Last edit: med 2017-12-14
dear All
hope you are doing well and safe
i have add a new class, is it possible to create a new tab in this new class
Hello Mohamed,
Yes it's possible, if the tab should display objects from a LinkedSet or IndirectLinkedSet attribute, all you have to do is add the attribute to "details" presentation list in the XML of your extension.
On the other hand, if you want to build the content of the tab from scratch, take a look at the iApplicationUIExtension::OnDisplayRelations() interface. There are several examples in the code.
Hope this helps,
Guillaume
Thanks for your reply but where i can find the
iApplicationUIExtension::OnDisplayRelations() interface
Could you provide a url
Sent from my iPhone
You can find a great example in the datamodels/2.x/itop-attachments/main.itop-attachments.php file
Guillaume
Hello, I try to achieve the same the but I can't figure it out with the attachments class. (Not a PHP master) Could it be possible to upload an example of an extension that adds a new tab with some data inside (for tickets-incidents) ? Thank you
Last edit: Jba 2020-10-05
Try https://store.itophub.io/en_US/products/itop-ocsng -> main.itop-ocsng.php file .
That should help you figure it out. :)
If not, better get in touch with Combodo or one of the freelance people.
Thank you ! Very uselful & simple example indeed ! Exactly what I needed.
Hello,
There is also an example in the wiki tutorials : Enrich display of an object [iTop Documentation]