Announcements
In my app i have a gallery with dropdown filters and search box. and I have this function (snip below)
In the gallery list I need to show all the status except for Inactive/Ineligible. but in this function 'PS_Status.Value <>' is giving me a delegation warning. any advice of work around?
<>
PS_Status.Value <> "Inactive/Ineligible"
.
RemoveIf(non-delegable, I assume works for smaller datasets).
RemoveIf( Filter( SpecialtyMedsTracker, //--Your existing StartsWith and dropdown filter conditions here StartsWith(Resident, srchBx.Value) || StartsWith(PatID, srchBx.Value) || // ... other StartsWith conditions ... (IsBlank(cb_psStat.Selected.Value) || cb_psStat.Selected.Value = PS_Status.Value) && (IsBlank(cb_ospStat.Selected.Value) || cb_ospStat.Selected.Value = OSPStatus.Value) ), PS_Status.Value = "Inactive/Ineligible" )
Approach-3:
Bit tricky way can be using a StartsWith or = in place of <>! Then, instead of excluding "Inactive/Ineligible", include only the statuses you want by explicitly filtering:
Filter( SpecialtyMedsTracker, PS_Status.Value = "Active" || PS_Status.Value = "Pending" // list all allowed statuses && // other conditions )
I assume if the number of allowed statuses is small and known - this is delegable.
Note: Our main goal will be to avoid <> for complex fields.
Sort( Filter( SpecialtyMedsTracker, ( StartsWith( Resident, srchBx.Value ) || StartsWith( PatID, srchBx.Value ) || StartsWith( Rx, srchBx.Value ) || StartsWith( 'Ro#', srchBx.Value ) || StartsWith( MOP, srchBx.Value ) || StartsWith( FacID, srchBx.Value ) || StartsWith( NDC, srchBx.Value ) || 5tartsWith( Drug, srchBx.Value ) || StartsWith( Title, srchBx.Value ) ), Len(cb_psStat.Selected.Value) = 0 || cb_psStat.Selected.Value = PSStatus.Value, Len(cb_ospStat.Selected.Value) = 0 || cb_osp5tat.Selected.Value = OSPStatus.Value, (PSStatus.Value = "Active" || PSStatus.Value = "Eligible" || PSStatus.Value = "Whatever") ), ReportDate,
Sort( Filter( SpecialtyMedsTracker,
(
StartsWith( Resident, srchBx.Value ) || StartsWith( PatID, srchBx.Value ) || StartsWith( Rx, srchBx.Value ) || StartsWith( 'Ro#', srchBx.Value ) || StartsWith( MOP, srchBx.Value ) || StartsWith( FacID, srchBx.Value ) || StartsWith( NDC, srchBx.Value ) || 5tartsWith( Drug, srchBx.Value ) || StartsWith( Title, srchBx.Value )
)
, Len(cb_psStat.Selected.Value) = 0 || cb_psStat.Selected.Value = PSStatus.Value, Len(cb_ospStat.Selected.Value) = 0 || cb_osp5tat.Selected.Value = OSPStatus.Value,
PSStatus.Value = "Active" || PSStatus.Value = "Eligible" || PSStatus.Value = "Whatever"
), ReportDate,
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 105 Most Valuable Professional
Haque 77
VASANTH KUMAR BALMADI 70