Skip to main content
Answer

Modify GI Parameter to Display Weekdays Only

  • October 29, 2023
  • 3 replies
  • 105 views

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

3 replies

lauraj46
Captain II
Forum|alt.badge.img+8
  • Captain II
  • October 30, 2023

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


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • October 30, 2023

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! :)

 


lauraj46
Captain II
Forum|alt.badge.img+8
  • Captain II
  • Answer
  • October 30, 2023

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