Visualize: search

Search By text in report

by Pavel Savushchyk

HTML

<script src="http://localhost:8080/jasperserver-pro/client/visualize.js?_opt=false"></script>
<div id="container"></div>

CSS

.jr_search_result {
  background-color: green;
}

table {
  width: 100%;
}

#container{
  height: 400px;
}

JavaScript

visualize({
  auth: {
    name: "superuser",
    password: "superuser"
  }
}, function(v) {

  var reportUri = '/public/Samples/Reports/01._Geographic_Results_by_Segment_Report';
  var report = v.report({
    resource: reportUri,
    container: "#container",
    //error: handleError,
    success: function(data) {
      console.log(data);
    }
  });

 });