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

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -