You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reports service includes methods for reading and setting report parameters.
468
+
469
+
###Input controls service:
470
+
The reports service includes methods for reading and setting input controls of any input controls container, i.e. reportUnit, reportOptions, dashboard, adhocDataView
469
471
####Listing Report Parameters Structure
470
-
The following code returns a description of the structure of the report parameters for a given report.
472
+
The following code returns a description of the structure of the input controls for a given container.
ReportInputControlsListWrapper result = operationResult.getEntity();
479
480
```
480
-
The response contains the structure of the report parameters for the report. It contains the information needed by your application to display the report parameters to your users and allow them to make a selection. In particular, this includes any cascading structure as a set of dependencies between report parameters. Each report parameter also has a type that indicates how the user should be allowed to make a choice: bool, singleSelect, singleSelectRadio, multiSelectCheckbox, multiSelect, singleValue, singleValueText, singleValueNumber, singleValueDate, singleValueDatetime, singleValueTime.
481
-
The structure includes a set of validation rules for each report parameter. These rules indicate what type of validation your client should perform on report parameter values it receives from your users, and if the validation fails, the message to display. Depending on the type of the report parameter, the following validations are possible:
481
+
The response contains the structure of the input controls for the container. It contains the information needed by your application to display the report parameters to your users and allow them to make a selection. In particular, this includes any cascading structure as a set of dependencies between container parameters. Each input control also has a type that indicates how the user should be allowed to make a choice: `bool, singleSelect, singleSelectRadio, multiSelectCheckbox, multiSelect, singleValue, singleValueText, singleValueNumber, singleValueDate, singleValueDatetime, singleValueTime`.
482
+
The structure includes a set of validation rules for each report parameter. These rules indicate what type of validation your client should perform on input control values it receives from your users, and if the validation fails, the message to display. Depending on the type of the report parameter, the following validations are possible:
482
483
* mandatoryValidationRule – This input is required and your client should ensure the user enters a value.
483
484
* dateTimeFormatValidation – This input must have a data time format and your client should ensure the user enters a valid date and time.
484
-
485
-
####Listing Report Parameter Values
485
+
To skip input controls state generation use `excludeState(true)` setting:
It is impossible to change input controls except change of theirs order. Sent to server structure MUST be the same as it received
505
+
from there, except order.
506
+
You cannot modify some values, add or remove control, etc.
507
+
####Listing input controls values
486
508
The following code returns a description of the possible values of all report parameters for the report. Among these choices, it shows which ones are selected.
InputControlStateListWrapper result = operationResult.getEntity();
543
+
```
544
+
In response you get updated values for specified input controls. If you want to get updated values with full structure of input controls, you should use `includeFullStructure(true)` setting:
Copy file name to clipboardExpand all lines: src/main/java/com/jaspersoft/jasperserver/jaxrs/client/apiadapters/inputControls/InputControlsValuesAdapter.java
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ public class InputControlsValuesAdapter extends AbstractAdapter{
0 commit comments