我需要通过Rest API向我的reportUnit添加参数/输入。我的文件正常创建但没有inputControls。我需要将inputControls添加到此jrxml文件。只有我发现我需要路径到inputcontrolreference,但是它不起作用。在我使用put方法发送的代码下面:
{
"label": "paragon",
"description": "paragon jrxml",
"dataSource": {
"dataSourceReference": {
"uri": "/datasources/Oraclunio"
}
},
"inputControls": [
{
"inputControlReference": {
"uri": "/reports/G/paragon_files/NumerZamowienia"
}
},
{
"inputControlReference": {
"uri": "/reports/G/paragon_files/Rodzaj"
}
}
],
"alwaysPromptControls": true,
"controlsLayout": "popupScreen",
"jrxml": {
"jrxmlFile": {
"label": "Main jrxml",
"type": "jrxml",
"content": "content"
}
}
}
我使用了这样的链接:http://localhost:8081/jasperserver/rest_v2/resources/reports/G/paragon?createFolders=false