Menu

Add new tab

2017-12-01
2020-11-13
  • Tomas Balachoncev

    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

     
  • Tomas Balachoncev

    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?

     
  • med

    med - 2017-12-14

    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
  • Mohamed Medhat

    Mohamed Medhat - 2020-06-15

    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

     
    • Molkobain

      Molkobain - 2020-06-16

      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

       
      • Mohamed Medhat

        Mohamed Medhat - 2020-06-16

        Thanks for your reply but where i can find the

        iApplicationUIExtension::OnDisplayRelations() interface
        Could you provide a url
        Sent from my iPhone

        On Jun 16, 2020, at 9:32 AM, Molkobain molkobain@users.sourceforge.net wrote:

        
        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

        Add new tab

        Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/itop/discussion/922360/

        To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

         
        • Molkobain

          Molkobain - 2020-06-17

          You can find a great example in the datamodels/2.x/itop-attachments/main.itop-attachments.php file

          Guillaume

           
          👍
          1
  • Jba

    Jba - 2020-10-05

    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
    • Jeffrey Bostoen

      Jeffrey Bostoen - 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.

       
      👍
      1
      • Jba

        Jba - 2020-10-07

        Thank you ! Very uselful & simple example indeed ! Exactly what I needed.

         
    • Pierre Goiffon

      Pierre Goiffon - 2020-11-13

      Hello,
      There is also an example in the wiki tutorials : Enrich display of an object [iTop Documentation]

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.