java - Create input control using jasper restapiv2 -
i'm using jasper api rest v2 https://github.com/jaspersoft/jrs-rest-java-client. i'm trying create input control's dynamically.
clientinputcontrol cliinp = new clientinputcontrol(); cliinp.setlabel("funcionario_id_1"); cliinp.setdatatype(new clientdatatype().settype(typeofdatatype.date)); cliinp.seturi("/datatypes/funcionario_id_1"); session.resourcesservice().resource("/datatypes").createnew(cliinp);
i need create input control can add report.
when executing code have
exception in thread "main" com.jaspersoft.jasperserver.jaxrs.client.core.exceptions.badrequestexception: bad request
edit
log files give following error:
mt error:[{ "message":"the type 0 invalid", "errorcode":"illegal.parameter.value.error", "parameters": ["type", "0"] }]
can tell me i'm doing wrong?
Comments
Post a Comment