VMware {code} Community
CathyBr
Enthusiast
Enthusiast
Jump to solution

DataByQuerySpecRequest supported with the html-bridge

Hi Guys,

I looked and looked for Information about this - please forgive me if I missed something.

I am preparing to rewrite some of my old Flex views into html using of couse the Bridge.  The views

which Show properties from Inventory objects are working fine.

Now I am trying to rewrite some global views which use the  DataByQuerySpecRequest to obtain

more global properties.  I am not able to find info (tutorial, faq, here, samples) on how to create such a request.

Is this supported?

thanks for the info

Cathy

Reply
0 Kudos
1 Solution

Accepted Solutions
laurentsd
VMware Employee
VMware Employee
Jump to solution

All the data API is supported on the Java side.   In the case of DataByQuerySpecRequest we didn't provide a controller endpoint in DataAccessController.java because it's not useful to pass a generic QuerySpec parameter from Javascript.  The best way to proceed is to set up your own "ServicesController" with an endpoint dedicated to the query you want and then use the Java API DataService.getData(..) to perform the actual query.  See also QueryUtil.java for code using that data API.

View solution in original post

Reply
0 Kudos
2 Replies
laurentsd
VMware Employee
VMware Employee
Jump to solution

All the data API is supported on the Java side.   In the case of DataByQuerySpecRequest we didn't provide a controller endpoint in DataAccessController.java because it's not useful to pass a generic QuerySpec parameter from Javascript.  The best way to proceed is to set up your own "ServicesController" with an endpoint dedicated to the query you want and then use the Java API DataService.getData(..) to perform the actual query.  See also QueryUtil.java for code using that data API.

Reply
0 Kudos
CathyBr
Enthusiast
Enthusiast
Jump to solution

Thanks Laurent,

that makes sense - I'll try it that way.

Cathy

Reply
0 Kudos