0% found this document useful (0 votes)
20 views3 pages

Code

This document contains code for filtering a table of incidents by various fields including status, department, category, and priority level. It performs lookups to map IDs to names for each field and allows filtering by either a status name or support person name.

Uploaded by

Sushant kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views3 pages

Code

This document contains code for filtering a table of incidents by various fields including status, department, category, and priority level. It performs lookups to map IDs to names for each field and allows filtering by either a status name or support person name.

Uploaded by

Sushant kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

If(varbusinessrole="User",

If(varstatus=Blank(),
Filter(
AddColumns(
tbl_Incidents,
"tbldepartment",
LookUp(
tbl_Impact,
Impact_Id = tbl_Incidents[@Ref_Impact_Id].Value
),
"tblDepartment",
LookUp(
'Department Table',
'Department_ID ' = tbl_Incidents[@Ref_Department_Id].Value
),
"tbl_Priority_Level_add",
LookUp(
tbl_priority_level,
Priority_Level_Id = tbl_Incidents[@Ref_Priority_Level_Id].Value
),
"tblCategory",
LookUp(tbl_Incident_Category,
Incident_Category_Id=tbl_Incidents[@Ref_Category_Id].Value
),
"tblSubCategory",
LookUp(tbl_Incident_Subcategory,
Incident_Subcategory_Id=tbl_Incidents[@Ref_Subcategory_Id].Value
),

"tbl_status",
LookUp('Incident_Status Table',
'Status_ID '= tbl_Incidents[@Ref_Incident_Status].Value
)),Emp_Name=TextInput_Name.Text),

Filter(
AddColumns(
tbl_Incidents,
"tbldepartment",
LookUp(
tbl_Impact,
Impact_Id = tbl_Incidents[@Ref_Impact_Id].Value
),
"tblDepartment",
LookUp(
'Department Table',
'Department_ID ' = tbl_Incidents[@Ref_Department_Id].Value
),
"tbl_Priority_Level_add",
LookUp(
tbl_priority_level,
Priority_Level_Id = tbl_Incidents[@Ref_Priority_Level_Id].Value
),
"tblCategory",
LookUp(tbl_Incident_Category,
Incident_Category_Id=tbl_Incidents[@Ref_Category_Id].Value
),
"tblSubCategory",
LookUp(tbl_Incident_Subcategory,
Incident_Subcategory_Id=tbl_Incidents[@Ref_Subcategory_Id].Value
),

"tbl_status",
LookUp('Incident_Status Table',
'Status_ID '= tbl_Incidents[@Ref_Incident_Status].Value
)),tbl_status.Status_Name=varstatus
)),If(varstatus=Blank(),
Filter(
AddColumns(
tbl_Incidents,
"tbldepartment",
LookUp(
tbl_Impact,
Impact_Id = tbl_Incidents[@Ref_Impact_Id].Value
),
"tblDepartment",
LookUp(
'Department Table',
'Department_ID ' = tbl_Incidents[@Ref_Department_Id].Value
),
"tbl_Priority_Level_add",
LookUp(
tbl_priority_level,
Priority_Level_Id = tbl_Incidents[@Ref_Priority_Level_Id].Value
),
"tblCategory",
LookUp(tbl_Incident_Category,
Incident_Category_Id=tbl_Incidents[@Ref_Category_Id].Value
),
"tblSubCategory",
LookUp(tbl_Incident_Subcategory,
Incident_Subcategory_Id=tbl_Incidents[@Ref_Subcategory_Id].Value
),

"tbl_status",
LookUp('Incident_Status Table',
'Status_ID '= tbl_Incidents[@Ref_Incident_Status].Value
)),Support_Person=Label4_6.Text),

Filter(
AddColumns(
tbl_Incidents,
"tbldepartment",
LookUp(
tbl_Impact,
Impact_Id = tbl_Incidents[@Ref_Impact_Id].Value
),
"tblDepartment",
LookUp(
'Department Table',
'Department_ID ' = tbl_Incidents[@Ref_Department_Id].Value
),
"tbl_Priority_Level_add",
LookUp(
tbl_priority_level,
Priority_Level_Id = tbl_Incidents[@Ref_Priority_Level_Id].Value
),
"tblCategory",
LookUp(tbl_Incident_Category,
Incident_Category_Id=tbl_Incidents[@Ref_Category_Id].Value
),
"tblSubCategory",
LookUp(tbl_Incident_Subcategory,
Incident_Subcategory_Id=tbl_Incidents[@Ref_Subcategory_Id].Value
),

"tbl_status",
LookUp('Incident_Status Table',
'Status_ID '= tbl_Incidents[@Ref_Incident_Status].Value
)),tbl_status.Status_Name=varstatus
))
)

You might also like