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]
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.").
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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)
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'
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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.").
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
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)
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?
It should not be an issue :)
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'
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.
Glad to see you fixed it!