Jump to content
Changes to the Jaspersoft community edition download ×

erikmarbad

Members
  • Posts

    51
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

erikmarbad's Achievements

  1. Hello, I already do the name + value part with the following instruction: atributos.put(new JSONObject().put("name", "kokoko").put("value","yoyoyo"));
  2. I am trying to add attributes to a user via rest_v2, I have managed to add the roles of this user, but his attributes have not, any help on why the following does not work for the attributes? JSONArray roles = new JSONArray(); JSONArray atributos = new JSONArray(); roles.put(new JSONObject().put("name", "ROLE_USER").put("name", "ROLE_PRUEBA")); //Solo para crear el usuario atributos.put(new JSONObject().put("name", "kokoko").put("value","yoyoyo")); JSONObject jsonBodyInfo = new JSONObject(); try { //jsonBodyInfo.getJSONObject(user).remove(user); Para eliminar un usuario (Se ignora lo demas) jsonBodyInfo.put("fullName", user); jsonBodyInfo.put("enabled", enabled); jsonBodyInfo.put("password", pwd); jsonBodyInfo.put("roles", roles); jsonBodyInfo.put("attribute", atributos); } catch (JSONException e) { }
  3. What version do you use and what changes did you make to the program after installing it?
  4. This problem can be solved in different ways but it will depend on how your report is made, for example, a way would be following the example offered by the documentation: https://community.jaspersoft.com/documentation/tibco-jaspersoft-studio-user-guide/v790/creating-new-report Although the solution of the query is useful, it is always good to know other alternatives (Generally all problems of this style are due to a bad organization of the report) because a query does not always fix the problem.
  5. The case is the following, there is a user who is not doing anything on the server, I as an administrator, to avoid losing memory in vain, I want to forcefully close the session, is there any way to achieve this?
  6. The idea is to hide everything that the menu contains (in fact, that section does not even appear) for all users except for the administrator
  7. I have the following doubt, how recommendable it is to use a global user so that all the people in the company execute a report, I ask this because I am using rest_v2 to generate reports, the problem is in the logoff, since although only run the report the user remains in session until his session on the server expires, so it occurred to me to keep a single user in session 24/7 and that with that user everyone executes their reports, this is a good or bad practice ?
  8. I'm following this person's tutorial to implement token usage in JasperReports Server: https://github.com/mehulkatara/Jasper-Token-based-Authentication/tree/master/With%20encryption%20mechanism My problem is how to modify the .class file, I leave a post I made on stackoverflow looking for a solution on this. https://stackoverflow.com/questions/72650201/update-the-class-file-of-an-exported-project-in-eclipse How did you do to achieve this? I am in the process of putting the jar cipher in the lib folder, but for that I need to modify the above, I appreciate an answer on this.
  9. The case is as follows: The company has a web portal in which Jasper reports are currently generated, for certain reasons it has been decided to use JasperReports Server (8.0.0 community edition) to generate reports, so as not to make an abrupt change between the web portal and JasperReports Server It has been decided to establish a joint work, that is, in the web portal the parameters or input controls of the report will be entered, then this information is sent to Jasper Server to subsequently generate the pdf or excel, the way in which we send the information is through a URL like the following: http://jasperadmin:jasperadmin@localhost:8080/jasperserver/rest_v2/reports/reports/MA032.pdf?AMB=yyyy What we do is build the url dynamically, we successfully bring the report in question with the correct information, we still look for a way to hide the username and password. The problem lies in making the user's session close immediately after the report is executed because the user remains in the session after executing the report, for this we have not found a solution in this regard, so we have thought of 2 alternatives, the first is shorten the time of inactivity of a user on the server, so that, for example, if 2 minutes pass after executing the report, it will be later removed from the server, and the second is to maintain one user per area for an indefinite time, that is, each area in the company will have a username and password, so that the users belonging to each area when generating the reports will use the credentials of their respective area . How good are these solutions?
  10. I am sending the credentials of a user via Rest_v2 with the following link to run a report, after running the report in theory the user session should be closed to release resources but I don't know how to do it, any help on this? http://user:user@localhost:8080/jasperserver/rest_v2/reports/reports/MA032.pdf?AMB=yyyy
  11. I am using the community version of JasperReports Server 8.0.0, and I am calling a jasperserver report from an external application, the problem is that to call the report I must pass the credentials of a user and these are VISIBLE, I need to make them not and I have seen and browsed many pages and videos on the internet but either they do not provide the source code or they have errors, in addition, the documentation in this aspect is poor, so I would like a detailed answer that includes a precise description of everything, if it includes the files to which it refers would also be better, it doesn't matter if it is to hide, encrypt or use tokens in the credentials, although I am asking too much, when looking for a solution I realized that this problem is more common than it seems , so this would benefit more than one person. I greatly appreciate the reply in advance.
  12. Ok since the problem occurs as soon as you click on the report, possibly the problem is in one of these aspects: - SQL code - Routes - Means - Input control mapping error Verify that the SQL code is valid for JRS, you can test this with other reports you have on the server and see if the clauses you place work or not. Check that all the paths are correct, I still have a hard time understanding why you don't have the images in the Images folder. Verify that all the resources that will be used in the report are in the report, you can find this out by selecting the report, clicking on edit and then on controls and resources. If at the time of uploading the report I assign those parameters to existing input controls on the server, check that they have the same ID.
  13. If you are going to make a list, you must do it from JRS in the input controls, outside of Jaspersoft Studio this parameter will not take any value. <parameter name="Products" class="java.util.List"> <defaultValueExpression><![CDATA[new ArrayList()]]></defaultValueExpression> </parameter>
×
×
  • Create New...