Skip to content

Define Parameters

How to Define Dependent Parameter in Custom Report.

· User can define parameters in such a way that the selection of one parameter is dependent on the value selected on another parameter.

· For Example, we define Item description to be dependent on the Item. While generating the report, the user will be able to select only one Item description which is with respect to the Item selected.

image-20210622101353265

Step 1: Define Report Name

image-20210622101423713

· Follow the same steps as followed in the Example Save it.

Step 2: Define Parameters

· Click on Add icon in the Parameter list. The user has to define the Parameter name and Type.

· If the user wishes to add more than one data while generating a report then Multi-select should be True, else False.

· Dependent Parameters have to be defined, here we enter ‘ItemDesc’.

· Fill the fields accordingly.

image-20210622101457174

· Enter SQL Query by clicking on Generate button. This will help the user to select a unique Item from the list. Save and Add.

image-20210622101505444

· Similarly add another parameter which is Item Description.

image-20210622101518242

· Refer to the image below for SQL Query. Save and Add.

image-20210622101528898

· Refer to the image below to see the data entered in a Grid form.

image-20210622101732147

Step 3: Define Custom Report tab

· Click on Add icon to fill in the fields.

image-20210622101833488

· Refer to the image below for SQL Query. Save and Add.

image-20210622101840923

· Please make note, the below Query is for a single select.

select * from WorkOrderPlan where Item =[:Item] and PlantId=[:LoginPlantId]

· For Multi-select users must make the following changes.

select * from WorkOrderPlan where Item in ([:Item]) and PlantId=[:LoginPlantId]

image-20210622101914174

· Custom Menu Design and User Authorization remains the same as in this Example

Step 4: View Report

· Go to Menu bar --> Test Report --> Sample Report.

· Select the Item from the drop downs.

image-20210622102147659

· Click on ItemDesc drop downs and the user will be able to see only one Item Description corresponding to the Item selected.

image-20210622102157633

· After selecting Item and Item Description click on Generate Reports.

image-20210622102205804