Skip to main content
Solved

Modify GI Parameter to Display Weekdays Only

  • Oct 29, 2023 8:05 PM UTC
  • 3 replies
  • 167 views
  • Translate All

Forum|alt.badge.img

We have a GI that uses Kit Assembly Dates- we would like it to show the next weekday from current date. For example: for 10/27/2023 (Friday) it should show 10/30/2023 (Monday). How can we achieve this?

Below is how we have currently set up. 

@lauraj46 - Hey Laura, do you have any suggestions for this? thank you in advance!

Best answer by lauraj46

Hi @kanupindi ,

Unfortunately, the full formula editor is not available for parameters.  They do support some special constants such as @WeekStart and @WeekEnd, but I’m not sure how you could default to the next weekday.  If the user doesn’t need to change the date on the fly, maybe you could configure the next weekday formula as a “condition” filter.

Laura

View original

3 replies

lauraj46
Captain II
Forum|alt.badge.img+9
  • Captain II
  • Oct 30, 2023 1:56 AM UTC

Hi @kanupindi ,

You could try this formula:

=DateAdd(Today(), 'd', iif(DayOfWeek(Today()) >=1 and DayOfWeek(Today())<=5, 1, iif(DayOfWeek(Today())=6, 3, 2)))

Hope this helps!

Laura

Translate

Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • Oct 30, 2023 2:41 AM UTC

Hi @lauraj46, thank you so much for your swift response. I really appreciate it! I tested with the above formula, it does work when I add a new column to the GI. But the parameter default value appears blank when I use the same formula: Please advise if I missed something. thank you again! :)

 

Translate

lauraj46
Captain II
Forum|alt.badge.img+9
  • Captain II
  • Answer
  • Oct 30, 2023 2:50 AM UTC

Hi @kanupindi ,

Unfortunately, the full formula editor is not available for parameters.  They do support some special constants such as @WeekStart and @WeekEnd, but I’m not sure how you could default to the next weekday.  If the user doesn’t need to change the date on the fly, maybe you could configure the next weekday formula as a “condition” filter.

Laura

Translate