Skip to main content
Answer

how to add filtered by time in Generic Inquire

  • January 3, 2025
  • 6 replies
  • 88 views

Forum|alt.badge.img

The time is passed as a string. which includes date and time. i need to make a filter where i can filter the data by time.
E.g. “1/3/2025 4:49:34 PM”. 
Any idea? 

Best answer by rashmikamudalinayake10

I was able to find a solution. This is my approach,

Converted to 24-hour format and returned a Boolean value based on the difference.

6 replies

darylbowman
Captain II
Forum|alt.badge.img+15

You can get the hour, minute, and second portion of a date and time with these functions:

If you could be more specific with your use case, I may be able to suggest something more specific.


Forum|alt.badge.img

Hi ​@darylbowman
This is for use in a generic inquiry, where a user can filter records by time. I thought of using a combo box option since there are AM/PM values, but I'm not clear on how the logic would work.
Any alternative suggestions and how the logic would be like?


darylbowman
Captain II
Forum|alt.badge.img+15

Ah, I see. In that case, I’d add the CRCase table to the GI (without joining it) and add a parameter (or two) with the schema set to CRCase.ReportedDate (or it may be called Created Date). This is a field specifically designed to allow entering time. You should be able to compare other system dates to these parameters.


amitr70
Semi-Pro I
Forum|alt.badge.img
  • Semi-Pro I
  • January 7, 2025

@rashmikamudalinayake10  What kind of filter you have? Are you filtering separately on date and time or just datetime 


Forum|alt.badge.img

I was able to find a solution. This is my approach,

Converted to 24-hour format and returned a Boolean value based on the difference.


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • January 9, 2025

Thank you for sharing your solution with the community ​@rashmikamudalinayake10!