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

iscoscar

Members
  • Posts

    9
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Everything posted by iscoscar

  1. Hi @neha.angel.sweet I need to add exactly the same feature to my reports... could you post an example how did you solved?? Thaks a lot in advance
  2. Thanks @Hozawa very simple solution, adding the Parenthesis on the condition works. Jasper Studio dont require that format. here the solution: ($P{One_Week}.toString().equals ("true")) ? new String("2016-07-01"):new String("2016-07-02") Thanks,
  3. Thanks @hozawa The paramter One_Week is Boolean, below the section where I'm declaring the type <parameter name="One_Week" class="java.lang.Boolean"><defaultValueExpression><![CDATA["False"]]></defaultValueExpression></parameter> I have tried the expression you suggested but I'm getting an error: The method toLowerCase() is undefined for type Boolean.
  4. Thansk for your reply @AnilSaini I'm testing using your example... same result, works on Studio but not in Server. Error message: Error evaluating expression for source text: $P{One_Week} == Boolean.TRUE ? new String("2016-07-01"):new String("2016-07-02")
  5. one more expression with the same result, it works on Studio but not in Server: new Boolean($P{One_Week}.toString()).equals("true")? new String("2016-07-01"):new String("2016-07-02")
  6. Also tried the following expresion: $P{One_Week}? new String("2016-07-01"):new String("2016-07-02") is the same problem, It's working on Studio but do not works on Server (same erros message)
  7. I have an string parameter with the following expression: $P{One_Week}.toString().equals ("true") ? new String("2016-07-01"):new String("2016-07-02") The parameter One_Week is defined as java.lang.Boolean This expression is working properly in Jasper Studio 6.2.0, however when I try to use the same report in JasperServer, I'm getting the following error: Error evaluating expression for source text: $P{One_Week}.toString().equals ("true") ? new String("2016-07-01"):new String("2016-07-02") java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean Any idea why this works properly in studio but is not working on server? Thanks in advance.
  8. below the answer to my question: 1. In studio, go to Repository Explorer, navigate to the specific project, select main.jrxml file, using right button select Properties 2. Go to Resource Editor Tab 3. Copy Parent Folder contain 4. In Studio, go the main report and all sub reports, replace the sub report Expression using the value from Parent Folder Ex. Replace this value: "Reports/AgentsPerformance/Sub_AgentsPerformaceSummary.jrxml" With the following value: "repo:/Reports/AgentsPerformance/AgentsPerformance_files/Sub_AgentsPerformaceSummary.jrxml" 5. Save the main report and sub reports 6. Compile all the reports modified 7. Publish Main report 8. In studio, go to Repository Explorer, select the folder where is the specific project and using right button select option New 9. Select JRxml option 10. Type the sub report name to aggregate to the specific project. Click Next 11. Select option Upload From Workspace 12. Select the sub report from workspace list 13. Select Finish 14. Repeat steps 8 to 12 for each sub report existing (in the main report and also in sub reports called by other sub reports) NOTE: Once modified the sub report Expression, the report won’t run in Studio, will be necessary to restore the original Expression to execute the report in Studio.
  9. I have a master report with many sub-reports, from sub reports, I’m calling another sub reports, basically I have three levels of reports, like the example below: Master Report Sub Report 1 Sub Report 2 Sub Report 2.1 Sun Report 3 In Studio, the report is able to call all the sub reports and get all the information without issue. My problem is when I’m moving this report to Jasper Server. From Jasper Server, I’m getting this error: Error Message net.sf.jasperreports.engine.JRException: Resource not found at: Paltel/AgentsPerformance/Sub_AgentsPerformaceByUserDomain.jasper. This error is in reference to the Sub Report 2.1 (IN RED COLOR) I have tried to publish the report using repo: location and also form Server add the report .jrxml file as resources into the specific location, however is not working. any idea how to fix this issue will be highly appreciate.
×
×
  • Create New...