cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dorinda
Super User
Super User

ForAll with Search

I have an app that has a parent/child gallery.  I need to do a search in the child.

 

I have not been able to find anything that will show the correct syntax to search a FOR ALL.  

 

This is the code on the child gallery

ForAll(
    ThisItem.Data As _item,
    Patch(
        _item,
        {
            Asset_x0020_Location: ThisItem.Asset_x0020_Location,
            Manufacturer: ThisItem.Manufacturer,
            VDC: ThisItem.VDC,
            Battery_x0020_Type: ThisItem.Battery_x0020_Type,
            Title: ThisItem.Title
        }
    )
)

Can I do a search with this ?

1 REPLY 1
Dorinda
Super User
Super User

I tried to add it this way but it is giving me a ton of errors, I cannot find anything on the correct syntax for this statement.

Search(
    AddColumns(
        Filter(
            'Station Battery Bank_1',
            IsBlank(ComboBox1_29.Selected.Station || (Substation in ComboBox1_29.SelectedItems.Station)
            ),
            "id2",
            Text(Substation)
        ),

ForAll(
    ThisItem.Data As _item,
    Patch(
        _item,
        {
            Asset_x0020_Location: ThisItem.Asset_x0020_Location,
            Manufacturer: ThisItem.Manufacturer,
            VDC: ThisItem.VDC,
            Battery_x0020_Type: ThisItem.Battery_x0020_Type,
            Title: ThisItem.Title,
            Substation: ThisItem.Substation
        }
    )
),
    TextInput6_29.Text,
    "Asset_x0020_Location",
    "Stencil",
    "SubAsset_x0020_Class",
    "SubAsset_x0020_Location",
    "Cell_x0020_Stencil",
    "Manufacturer",
    "VDC",
    "id2",
    "Battery_x0020_Type",
    "Manufacture_x0020_Date"
    ),
    "Substation",
    Ascending
)

 

Please help.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (6,055)