Menu

Customization of User Portal cant find newly created class

2024-01-25
2024-01-29
  • Abdullah Noman

    Abdullah Noman - 2024-01-25

    Hello,

    I have created a new class in a new extension to create ticket and it got its own fields. Now I want to let the user use the customer portal to fill out the form and create new ticket. For some reason, itop can not find my class and says , class not found or I am not allowed to see it. Can anyone suggest me how can I accomplish this?

    Here is my new brick code:
    [cid:image002.png@01DA4FA7.53578BB0]
    Here is my class code in the same extension:
    [cid:image003.png@01DA4FA7.53578BB0]
    [cid:image004.png@01DA4FA7.53578BB0]

     

    Last edit: Abdullah Noman 2024-01-25
  • Guillaume Lajarige

    Hello Abdullah,

    Take a look at this page, it's the required steps to customize the portal. In your case, I'd say that it is most likely that you need to add a scope for the CircuitRequest class.

    Hope it helps,
    Guillaume

     
  • Abdullah Noman

    Abdullah Noman - 2024-01-26

    Hello @glajarige , thank you for your quick response. so I have added the class scope and now I get this error message:
    Oops! An error has occured.
    An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "" as such route does not exist.").

     
  • Guillaume Lajarige

    You forgot the _delta="define" on the node. Also, if you want to be able to create/edit these objects, you need to add an oql_edit node. Check the page I gave on the previous post for complete information.

    Guillaume

     
  • Abdullah Noman

    Abdullah Noman - 2024-01-26

    hi @glajarige , i have read the entire instruction and added all the mandatory tag. and I still get the error saying I am not allowed to see the object. Please some help needed. Here are the codes:

    PS: i do have the fields mentioned in action_rules (caller_id,org_id, orgin in my CircuitRequest class)

     
  • Abdullah Noman

    Abdullah Noman - 2024-01-26

    also i wanted to point out, I have the circuitRequest class and the modul design in the same datamodel.xml file. Is that an issue?

     
    • Guillaume Lajarige

      It should not be an issue :)

       
  • Guillaume Lajarige

    The we should check what is forbidding you from viewing the object.
    - Go to the portal and and &debug=true to the URL
    - Open an object that object that is causing the error message
    - Open iTop logs (ITOP/log/error.log) and paste here the error message.

    If you have no error message, edit the log level in the configuration file (see this page) and set it to 'Info'

     
  • Abdullah Noman

    Abdullah Noman - 2024-01-29

    hi @glajarige, I figured out the issue. The reason I couldn't see the object was there were fields in that class/object that were related to other class, and I needed to give scope to all of the classes and finally it worked. Its a good point to know. Thanks for your help.

     
    👍
    1
  • Guillaume Lajarige

    Glad to see you fixed it!

     

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.