CA Service Management

  • 1.  Can you query a java plugin with ca_reportQuery?

    Posted Oct 30, 2017 03:03 PM

    Hi,

     

    I'm wondering if you can query a java plugin with ca_reportQuery?  We have a requirement to pull data from a custom app into CA Service Catalog.  Ideally we would be able to do this via ca_reportQuery and pass in variables.  I don't see this mentioned in the documentation.



  • 2.  Re: Can you query a java plugin with ca_reportQuery?

    Posted Oct 30, 2017 03:11 PM

    Jason_Wolfe, yanji03, Chitra_Gopal, Scott_Karbiner - can you offer any insight on this one?



  • 3.  Re: Can you query a java plugin with ca_reportQuery?

    Posted Oct 30, 2017 05:51 PM

    I'm thinking this may not be possible. The following function returns an empty array to the console.  However, placing the id "ca.catalog.samples.select-plugin" in a select field will display results.

     


    testSelect : function(){

    ca_reportQuery('ca.catalog.samples.select-plugin', null, function(rows){console.log(rows)}, null);

    },



  • 4.  Re: Can you query a java plugin with ca_reportQuery?
    Best Answer

    Posted Oct 31, 2017 12:10 PM

    Hi Grant,

     

    You can leverage ca_fdInvokePlugin() for this, see Administration > Tools > Links > Form Designer JavaScript API > Global > ca_fdInvokePlugin() for usage.

     

    Thanks,
    Jason



  • 5.  Re: Can you query a java plugin with ca_reportQuery?

    Posted Oct 31, 2017 12:20 PM

    Thank you Jason,

     

    That's exactly what I was looking for..  I must have skipped past that function while skimming the documentation.



  • 6.  Re: Can you query a java plugin with ca_reportQuery?

    Posted Oct 31, 2017 12:23 PM

    Most welcome, Grant!