Dynamic yeat

Hi everyone. Is there a way to  select the current year or the current month and put them into a label? Like for example:

Current year : 2019

Month : March

Maybe using a specific command.

Thanks,

Francesco

Answers

  • Andrea Florio
    Andrea Florio Active Partner
    Third Anniversary 10 Comments 5 Up Votes 5 Likes

    Hi Francesco, 

    you can test this

    Selection_Ex(Entity="Entity_Name")

    Regards

    Andrea

  • Helmut Heimann
    Helmut Heimann Employee, Community Captain
    50 Answers 500 Comments 250 Likes Fourth Anniversary
    edited March 2020

    Hi Francesco Defacendis,

     

    you can achieve this using the dynamic selection in the selection screen on your day/month/year entity:

     

    image

     

    The selected member will be displayed in your label by using either @entity (e.g @Month) or @selection_ex (like Andrea Florio suggested).

     

    Kind Regards,

    Helmut

  • ok thanks both of you Andrea Florio, it worked. Is it possible to have both the year and the month in two different labels? For example: 

    Current year: 2019

    Month : March

  • Helmut Heimann
    Helmut Heimann Employee, Community Captain
    50 Answers 500 Comments 250 Likes Fourth Anniversary

    Hi Francesco Defacendis,

     

    of course, it's possible to define two or more labels for the selected entity members. Let's assume you have selected 2019 in "Year" and March in "Month". Then you can define two labels:

     

    Label A: @Year -> shows the currently selected year ("2019")

    Label B: @Month -> shows the currently selected month ("Mar.19")

     

    Both will show the members in the default way defined in the database. To change this behavior you can use @Selection_ex instead--giving you more options to define the way the members shall be displayed.

     

    Kind regards,

    Helmut

  • ok thanks a lot