cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sahim
Frequent Visitor

sharepoint search function not working.

Good Morning. 

I am having a problem with the function. When i enter it. I cannot see the gallery. 

 

SortByColumns(StartsWith([@'List of Top Ducab Materials'],TextSearchBox1.Text, "Group Description","Material"),"Group Description" If(SortDescending1, Descending, Ascending))

 

My requirement is to be able to search with 3 functions. 

Group Description

Material Description

Material 

 

Also i want to link 2 galleries with each other. 

1st gallery, Group Description

2nd gallery; list of materials in group

Then details. 

How to configure it. 

 

Thanks. for your help. 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @sahim,
try this:

SortByColumns(Filter([@SampleList], StartsWith('Group Desciption', TextSearchBox1.Text)|| StartsWith(Text(Material),TextSearchBox1.Text) || StartsWith('Material Description',TextSearchBox1.Text)), "Material", If(SortDescending1, Descending, Ascending))

I have tested this and working as expected.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to help.

Regards,
Krishna
If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
KrishnaV
Business Applications MVP, Microsoft Certified Trainer
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

View solution in original post

6 REPLIES 6
KrishnaV
Super User
Super User

Hi @sahim ,

Try the below:

SortByColumns(Filter( datasource, StartsWith( textSearchBox1.text, "Group Description" ) || StartsWith( textSearchBox1.text, "Material") || StartsWith( textSearchBox1.text, "Material Description" )),If(SortDescending1, Descending, Ascending))

 
I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to help.

Regards,
Krishna
If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
KrishnaV
Business Applications MVP, Microsoft Certified Trainer
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.
sahim
Frequent Visitor

Hi,

I tried this 

SortByColumns(Filter([@'List of Top Ducab Materials'], StartsWith('Material Description', TextSearchBox1_1.Text)), "Title", If(SortDescending1, Descending, Ascending))

 

It is working, but i cannot search. 

Hi @sahim ,

 

What do you mean by I can't search? could you please elaborate more?


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to help.

Regards,
Krishna
If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
KrishnaV
Business Applications MVP, Microsoft Certified Trainer
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.
sahim
Frequent Visitor

The gallery has Title, Subtitle and Body, 

 

SortByColumns(Filter([@'List of Top Ducab Materials'], StartsWith('Material Description', TextSearchBox1_1.Text)), "Title", If(SortDescending1, Descending, Ascending))

 

With this code above, The data from sharepoint is showing in the gallery.

But when i try to search (see screenshot)

This is a valid "material"

But the search result is not showing. 

Thanks for your help. 

 

 

sahim
Frequent Visitor

Just to elaborate. 

The items function is:

SortByColumns(Filter([@'List of Top Ducab Materials'], StartsWith('Material Description',TextSearchBox1.Text)), "Material", If(SortDescending1,Ascending,Descending))

 

The gallery has 3 inputs.

Group Description - text

Material - numbers only.

Material Description -text

 

My requirement is to be able to search within all 3 inputs of gallery to narrow down the result. 

I need help to write the code that can search for all functions. 

Thanks. 

 

 

Hi @sahim,
try this:

SortByColumns(Filter([@SampleList], StartsWith('Group Desciption', TextSearchBox1.Text)|| StartsWith(Text(Material),TextSearchBox1.Text) || StartsWith('Material Description',TextSearchBox1.Text)), "Material", If(SortDescending1, Descending, Ascending))

I have tested this and working as expected.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to help.

Regards,
Krishna
If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
KrishnaV
Business Applications MVP, Microsoft Certified Trainer
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,704)