Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Current year as default selection

Hi All,

I need the current year to be automatically selected when a user opens the report. I have tried using the Document Properties > Triggers > OnOpen but that didn't work for me. Can anyone give me some pointers on how to do this? Maybe an example?

Thanks.

1 Solution

Accepted Solutions
sasikanth
Master
Master

Intead max overthere

use

maxstring([Budget Year Description])

View solution in original post

9 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Right place,

in the actions select add, then "Select in field" and write in the upper box: year (your field name)

in the lower box: =year(today())

let me know

sasikanth
Master
Master

HI ,

Please find the attachment ,

i have enabled both Document level as well as Sheet level

Not applicable
Author

Thank you for your response. For some reason, it does not work. I have attached the image of what it looks like. Can you please check? Thanks.

trigger.jpg


sasikanth
Master
Master

Hi

There field Should be

Year([Budget Year Description])

searching string is

=max(Year([Budget Year Description]))

Make sure "Year([Budget Year Description])" is your Year Field

Not applicable
Author

Hi, I worked with your example and it did not work either. Attached is the image. Any suggestions?

My data looks like FY13, FY14, FY15. Could it be because the data is not only integers?

Thanks.

trigger2.jpg

sasikanth
Master
Master

hi ,

post your sample file

sasikanth
Master
Master

Intead max overthere

use

maxstring([Budget Year Description])

alexandros17
Partner - Champion III
Partner - Champion III

IN the field write only

[Budget Year Description]

Not applicable
Author

Hi Alessandro and Sasikanth, thanks for your help. I got it working using:

Field: [Budget Year Description]

Search String: =maxstring([Budget Year Description])

It also worked with Budget Year ID.

Thanks again.