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

Downloads

Everything posted by yama818

  1. I have two ideas. However, I am not sure if they can meet your requirements. I would be happy to give you some ideas. 1. Log in with REST_API in advance. https://community.jaspersoft.com/documentation/tibco-jasperreports-server-rest-api-reference/v790/authentication --> The login Service After this, you should be able to output PDF using only this URL. http://localhost:8080/jasperserver/rest_v2/reports/reports/MA032.pdf?AMB=yyyy 2. Use Token-based Authentication. https://community.jaspersoft.com/documentation/tibco-jasperreports-server-authentication-cookbook/v790/token-based-authentication In this method, passwords are not required in the request because pre-authentication is assumed. The user can be passed in the request header and will not appear in the URL. The simplest parameter is 'pp=u=user', where ' user' specifies the JRS login user. Logout can also be done via the REST_API. However, the method of firing may be problematic. https://community.jaspersoft.com/documentation/tibco-jasperreports-server-rest-api-reference/v790/authentication --> Logout After that, there seems to be a way to not have user IDs in the first place. https://community.jaspersoft.com/wiki/allow-anonymous-access-reports
  2. For example, one solution is to preview the data after specifying parameters during preview. 1. Write SQL with parameters in the dataset. 2. Press the 'Refresh Preview Data' button in the data preview tab. --> Zero case. 3. Execute the parameters in the Preview tab. 4. Press the 'Refresh Preview Data' button in the Data Preview tab of the dataset again. --> Data will be displayed.
  3. I have not tried this, but the following manual may be helpful. https://community.jaspersoft.com/documentation/tibco-jasperreports-server-rest-api-reference/v790/inputcontrols-service#Setting_Input_Control_Values  --> Setting Input Control Values
  4. The following YouTube may be helpful in setting up group control. For example, the output can look like this
  5. The use of profile attributes for each user may be helpful. Attributes in Data Source Definitions https://community.jaspersoft.com/documentation/tibco-jasperreports-server-administrator-guide/v601/attributes-data-source-definitions
  6. The following links may be helpful * Manual https://community.jaspersoft.com/documentation/tibco-jaspersoft-studio-user-guide/v611/using-csv-data-sources * YouTube * How to upload the data adapter to the server https://community.jaspersoft.com/questions/1024001/how-do-i-add-csv-datasource-japser-server * Reference preview
  7. The only way I know of is the following operation 'NewReport4.jrxml' as an example. 1. Create a new report in Studio. Name it 'NewReport4.jrxml'. 2. Open the Source tab in the center of the Studio screen. 3. Copy and paste the contents of the obtained 'NewReport4.jrxml' into a text-based file and save it. 4. Upload the file to the Server.
  8. Simply put, I think it can be described by a ternary operator. $V{carritoreceibos_vR_1}==0?0:$V{carritoreceibos_vR_1}*$F{usuariosservicio_recibosVencidos}[/code]But your requirement is to change the value of 'usuariosservicio_recibosVencidos' itself? If so, it must be written in the SQL for data retrieval. However, I don't think we can use $V{carritoreceibos_vR_1} within the SQL.
  9. If you can provide 'specifics of the changes you made' and 'specifics of how you uploaded to the server', we might notice something. Then you can check 'jasperserver.log' and search for 'UID: 2791a415-e4b9-4b23-9181-dc77eb8898b4' to see if there are any hints in the log near here. https://community.jaspersoft.com/documentation/tibco-jasperreports-server-community-project-installation-guide/v780/jasperreports-0
  10. The decimal point can be displayed to two digits by specifying the following property options. tooltip.valueDecimals=2 Editing the integer portion is no idea.
  11. I tried to mimic your CASE statement and it worked as expected. select * from test.t1where prod = case when'$P!{SIZE}' = 'P1' then 'P01' else 'P99' end[/code] My version of Jaspersoft Studio is 6.18.1. I used MySQL 8.0 as my database. It might be faster to debug by creating a very simple report to isolate the problem. By the way, I was a little concerned that the parameter 'SIZE' is not present in your jxml source.
  12. It depends on the version of JaspersoftCommunityServer you are using, but even if it is the latest v8.0, the documentation suggests that JDK17 is not supported. https://community.jaspersoft.com/documentation/v8-v80-v800/tibco-jaspersoft-platform-support
  13. I can't give you specific advice, but you may be able to achieve this with the use of a scriptlet. * Manual https://community.jaspersoft.com/documentation/ireport-ultimate-guide  --> CHAPTER 18 SCRIPTLETS * blog https://community.jaspersoft.com/blog/all-you-want-know-about-scriptlets
  14. My experience is that the sticky session settings are missing. (I forget if there was a 401 error, but it worked fine for one unit only.) This is an example configuration when the load balancer is Apache HTTP Server. https://community.jaspersoft.com/documentation/tibco-jasperreports-server-ultimate-guide/v790/load-balancer-configuration --> workers.properties --> worker.loadbalancer.sticky_session=1
  15. The following manual may be helpful in adding decorations to reports created from ad hoc views. https://community.jaspersoft.com/documentation/tibco-jasperreports-server-ultimate-guide/v790/report-viewer-and-conditional-text
  16. I hope you find this article useful. How to prevent decimals from showing in an ad hoc chart https://community.jaspersoft.com/wiki/how-prevent-decimals-showing-ad-hoc-chart * Setting example tooltip.valueDecimals=8
  17. I haven't tried it, but the following article may be helpful. https://community.jaspersoft.com/wiki/how-pass-report-parameter-values-url-multi-select-list-input-control <reportParameter name="skillList"> <value>java</value> <value>maven</value> </reportParameter>[/code]↓ <reportParameter name="skillList"> <value>java</value> </reportParameter> <reportParameter name="skillList"> <value>maven</value> </reportParameter>[/code]
  18. This is also not ideal, but I think you can get it by referring directly to the repository DB data. This is not a guarantee of perfection, so use it at your own risk. (SQL is for PostgreSQL). SELECT r.label ,concat(f.uri,'/',r.name) as path ,f.uri as parent_folder ,r.name ,r.descriptionFROM jiresource rJOIN jiresourcefolder f ON f.id = r.parent_folderWHERE r.resourceType like '%ReportUnit%';[/code]
  19. My last reply was wrong. This did not fulfill your requirement. I'm very sorry. And after that, I tried many things by trial and error. But unfortunately I could not get 'v_check' properly. Sorry for not being able to help you.
  20. 1. Prepare the image for CheckOn. 2. Prepare the CheckOff image. 3. Place the image component. 4. Set an expression in Expression of the image component. *How to write the expression $F{XVI-Etu : 05}== Yes ? Checkbox checked URL of the image: Checkbox unchecked URL of the image *Example of an expression $F{XVI_Etu}.equals("05")?"https://4.bp.blogspot.com/-Gob19MXY9gM/UQJe7kIOrcI/AAAAAAAALJU/SemkME2AjZ8/s1600/checkbox_checked.png":"https://1.bp.blogspot.com/-PdZAsi0OTDY/UQJe7noA9mI/AAAAAAAALJQ/lYqZkPmrZNQ/s1600/checkbox_unchecked.png"
  21. If your requirement is not to display the group header itself when there is no data, then you can control it more easily. Set 'Print When Exception' to '$V{COLUMN_COUNT} > 0'.
  22. I can't see the jrxml file, so I'm guessing. It is possible that the calculation timing of 'Variable_1' and the comparison timing are out of sync. Changing the 'ResetType' of 'Variable_1' may help.
  23. I think it is better to use the 'Image' component instead of the 'Text' component. <image> <reportElement x="120" y="20" width="50" height="50" uuid="f05b77ee-c791-4436-9e43-3d59b6bd45a2"/> <imageExpression><![CDATA[$F{receiverIdType}.intValue()==1? "http://localhost:8080/assets/images/checkbox_full.png" : "http://localhost:8080/assets/images/checkbox_empty.png"]]></imageExpression> </image>
  24. It is possible to embed Excel formulas by using the property 'net.sf.jasperreports.export.xls.formula'. http://jasperreports.sourceforge.net/config.reference.html#net.sf.jasperreports.export.xls.formula Ex.) net.sf.jasperreports.export.xls.formula="=A1*0.5" However, we had to be creative to meet your requirements. That is because it is difficult to make the referenced cell in the formula variable, like 'A1' or 'A2'. So, I thought I could solve the problem by devising a way to write the formula. Ex.) net.sf.jasperreports.export.xls.formula="=OFFSET(INDIRECT(ADDRESS(ROW(),COLUMN())), 0, -1)*0.5" This is an image of the result displayed in Excel.
  25. // //About the connection settings for the data source // I think the JDBC URL has the following syntax jdbc:mysql://(hosyname or IPadress):(port)/(databasename) *For example, my connection information URL : jdbc:mysql://192.168.1.44:3306/test USER : myuser *Your connection information URL : jdbc:mysql://nofrg.eu/gsf650s_nofrG USER : gsf650s_vlks The part that concerns me is the following. *There is no port number listed. // //About the registered user information of MySQL // select user,host from mysql.user; *For example, my connection information. # user, host 'myuser', 'localhost' 'myuser', '%' What are the registered users in your environment? Are there any users that look like the following? # user, host 'gsf650s_vlks','212.22.33.9' 'gsf650s_vlks','%'
×
×
  • Create New...