vSphere

 View Only
  • 1.  DataByQuerySpecRequest supported with the html-bridge

    Posted Nov 26, 2015 07:45 AM

    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



  • 2.  RE: DataByQuerySpecRequest supported with the html-bridge
    Best Answer

    Broadcom Employee
    Posted Nov 27, 2015 06:05 AM

    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.



  • 3.  RE: DataByQuerySpecRequest supported with the html-bridge

    Posted Nov 27, 2015 08:13 AM

    Thanks Laurent,

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

    Cathy