Jump to content
We've recently updated our Privacy Statement, available here ×

Radha2049

Members
  • Posts

    2
  • Joined

  • Last visited

Radha2049's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. hozawathank you so much for reply. i already have viewd lots of documents related to input control but got stucked. i want to generate the jasper report at the run time. report should be generated after the user input. i have checked "Input Control" functionality but they all create the static jasper reports but i want dynamic one. for small amount of datas and to create few reports i have used following query: <?phprequire_once __DIR__ . "/vendor/autoload.php";require_once "jrs-rest-php-client/src/Jaspersoft/Service/QueryService.php";use JaspersoftServiceQueryService;use JaspersoftClientClient; if($_SERVER['REQUEST_METHOD'] == 'POST'){$district = $_POST['district'];$format = $_POST['format'];$depth_used = $_POST['depth_used']; $conc_arsc = $_POST['CONC_ARSC']; header('Content-Type: application/pdf'); $c = new Client( "localhost", "8080", "jasperadmin", "jasperadmin", "/jasperserver" ); if($depth_used == "0-19"){if($conc_arsc == "0-9"){$report = $c->reportService()->runReport('/reports/Arsenic_Reports/DepthUsed_0_20_ConcArsc_0_10','pdf');echo $report;}if($conc_arsc == "10-50"){$report = $c->reportService()->runReport('/reports/Arsenic_Reports/DepthUsed_0_20_ConcArsc_11_50','pdf');echo $report;}if($conc_arsc == ">50"){$report = $c->reportService()->runReport('/reports/Arsenic_Reports/DepthUsed_0_20_ConcArsc_51_100','pdf');echo $report;}} } else{echo "Failed to generate pdf";}?> this extracts the static reports that have been previously created in jasper report server but i am stucked how to make my reports dynamic? please help me.its very urgent.
  2. I have created a table as my jasper report which holds more than one million arsenic data with various arsenic levels. The requirement of my project is: [1] User should give inputs through simple html forms and submit buttons [2] User should select data which has arsenic level (AL) <10 , 10<AL<=50 , AL<50 [3] Now he should click submit button [4] Now after clicking the submit button, the report should should be dispayed as per the user inputs (AL <10 or 10<AL<=50 or AL<50) How to do this?
×
×
  • Create New...