This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Dynamic Managed Component question

I would like to create a dynamic managed component query to create a service. I would like the service to contain Net Monitor Devices but only those that also have an Oracle agent on the host that the Net Monitor is checking. I was hoping to use a query such as:

NetMonitorDevice where deviceReference.referredObject.agents instanceof DBO_Agent_Model 

but this does not work as an error says the NetMonitorDevice does not have a property "agents". I thought I was doing a "walk along a property path" because I could follow this path in the script console, but maybe not.

Is what I would like to do possible?

Thanks,

Kris 

Parents
  • Hi Jan,
    Thanks for the response. It's good to know that I was on the right track. I had another look at this and your comment about failing because the result would be a list of objects was spot on. My walk along the property path was correct but it was returning a list and not a object. It was the error returned that was misleading me. If I do something like this:
    NetMonitorDevice where deviceReference.referredObject.name like '%dev%'
    it works.
    Thanks!
    Kris
Reply
  • Hi Jan,
    Thanks for the response. It's good to know that I was on the right track. I had another look at this and your comment about failing because the result would be a list of objects was spot on. My walk along the property path was correct but it was returning a list and not a object. It was the error returned that was misleading me. If I do something like this:
    NetMonitorDevice where deviceReference.referredObject.name like '%dev%'
    it works.
    Thanks!
    Kris
Children
No Data