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

yama818

Members
  • Posts

    173
  • 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

Posts posted by yama818

  1. I was able to create a layout that is very close.
    The instructions on how to create it are very complicated, so I will just show you the key points.

    * In the Crosstabulation Wizard, select all the items you want to display.
      In your example, 'Other Date' and 'SameData' are selected as 'Row Items'.
    * The automatically created 'Other Date' and 'SameData' text fields will be deleted. The column width is also set to '0px'.
    * Delete the text fields in the automatically created grand total.
    * Create a new text field to display 'Other Date' and 'SameData' in the grand total.
    * I will omit the detailed explanation, but please note that the 'Layouts' of each item must be changed to 'Free Layout' in order to be placed properly.

    The concept is summarized as follows.
    * Create a cross tabulation table using the wizard as usual.
    * Delete the row items that are created by default and rearrange them in the total tally area.

     

    * Design Image
    w20220917_crosstab_design_1.png.5d8864576ae05c66a75631bbd5d80136.png

    w20220917_crosstab_design_2.png.b8b6d88da3f2a00467b684cd72f74c36.png


    * Preview Image
    w20220917_crosstab_preview.png.56a3771aa69ca59cc71b9b3c4f43a508.png

     

    I hope this will be helpful to you.

     

     

  2. The '?' in the log means as per lucianc's answer.

    I agree with jgust's proposed solution idea.

    My other points I noticed are the following.

    There is area where the use of $P{xxxxxxx} and $P!{xxxxxxx} seems incorrect.
    The following manual is helpful in explaining the difference in use.
    https://community.jaspersoft.com/documentation/tibco-jaspersoft-studio-user-guide/v790/using-parameters-queries
      --> Using Parameters in a SQL Query

    For example, in your SQL, the part I was wondering about is this 'ORDER BY'.

    -----
    ORDER BY
        groupby, locationgroup.name, IF($P!{ckOrderByCustomer} = 1,customer.name,so.num), so.num
    -----

    It would seem correct to describe this as follows

    -----
    ORDER BY
        groupby, locationgroup.name, IF($P{ckOrderByCustomer} = 1,customer.name,so.num), so.num
    -----

    However, I do not know of any RDBMS that allows 'IF' in SQL.
    So, is it a correct SQL syntax to begin with? I doubt it. (However, this is most likely my ignorance).
    If you don't mind, please let me know what RDBMS you are using.
    I think you can use 'CASE' instead of 'IF'.

     

  3. It would be better to solve the problem in the local environment first.
    This is the case when both Server and Studio are built in the local environment.

    1.'I'm trying to copy the jrxml file' how did you operate?
      Generally, you use Studio's upload function to place reports to the Server.

      1-1.Connecting to JasperReports Server
          https://community.jaspersoft.com/documentation/tibco-jaspersoft-studio-user-guide/v790/connecting-jasperreports-server

      1-2.Publishing a Report to JasperReports Server
          https://community.jaspersoft.com/documentation/tibco-jaspersoft-studio-user-guide/v790/publishing-report-jasperreports-server


      YouTube :

    2.'in Jasper Studio I'm using Data Adapter but in Jasper Server I can only find Data Sources instead.' is correct.
       Studio --> Data Adapter https://community.jaspersoft.com/documentation/tibco-jaspersoft-studio-user-guide/v790/data-adapters
       Server --> Data Sources https://community.jaspersoft.com/documentation/tibco-jasperreports-server-administrator-guide/v790/data-sources

    3.'Then if my report is using a local Data Adapter (in xml) should I also bring it to the server?' is unnecessary.
       Just having 'Data Sources' is sufficient. (but may be necessary for advanced usage).

    4.'Then if my report taking in parameters should I create input controls?'is depends on the situation.
       Basically, they are created together when a Report is uploaded from Studio to the Server.
       After that, if you need to edit the input controls to incorporate SQL, etc., you will need to edit the input controls after uploading.

     

    The next step is to solve the remote environment problem.
    As you have already recognized, it is most likely affected by the network configuration.
    If it were me, I would investigate where the cause is as follows
    1. Issue a ping from the local PC to the server IP to see if a connection can be made (but it will fail if the Windows Server does not allow pings)

    2. Check if you can connect to the server IP from the local PC by specifying the port.
      If the local PC is Windows, run 'Test-NetConnection server_ip_address -Port 8081' in PowerShell.

    3. Check if you can connect to the server's tomcat from your local PC (for example in your environment, http://server_ip_address:8081/)

     

  4. It is possible to display the label on all pages by placing the label component in the 'Page Header' band or 'Page Footer'.
    However, if the number of pages is not fixed, it does not seem easy to control that only the last page is not displayed.
    I have not found a solution.


    * Preview
    w20220907_preview1.png.3faf45000921dfbe6cb72b8031c5ad32.png
    w20220907_preview2.png.3ee1bdd7f8fe632c393aebd0a1fb2dab.png
    w20220907_preview3.png.620c5b949514977e1df704c82b9a2d60.png

     

    * Design
    w20220907_design.png.a8ce97dc310a706ff94982dd05f0d1c6.png

     

     

     

  5. I know this is not a smart solution, but it could be accomplished by using a wrist component for the summary band.

    * Preview
    w20220903_preview.png.1380f62fa156f4371a7b17050112cf4e.png


    * Design
    w20220903_design.png.de7310fb077a146b06e741fff0e7bfb9.png

     

    * SQL
    To use the list component, a sub-dataset is required.
    The SQL for this sub-dataset should be written as follows

    select class,sum(animalqty) as classqtyfrom test.t27group by class

    w20220903_previewdata.png.c797353254a97ae9eeefd3b490595f0a.png

     

  6. I am using MySQL and was able to achieve this with the second method.

    I have changed your SQL idea a bit.
    The actual test SQL is below.
    (you may need to rewrite it for MSSQL)

    SELECT * FROM test.t26WHERE minesite = $P{minesite}ANDCASEWHEN $P{typeOfcertificate} is nullTHEN   1=1ELSE  typeOfcertificate = $P{typeOfcertificate}END


    * Case1 (typeOfcertificate is not null)

    w20220902_preview1.png.6863f0b5afa4d5c057ae562952df0826.png


    * Case2 (typeOfcertificate is null)

    w20220902_preview2.png.5106edbed42a5f7e48d1fd11857deaee.png

     

     

  7. I will need the following information to assist you going forward.

    * Current report display results (ScreenShot)
    * Expected report display results (handwritten image)
    * The current *.jrxml file
    * Sample data obtained by following the steps at the following site
      https://community.jaspersoft.com/wiki/create-mock-or-sample-query-data-using-jaspersoft-studios-export-sql

    However, please understand that we may not be able to solve the problem even if you provide us with the data, and we may not be able to reply immediately.

     

  8. If you are good with SQL, we may be able to solve this in SQL.
    I have written an example below, but the results are not guaranteed and should be rewritten to suit your requirements.
    Also, keep in mind that you can expect poor performance with this method.

    * SQL that mimics your SQL (not actually calling the function, but assuming the return value of the function)

    SELECT func1_return,func2_return,field1,field2  FROM test.t25;

    w20220827_sql1.png.4520e17010032f8bd8015594b63f04d7.png

     

     

    * SQL I rewrote

    SELECT MAIN.func1_return,SUB.func2_return,MAIN.field1,MAIN.field2FROM test.t25 MAINLEFT JOIN (  SELECT func2_return,MAX(func1_return) AS func1_return from test.t25  GROUP BY func2_return) SUBON SUB.func1_return = MAIN.func1_return

    w20220827_sql2.png.9641b583c998f1513107a361d385cd5e.png

     

  9. I am also learning to create reports using WebAPI, and the first thing I was wondering is the following.

    * If I click on the 'Data Preview' tab > 'Refresh Preview Data' button, does the data show up?

    If the data could not be previewed, I thought there was something wrong with the data adapter settings.
    If the data could be previewed, I thought it was due to some field setting.

     

×
×
  • Create New...