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-11-30 12:33:03

aguiral
Member
Registered: 2017-11-30

Suggesting the current week number

Hello,

I would like to suggest to the user the number of current week as a default parameter.

I have tried setting the "parameter specific properties" as   ${today.format("w")} but no success.

Could you please assist ?

Thanks

Alfredo

Offline

#2 2017-11-30 16:19:47

jalbrecht
Administrator
Registered: 2016-10-21

Re: Suggesting the current week number

Hi aguiral,

try simple quotation: ${today.format('w')} for week in year or ${today.format('W')} for week in month. Check : https://docs.oracle.com/javase/7/docs/a … ormat.html for more information on format strings.

Happy formatting

jan

Offline

#3 2017-12-01 09:19:24

aguiral
Member
Registered: 2017-11-30

Re: Suggesting the current week number

Thanks a lot Jan but I'm afraid that it does not work.

Pay attention that my question is about default value for parameters (not for a filter action).

Following your suggestion I found that neither ${today.format('w')} nor using double quotes, expression is being evaluated.

Please check the appearance at this link

https://drive.google.com/file/d/1G5CV33 … sp=sharing

Thanks

Offline

Board footer

Powered by FluxBB