Forum Discussion

Hargul_Sidhu's avatar
Hargul_Sidhu
Ideator I
2 years ago
Solved

Where are "Resources" stored?

I need to add some "Resources". If I use the 'Create' button and manually add them where are these stored in code base. 

Our Production environment is missing some resources. I want to add them in my dev. environment and the export the XML but I can't find where would the new enteries be stored.


"Resources" comes from mpp_machine item , guessing from the icon, which is poly-source item to mpp_Resource if that helps. 

Thanks! 

  • Hi Hargul,

    Based on how Poly Items work both Tools and Machines are resources. Generally you can't create a mpp_resource, as it's a Poly Item. When you query mpp_resource you'll get a list of mpp_machines and mpp_tools. If you're looking to create machines or tools, then you can just add those Items as you'd expect and export them normally.

    If you're looking to create a new type of resource, you'd have to create a new ItemType and add it as a Poly Source of mpp_resource. Then you'd export the ItemType itself, and any of your new items you've created.

    AJ

5 Replies

  • Hi Hargul,

    Based on how Poly Items work both Tools and Machines are resources. Generally you can't create a mpp_resource, as it's a Poly Item. When you query mpp_resource you'll get a list of mpp_machines and mpp_tools. If you're looking to create machines or tools, then you can just add those Items as you'd expect and export them normally.

    If you're looking to create a new type of resource, you'd have to create a new ItemType and add it as a Poly Source of mpp_resource. Then you'd export the ItemType itself, and any of your new items you've created.

    AJ

    • Hargul_Sidhu's avatar
      Hargul_Sidhu
      Ideator I

      Hi asebastian  I noticed that in the localRepo I have these "Resources"(shown in VS Code) that do not do show up in UI. Therefore, adding the new "Resources" here will not work. (The ones you currently see in the environment were deployed using the "INSERT" sql statement. ) Why do they not show in the UI?
      Will each "Resource" have a seperate XML file? 

      • asebastian's avatar
        asebastian
        New Member

        Hi Hargul,

        I think there's a miscommunication here. It looks like you're importing a list, and the highlighted items are list-values, not a poly-source of mpp_resource. At least that's what I'm getting from your image.