Announcement

Migration of this forum

Dear users of this forum,

we are pleased to inform you that we will be updating the software behind this forum in the near future.

Existing posts, users and categories will remain untouched.

Important:

  • Each user will need to reset their password.
  • Please select "I forgot my password".
  • Enter the email address you used to register in this forum.
  • You will receive an email with a link to set a new password.
  • Please choose a new (secure) password and confirm the process.

We will keep you informed in the pinned thread.

Kind regards,
Your ReportServer Team


Migration des Forums

Liebe Nutzer dieses Forums,

wir freuen uns, euch mitteilen zu können, dass wir in naher Zukunft die Software hinter diesem Forum aktualisieren werden.

Existierende Beiträge, Nutzer und Kategorien bleiben weiterhin bestehen!

Wichtig:

  • Jeder Nutzer muss sein Passwort neu vergeben.
  • Wählt dazu einfach "Ich habe mein Passwort vergessen".
  • Gebt die E-Mail-Adresse ein, mit der ihr registriert seid.
  • Ihr erhaltet eine E-Mail mit einem Link zur Passwortvergabe.
  • Bitte wählt ein neues (sicheres) Passwort und bestätigt den Vorgang.

Wir halten euch im angepinnten Beitrag auf dem Laufenden!

Mit vielen Grüßen
Euer ReportServer Team

#1 2017-02-08 14:01:08

wonky
Member
Registered: 2016-03-01

Report Configuration via URL

We are trying to execute reports like this : http://reportserverurl/reportserver/reportserver/httpauthexport?id=1234&user=asc&apikey=x2ex&format=pdf&download=false&p_1=1&p_2=2&p_3=3

I would like to allow users the freedom to filter or sort any field as they wish.  Using JRXML, we can parse the field list and the data types in order to populate the appropriate controls, so don't worry about that.

Is there ANY workaround to being able to pass an arbitrary query via the URL?  Possibly, including sorting and grouping?

I am actually considering that we might construct the query, and create a new report or report variant by writing the modified JRXML back to the database, then execute that.

At http://community.jaspersoft.com/wiki/ja … y-tutorial - "There are two flavours of the fill methods in this façade class. Some receive a java.sql.Connection object as the third parameter, and the others receive a JRDataSource object instead."  and "Sometimes is useful to use parameters to dynamically modify portions of the SQL query or to pass the entire SQL query as a parameter to the report filling routines. In such a case, the syntax differs a little, like in the following example: SELECT * FROM Orders ORDER BY $P!{OrderByClause}" - suggest that there is hope for more freeform report configuration.

Last edited by wonky (2017-02-08 14:29:03)

Offline

Board footer

Powered by FluxBB