Menu

CI in a brick of the user portal

2023-12-26
3 days ago
  • Marlene Lara

    Marlene Lara - 2023-12-26

    Hello everyone, I'm new to iTop :)

    I have tried to create an extension which creates a new brick in which the CIs related to the contact can be displayed, but it has not worked for me, it does not show any information in the user portal brick, could someone tell me what I am failing, Thank you :,).

    With this I am trying

                <brick id="functionalci-for-portal-users" xsi:type="Combodo\iTop\Portal\Brick\ManageBrick" _delta="define">
                    <active>true</active>
                    <rank>
                        <navigation_menu>60</navigation_menu>
                    </rank>
                    <width>12</width>
                    <title>
                        <default>Brick:Portal:FunctionalCI:Title</default>
                    </title>
                    <description></description>
                    <decoration_class>
                        <default>fc fc-functionalci fc-2x</default>
                    </decoration_class>
                    <oql><![CDATA[SELECT FunctionalCI]]></oql>
                    <fields>
                        <field id="funtionalci_id"/>
                        <field id="contact_id"/>
                        <field id="name"/>
                        <field id="finalclass"/>
                        <field id="description"/>
                        <field id="business_criticity"/>
                    </fields>
                    <grouping>
                        <tabs>
                            <groups>
                                <group id="all">
                                    <rank>1</rank>
                                    <title>Brick:Portal:FunctionalCI:Title</title>
                                    <condition><![CDATA[SELECT FunctionalCI]]></condition>
                                </group>
                            </groups>
                        </tabs>
                    </grouping>
                    <data_loading>auto</data_loading>
                    <export>
                        <export_default_fields>true</export_default_fields>
                    </export>
                </brick>
    
     
  • Vincent @ Combodo

    Hi Marlene,
    I don't remember that contact_id would be a field of the FunctionalCI class, unless you have added it to the datamodel with an extension. Maybe you can try to display the class lnkContactToFunctionalCI, or maybe multiple classes. I have never tried to display multiple classes within a ManagedBrick, but maybe this works...
    The other aspect, is that you need to define a scope for the FunctionalCI in the user portal, because the logic of the User portal is that whatever are your profiles, nothing is allowed unless explicitly defined as allowed in a scope.

     
    👍
    1
  • Peter, U

    Peter, U - 3 days ago

    Hello,

     

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.