cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stapes
Post Prodigy
Post Prodigy

Can you help me to Filter this Gallery control?

I am loading my Gallery Data Source in the App OnStart:

 

 

ClearCollect(
    ellipsisMenuItems,
    {
        id: 1,
        menuLabel: "Add Photo",
        screen: PhotoCaptureScreen3,
        icon: Icon.Camera
    },
    {
        id: 2,
        menuLabel: "Add Picture",
        screen: AddPictureScreen5,
        icon: Icon.PhotosPictures
    },
    {
        id: 3,
        menuLabel: "Components",
        screen: BillOfMaterialsScreen7,
        icon: Icon.OptionsList
    },
    {
        id: 4,
        menuLabel: "Stock Calculation",
        screen: StockCalcScreen8_1,
        icon: Icon.Waffle
    }
);

 

Under certain conditions, I do not want the Components item to appear.

This Items property somehow manages to exclude ALL the rows from the gallery:

 

If(Star1.Visible, ellipsisMenuItems, Filter(ellipsisMenuItems,Not("Components" in ellipsisMenuItems.menuLabel)))

 

How do I do this correctly?

1 ACCEPTED SOLUTION

Accepted Solutions
KennethNicasens
Resolver III
Resolver III

You can do the following:

 

If(Star1.Visible, ellipsisMenuItems, Filter(ellipsisMenuItems,"Components" <> menuLabel))

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

View solution in original post

1 REPLY 1
KennethNicasens
Resolver III
Resolver III

You can do the following:

 

If(Star1.Visible, ellipsisMenuItems, Filter(ellipsisMenuItems,"Components" <> menuLabel))

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (66,877)