DataTime user filter

Hi 

i am trying to filter the createdOn filed with both data and time 

Example : I need to get data from 16-04-2024 1:00AM to 16-04-2024 2;00AM

can any one help me how to implement this ?

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to Vattikundala Dinesh

    hi  AFAIK, you cannot show time in record date range user filter, you need add manually date time field and pass your value and filter your query data, based on the data time given . Please find the example below code for reference

    a!localVariables(
      local!startDte,
      local!endDte,
      
     {
     
      a!dateTimeField(label: "start",value: local!startDte,saveInto: local!startDte),
      a!dateTimeField(label: "end",value: local!endDte,saveInto: local!endDte),
      
      a!gridField(
        data: :/*your query rule*/(startDate: local!startDte,endDate: local!endDte).data,
        columns: {
          a!gridColumn(
            label: "col1",
            value: fv!row.id
          ),
          a!gridColumn(
            label: "col2",
            value: fv!row.data
          ),
          a!gridColumn(
            label: "col3",
            value: fv!row.date
          )
        }
      )
      
      }
      )

Children
No Data