I have implemented a custom class of Functional CI in my ITop and i would like to show a complete list of this CI in the user portal.
I have tryed both "manage" and "browse" bricks but I keep encountering the message "No Items" with the first approach and "No levels to display" with the second approach.
Here is my latest XML with the browse brick:
<?xml version="1.0" encoding="UTF-8"?><itop_designxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"version="1.0"><module_designs><module_designid="itop-portal"xsi:type="portal"><bricks><brickid="ongoing-tickets-for-portal-user-ext"xsi:type="Combodo\iTop\Portal\Brick\BrowseBrick"_delta="define"><levels><levelid="CSGxP"xsi:type="Combodo\iTop\Portal\Brick\Browse\Level"><oql><![CDATA[SELECT CS_GxP WHERE status = "Production"]]></oql><actions><actionid="CSGxP"xsi:type="Combodo\iTop\Portal\Brick\Browse\Action\View"/></actions></level></levels><browse_modes><availables><modeid="list"/></availables><default>list</default><data_loading>full</data_loading></browse_modes></brick></bricks></module_design></module_designs></itop_design>
With the managed brick, I have tried different OQL queries, and it appears to work when displaying a list of user accounts, so it seems the issue is with the visualization of FunctionalCI.
Did someone manage to show a list of FunctionalCI on the user portal?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok so i was missing scopes in my new class, now i'm trying to play around with it, but it still seems i can't get the funcional ci to show. Following my class code:
Hi,
I have implemented a custom class of Functional CI in my ITop and i would like to show a complete list of this CI in the user portal.
I have tryed both "manage" and "browse" bricks but I keep encountering the message "No Items" with the first approach and "No levels to display" with the second approach.
Here is my latest XML with the browse brick:
With the managed brick, I have tried different OQL queries, and it appears to work when displaying a list of user accounts, so it seems the issue is with the visualization of FunctionalCI.
Did someone manage to show a list of FunctionalCI on the user portal?
You might be missing the definition of explicit "scopes" for your new class who can see it?
Ok so i was missing scopes in my new class, now i'm trying to play around with it, but it still seems i can't get the funcional ci to show. Following my class code:
Maybe i'm missing something on the scope lines, idk, i let you know if i can make it work
Seems like you're defining the scopes in the wrong XML node.
Check https://www.itophub.io/wiki/page?id=latest:customization:portal_xml
I have edited the first code i posted into a "Manage Brick", and i have added a scope, but it still doesn't seem to work:
Any new hint?
Ok i have managed to do it, i have deleted the extension and addedd all the code for the brick and the scope directly in the itop-portal datamodel
Bad idea. Not future proof, as you'll need to do it each time there's an iTop update.
As for the hint: you're missing a
_delta="define"
again for your class/scopes.