cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver I
Resolver I

StartsWith syntax

I am trying to create a filter in gallery using StartsWith but I am having an error with a column from my datasource (Sharepoint Library). The column "BU Scope" that i want to use is a lookup field.

 

 

When i try to use the field "BU Scope" it returns an error message like this:

 

Error.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: StartsWith syntax

Hi @karl_oliverio ,

Is the "BU Scope" column a LookUp type column in your SP Library?

 

Based on the formula that you mentioned, I think there is something wrong with it. The first argument of the StartsWith function is required to provide a Text type column. The LookUp column (Complex type column) is not supported within StartsWith function.

 

As an alternative solution, please consider take a try with the following workaround:

Set the Items property of the Gallery to following:

Filter(
         AddColumns('YourSPLibrary', "BUScopeValue", BU_x0020_Scope.Value),
         StartsWith(BUScopeValue, TextInput1_2.Text)
)

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Highlighted
Dual Super User
Dual Super User

Re: StartsWith syntax

Hi @karl_oliverio 

 

Try BU_x0020_Scope.Value since it is a lookup column

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Highlighted
Community Support
Community Support

Re: StartsWith syntax

Hi @karl_oliverio ,

Is the "BU Scope" column a LookUp type column in your SP Library?

 

Based on the formula that you mentioned, I think there is something wrong with it. The first argument of the StartsWith function is required to provide a Text type column. The LookUp column (Complex type column) is not supported within StartsWith function.

 

As an alternative solution, please consider take a try with the following workaround:

Set the Items property of the Gallery to following:

Filter(
         AddColumns('YourSPLibrary', "BUScopeValue", BU_x0020_Scope.Value),
         StartsWith(BUScopeValue, TextInput1_2.Text)
)

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Resolver I
Resolver I

Re: StartsWith syntax

Thanks @v-xida-msft it works for me. I made the field dropdown instead of textfield, now im having a problem because when the app loads, it automatically filters the gallery based on the default value on my dropdown. How can I clear the value of the dropdown on page load?

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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