To enable drop-downs for stored procedure input parameters in reports, the following are necessary:
For example, the following Sigma Application screen shot shows drop-down values for the Currency input parameter in a report:
Let's see how to configure drop-downs for stored procedure input parameters in reports.
To fetch the grid widget data for the stored procedure input parameters in reports, perform the following steps in Sigma Studio:
On the home page of Sigma Studio, right-click an existing database connection and select the Create Data Source option.
It is necessary that you create separate data sources for the grid widget and the report. In the given example here, the data source for the grid widget is a DB table data source (SP DS), whereas the data source for the report is a DB stored procedure (SP DS 6). |
Select the filter criteria of your choice from the Apply Mandatory Filter As drop-down list.
In this example, the DB stored procedure data source has following five input parameters:
Among these five parameters, the values for the ACCOUNT_NO, AVAI_BALANCE, and CURRENCY parameters must be fetched from the grid widget, ACCOUNTS. You can notice in the following screen shot these three parameters are mapped to their respective columns in the grid widget, whereas the FD and TD parameters have been given default values. |
Once you apply the procedure parameter configurations, a toast message appears, indicating a successful save of the applied procedure parameter configurations.
Click outside the Procedure Parameters Configuration window, so that the configured procedure parameters get saved. |