Skip to main content
Answer

report designer - filter statement

  • March 15, 2023
  • 4 replies
  • 135 views

Forum|alt.badge.img+1

Hi all,

what do I put in my filter condition to get the results of task created by this createdbyID?

Say I only have this CRActivity table, I have nothing in relationships or parameters.

Thank you!

Best answer by aaghaei

Your best bet is to Add AccessInfo to the report Tables and in the report Relationships

 join 

CRActivity-Inner-AccessInfo

on

CRActivity.CreatedByID-Equal-AccessInfo.UserID

Considering AccessInfo always has ONLY the CURRENT user info, by joining it with CRActivity, automatically report will filter those records created by the current user.

4 replies

Forum|alt.badge.img+1
  • Author
  • Semi-Pro II
  • March 16, 2023

I managed to get the logged in username which is the highlighted, so what I want in filter is to show the task only if username is equal to the names below which are the owners


Forum|alt.badge.img+1
  • Author
  • Semi-Pro II
  • March 16, 2023

 


Jennifer Douglas
Varsity I
Forum|alt.badge.img+1

This answer may be too simplistic, but have you tried using an or statement? 

“DisplayName” Equals “CRActivity.Owner” OR “DisplayName” Equals “LoginTracer.Username”


aaghaei
Captain II
Forum|alt.badge.img+10
  • Captain II
  • Answer
  • March 18, 2023

Your best bet is to Add AccessInfo to the report Tables and in the report Relationships

 join 

CRActivity-Inner-AccessInfo

on

CRActivity.CreatedByID-Equal-AccessInfo.UserID

Considering AccessInfo always has ONLY the CURRENT user info, by joining it with CRActivity, automatically report will filter those records created by the current user.