You are not logged in.
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:
We will keep you informed in the pinned thread.
Kind regards,
Your ReportServer Team
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:
Wir halten euch im angepinnten Beitrag auf dem Laufenden!
Mit vielen Grüßen
Euer ReportServer Team
Pages: 1
Hi.
Can't seem to find an solution to passing a date parameter via a URL for report inline view.
URL I use: https://reportserverIP:8080/rs/ReportServer.html#inlinereport/key:SAL_RECEIVED&p_pFrom:2016-09-01&p_pTo=2016-09-20&p_pDealercode:2033500&v:preview
Keeps giving the error of:
Failed to parse date 2016-09-01
I have tried all the other format as well (09-Sept-2016, Sept 9, 2016, etc) but with no success.
I have even set the short and long date formats in the "File Systems" local file to yyyy-MM-dd, but nothing.
Per previous post I have notices running a Java command to show the system excepted date format (which was 09 Sept 2016), but this did not work either.
Any help or direction to fix this will be appreciated.
KH
Offline
Hi,
you can specify the pattern to use in the config file datasources/parameter.cf.
<configuration>
<parameter>
<!-- ... -->
<date>
<urlpattern>yyyy-MM-dd</urlpattern>
</date>
</parameter>
</configuration>(Remember to run config reload after changing the config file.)
If no pattern is specified, then ReportServer uses the ISO-8601 pattern, i.e., yyyy-MM-ddThh:mm:ss[.sss][Z|[+-]hh:mm]
Come to think of it, if the parameter does not support time it would be more sensible, to fall back to parsing yyyy-MM-dd. Anyhow, I hope this helps.
Thomas
Offline
Thank you very much, Thomas! You are the man! That config change did the trick!
Appreciated!
KH
Offline
Note that in the fallback pattern the timezone indicator is not optional, so the simplest acceptable date is "2017-01-01T00:00:00Z" unless you modify datasources/parameter.cf.
/Stellan
Offline
Pages: 1