Skip to main content
Solved

Searching Dates for Tasks - 2 weeks ago


jbernardo
Hero (Partner)
Forum|alt.badge.img+13

Trying to search for all planned start dates that are 14 days old.

I can search using >TODAY but cant find out what other functions i could use to search for dates without actually using dates. Can’t use “Yesterday” or “Last Week”

 

if i do try one of those i get the following value

 

 

Best answer by AdrianEgley

@jbernardo,

 

Just seen this from last month.

Surprisingly its in the reference guide, the one I have for FSM5.7U11 is on Pg14. Look for Search Variables. But I have a Lobby that navigates to the Task screen with a pre-determined search.

Basically it loads the task screen with these in the date fields.

 

So if you were to have the created on search value have >today.AddDays(-14) that will give you the last 2 weeks of data.

 

Regards


Ady

View original
Did this topic help you find an answer to your question?

17 replies

Forum|alt.badge.img+5

Dear jbernardo, 

where are you trying to search? In the Search Menu?  Lobby? Business Rule?

Mostly you can use the SQL Possibilities.  For Lobbys there are specific Parameters that can be used. 

 

Best regards


jbernardo
Hero (Partner)
Forum|alt.badge.img+13
  • Author
  • Hero (Partner)
  • 171 replies
  • March 17, 2020

Hi @Jacqueline.Lyra 

Anytime a user is trying to search for something. In this example want to look at what was created on (2 weeks ago for example)

 

i can put >TODAY but i cant put anything else as it wants a DateTime

 


eqbstal
Superhero (Partner)
Forum|alt.badge.img+21
  • Superhero (Partner)
  • 667 replies
  • March 17, 2020

jbernardo,

Weird that that seems to be the only one reacting. However >now performs the same (most likely the current time is also part of the selection).

Sorry of being of no real help,

Steve 


JULIAN
Hero
Forum|alt.badge.img+9
  • Hero
  • 75 replies
  • March 17, 2020

Honestly not an expert in aurena or mobile but I would expect the same substitution variables from the enterprise explorer to work there. 
 

are you familiar with the substitution variables in EE? 


eqbstal
Superhero (Partner)
Forum|alt.badge.img+21
  • Superhero (Partner)
  • 667 replies
  • March 18, 2020

JULIAN,

This is an FSM question. It seems that IFS has not, yet, come to the stage that the search options are build the same way in FSM and IFS Applications (be it EE or Aurena).

Help text of FSM reveals nothing at this moment (or I missed it).

Regards,

Steve


Forum|alt.badge.img+5

try them

They are working for me in FSM 6 Update 4 but also should work in older versions.

  • TODAY
  • TOMORROW
  • YESTERDAY
  • START_OF_THIS_WEEK
  • START_OF_NEXT_WEEK
  • START_OF_LAST_WEEK
  • START_OF_THIS_MONTH
  • START_OF_NEXT_MONTH
  • START_OF_LAST_MONTH
  • START_OF_THIS_YEAR
  • START_OF_NEXT_YEAR
  • START_OF_LAST_YEAR
  • END_OF_THIS_WEEK
  • END_IF_NEXT_WEEK
  • END_OF_LAST_WEEK
  • END_OF_THIS_MONTH
  • END_OF_NEXT_MONTH
  • END_OF_LAST_MONTH
  • END_OF_THIS_YEAR
  • END_OF_NEXT_YEAR
  • END_OF_LAST_YEAR

As you mentioned that Yesterday isn’t working, it’s working in my system:


Forum|alt.badge.img+5

I tried following example:


eqbstal
Superhero (Partner)
Forum|alt.badge.img+21
  • Superhero (Partner)
  • 667 replies
  • March 18, 2020

Most likely it is version related. We are using FSM6 Update 2 and I get the following:

 


Forum|alt.badge.img+5

It could has to do also with this column definition. Try it with created


eqbstal
Superhero (Partner)
Forum|alt.badge.img+21
  • Superhero (Partner)
  • 667 replies
  • March 18, 2020

Apperently not:

Left the Planned Start blank and filled the Created field.


jbernardo
Hero (Partner)
Forum|alt.badge.img+13
  • Author
  • Hero (Partner)
  • 171 replies
  • March 24, 2020
Jacqueline.Lyra wrote:

try them

They are working for me in FSM 6 Update 4 but also should work in older versions.

  • TODAY
  • TOMORROW
  • YESTERDAY
  • START_OF_THIS_WEEK
  • START_OF_NEXT_WEEK
  • START_OF_LAST_WEEK
  • START_OF_THIS_MONTH
  • START_OF_NEXT_MONTH
  • START_OF_LAST_MONTH
  • START_OF_THIS_YEAR
  • START_OF_NEXT_YEAR
  • START_OF_LAST_YEAR
  • END_OF_THIS_WEEK
  • END_IF_NEXT_WEEK
  • END_OF_LAST_WEEK
  • END_OF_THIS_MONTH
  • END_OF_NEXT_MONTH
  • END_OF_LAST_MONTH
  • END_OF_THIS_YEAR
  • END_OF_NEXT_YEAR
  • END_OF_LAST_YEAR

As you mentioned that Yesterday isn’t working, it’s working in my system:

Unfortunately none work in FSM 5.7 :( 


jbernardo
Hero (Partner)
Forum|alt.badge.img+13
  • Author
  • Hero (Partner)
  • 171 replies
  • July 30, 2020
Jacqueline.Lyra wrote:

try them

They are working for me in FSM 6 Update 4 but also should work in older versions.

  • TODAY
  • TOMORROW
  • YESTERDAY
  • START_OF_THIS_WEEK
  • START_OF_NEXT_WEEK
  • START_OF_LAST_WEEK
  • START_OF_THIS_MONTH
  • START_OF_NEXT_MONTH
  • START_OF_LAST_MONTH
  • START_OF_THIS_YEAR
  • START_OF_NEXT_YEAR
  • START_OF_LAST_YEAR
  • END_OF_THIS_WEEK
  • END_IF_NEXT_WEEK
  • END_OF_LAST_WEEK
  • END_OF_THIS_MONTH
  • END_OF_NEXT_MONTH
  • END_OF_LAST_MONTH
  • END_OF_THIS_YEAR
  • END_OF_NEXT_YEAR
  • END_OF_LAST_YEAR

As you mentioned that Yesterday isn’t working, it’s working in my system:

we will chalk this up to an version issue. Thanks everyone!


AdrianEgley
Hero (Customer)
Forum|alt.badge.img+14
  • Hero (Customer)
  • 169 replies
  • Answer
  • September 16, 2020

@jbernardo,

 

Just seen this from last month.

Surprisingly its in the reference guide, the one I have for FSM5.7U11 is on Pg14. Look for Search Variables. But I have a Lobby that navigates to the Task screen with a pre-determined search.

Basically it loads the task screen with these in the date fields.

 

So if you were to have the created on search value have >today.AddDays(-14) that will give you the last 2 weeks of data.

 

Regards


Ady


jbernardo
Hero (Partner)
Forum|alt.badge.img+13
  • Author
  • Hero (Partner)
  • 171 replies
  • September 16, 2020
AdrianEgley wrote:

@jbernardo,

 

Just seen this from last month.

Surprisingly its in the reference guide, the one I have for FSM5.7U11 is on Pg14. Look for Search Variables. But I have a Lobby that navigates to the Task screen with a pre-determined search.

Basically it loads the task screen with these in the date fields.

 

So if you were to have the created on search value have >today.AddDays(-14) that will give you the last 2 weeks of data.

 

Regards


Ady

Yes this works! Thank you. Wish i could change this to the “Best Answer”

 

Much apprecaited!


Forum|alt.badge.img+3
  • Do Gooder (Partner)
  • 18 replies
  • September 18, 2020

<Now.AddDays(-14) is what you are looking for

 

also I include this document from Reference doc with some adaptations of my own


jbernardo
Hero (Partner)
Forum|alt.badge.img+13
  • Author
  • Hero (Partner)
  • 171 replies
  • September 18, 2020
probenbeh wrote:

<Now.AddDays(-14) is what you are looking for

 

also I include this document from Reference doc with some adaptations of my own

This is amazing and a HUGE help

thank you so much!


Phil Lamerton
Superhero (Employee)
Forum|alt.badge.img+24
  • Superhero (Employee)
  • 531 replies
  • September 21, 2020
jbernardo wrote:
AdrianEgley wrote:

@jbernardo,

 

Just seen this from last month.

Surprisingly its in the reference guide, the one I have for FSM5.7U11 is on Pg14. Look for Search Variables. But I have a Lobby that navigates to the Task screen with a pre-determined search.

Basically it loads the task screen with these in the date fields.

 

So if you were to have the created on search value have >today.AddDays(-14) that will give you the last 2 weeks of data.

 

Regards


Ady

Yes this works! Thank you. Wish i could change this to the “Best Answer”

 

Much apprecaited!

I’ll update the Best Answer for you :D 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings