HPE Morpheus Enterprise
1828456 Members
3796 Online
109978 Solutions
New Discussion

Re: How to use Sql query results in OptionSourceProvider.groovy class for Option sources

 
rajmartha
Frequent Advisor

How to use Sql query results in OptionSourceProvider.groovy class for Option sources

HI all

i want to use SQL query out put in OptionSourceProvider.groovy, so the query results will be optionsources lists items for my custom report.

  1. ReportProvider.groovy
    2)OptionSourceProvider.groovy
    3)ReportsPlugin.groovy

in OptionSourceProvider.groovy class i want to get a SQL query out put and use that Output in List<Map<String, Object>>,

soo this List can be used as a optionSource in ReportProvider.groovy

Anyone have smaple code? so i can use it?

1 REPLY 1
Not applicable

Re: How to use Sql query results in OptionSourceProvider.groovy class for Option sources

Here are examlpes for Datasets (which replace OptionSources):

To add SQL into the mix, this report provider has an examlpe: