Skip to main content
Answer

Hi! I need to make generic inquiry which filter data of employee time card according to employee ID and date range by week ID .

  • November 3, 2023
  • 2 replies
  • 110 views

 This is the parameters and conditions I have created. But its not filter data.

<gifilter LineNbr="3" IsActive="1" Name="PeriodTo" FieldName="PMTimeActivity.weekID" DataType="string" DisplayName="To Date" IsExpression="1" ColSpan="1" Required="1" />         <gifilter LineNbr="2" IsActive="1" Name="PeriodFrom" FieldName="PMTimeActivity.weekID" DataType="string" DisplayName="From Date" IsExpression="1" ColSpan="1" Required="1" />         <gifilter LineNbr="1" IsActive="1" Name="EmployeeID" FieldName="EPEmployee.acctCD" DataType="string" DisplayName="Employee Name" IsExpression="1" ColSpan="1" Required="1" />

 

<giwhere LineNbr="2" IsActive="1" DataFieldName="PMTimeActivity.weekID" Condition="B" IsExpression="0" Value1="[PeriodFrom]" Value2="[PeriodTo]" Operation="A" />
        <giwhere LineNbr="1" IsActive="1" DataFieldName="EPEmployee.acctCD" Condition="E" IsExpression="0" Value1="[EmployeeID]" Operation="A" />

Best answer by meganfriesen37

Are you using custom weeks (it will be a checkbox on the Time and Expense Preferences screen) or not?  If you are using custom weeks then it’s a lot easier to filter by the time card weeks.  If you are using “standard” weeks it’s very difficult to filter on the dates, because they don’t seem to be really be stored in a format that’s conducive to filtering on a GI

2 replies

meganfriesen37
Captain II
Forum|alt.badge.img+12
  • Captain II
  • Answer
  • November 3, 2023

Are you using custom weeks (it will be a checkbox on the Time and Expense Preferences screen) or not?  If you are using custom weeks then it’s a lot easier to filter by the time card weeks.  If you are using “standard” weeks it’s very difficult to filter on the dates, because they don’t seem to be really be stored in a format that’s conducive to filtering on a GI


  • Author
  • Freshman I
  • December 14, 2023

@meganfriesen37 Thank you.