Menu

Portal user request with preselected service subcategory

libelle
2022-10-07
2022-10-10
  • libelle

    libelle - 2022-10-07

    Hi guys,

    I want to update my iTop to version 3.0.2. So far (version 2.6) I had the following customization in an extension:

          <bricks>
            <!-- Deletes the existing button "New request" -->
                    <brick id="services" xsi:type="Combodo\iTop\Portal\Brick\BrowseBrick" _delta="delete">
            </brick>
    
                    <!-- Adds a new button to create a new ticket directly without selecting the service category first. -->
                    <brick id="quick-new-user-request" xsi:type="Combodo\iTop\Portal\Brick\CreateBrick" _delta="define">
                        <active>true</active>
                        <rank>
                            <default>10</default>
                        </rank>
                        <width>6</width>
                        <modal>true</modal>
                        <title>
                            <default>Brick:Portal:QuickNewUserRequest:Title</default>
                        </title>
                        <description>Brick:Portal:QuickNewUserRequest:Title+</description>
                        <visible>
                            <home>true</home>
                        </visible>
                        <decoration_class>
                            <default>fc fc-new-request fc-2x</default>
                        </decoration_class>
                        <!-- Class that will be create created with the form -->
                        <class>UserRequest</class>
                        <rules>
                            <rule id="contact-to-userrequest"/>
                            <rule id="servicesubcategory-to-userrequest"/>
                            <rule id="go-to-open-request-on-submit"/>
                        </rules>
                    </brick>    
                </bricks>
    

    This code made it possible that the user could create a request without extra selecting the service category and sub service categories. We have only one service category and one sub service category - that's why the customization.

    Unfortunately, this does not work anymore in version 2.7 or 3.0.3. I get an error in the portal when I try to create a new request. If I remove "<rule id="servicesubcategory-to-userrequest">" I don't get an error message, however the service category and sub-service category is also not preselected anymore:</rule>

    What do I need to change to get the original functionality back?
    Thank you very much for feedback.

    Best regards
    Sebastian

     
  • Pierre Goiffon

    Pierre Goiffon - 2022-10-07

    Hello,

    Take a look at the migration notes

    What is the definition of the action rules ?

     
  • libelle

    libelle - 2022-10-10

    Hello Pierre,

    thank you very much for your feedback.
    First of all, I'm a total loaner as far as iTop development is concerned but I'll give it a try anyway.

    In the Migration Note it says not to use action rules in a brick anymore. Instead you should use navigation rules in the corresponding form.

    Where can I look for such a solution to get to my goal (service and service subcategory are already preselected)?

    Thank you very much for your help.

    Best regards
    Sebastian

     

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.