Menu

Display PhysicalDevice objects in Standard Portal including the device location

nrek
2023-08-28
2023-08-31
  • nrek

    nrek - 2023-08-28

    Hello all,

    we have created an extension to display PhysicalDevice objects in the Standard Portal using a ManageBrick.
    For that we have added a field "device owner" to the class PhysicalDevice and modified the scope "all" that the user is able to see his own devices. But when i add the field "location_id" to the ManageBrick i receive the attached error messages.

    Does someone has created a similar extension to display PhysicalDevice objects in the portal including the location field of the PhysicalDevice object? The english version of the second error message is "Sorry, this object does not exist (or you are not allowed to view it)."

    best regards

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2023-08-28

    The organization of the location: that's the same as the organization of the functional CI?

    You might need to assign some more permissions.

     
  • nrek

    nrek - 2023-08-28

    Hello Jeffrey,

    yes, its the same organization. Do you mean the scopes when you talk about permissions?

    many tanks

     
    • Jeffrey Bostoen

      Jeffrey Bostoen - 2023-08-28

      In this case, indeed. I'm not sure if the "location" class is exposed by default in the user portal. You might need to update the scopes to include it.

       
      • nrek

        nrek - 2023-08-28

        Hello,

        i have already exposed the location by creating an "all" scope. For testing if it is working i have also created a ManageBrick to list all locations. All locations are displayed correctly.

        many thanks you for support

         
  • Vincent @ Combodo

    The error message n°2, does not look like a Portal error, this is a Console one
    I have no clue what is the first message
    What is your field "device owner" is it an externalkey to a Person or to an iTop User, because to an iTop User you may encounter issue, as out of the box Users are not allowed to see the User Class

     
    • nrek

      nrek - 2023-08-29

      Hello Vincent, correct, the device owner is an AttributeExternalKey to the Person class. So i am able to display the devices to the Person but when i add the field "location_id" to the ManageBrick than the error messages appear.

       
    • nrek

      nrek - 2023-08-30

      Is it possible to change the log level of the Portal component? Currently i can not find any logs in the folder C:\inetpub\wwwroot\log\portals\itop-portal-prod.

       
  • nrek

    nrek - 2023-08-31

    Hello,
    i have some news regarding my issue.

    If i remove the field "location_id" from the ManageBrick <fields> and only add it the form which is used to display the details of the PhysicalDevice, than the error message does not appear. The location is displayed correctly in the form. </fields>

     

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.