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

Filter Galery with 3 text box

Hello,

I would like to make a search filter with 3 text box.
This is a client list
The search columns are as follows:
-Customer name
-Langage_Client
-Systeme_Client

How can I impute the 3 text boxes in my gallery item?

Screen in PJ

thank you very muchAnnotation 2019-10-22 183708.png

 

 
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Filter Galery with 3 text box

Hi @Glaga ,

Do you want to filter your Gallery Items based on the these search filter columns?

Could you please share a bit more about your issue?

Further, Are the Nom_CL and tri_CL both columns in your CLIENT_CL data source?

 

Based on the formula you provided, I think there is something wrong with it. I have made a test on my side, please consider modify your formula as below:

If(
Check_mesCLIENTS.Value=true; SortByColumns(
Filter(
CLIENT_CL;
RechercheBOX_CL.Text in Nom_CL;
RechercheBox_Langage_CL.Text in LangageDev_CL;
RechercheBox_System_CL.Text in SystemeInfra_CL;
Responsable_CL=User().FullName;
ETAT_filtre="ALL" || Etat_CL = ETAT_filtre
);
Nom_CL; SortOrder.Descending;
tri_CL; SortOrder.Descending
);
SortByColumns(
Filter(
CLIENT_CL;
Or(
RechercheBox_System_CL.Text in SystemeInfra_CL;
And(
RechercheBOX_CL.Text in Nom_CL;
ETAT_filtre="ALL" || Etat_CL=ETAT_filtre;
RechercheBox_Langage_CL.Text in LangageDev_CL
)
)
);
Nom_CL; SortOrder.Descending;
tri_CL; SortOrder.Descending
)
)

Note: I assume that the Nom_CL and tri_CL both columns in your CLIENT_CL data source.

 

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

 

More details about the SortByColumn function in PowerApps, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-sort

 

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

2 REPLIES 2
Glaga
Frequent Visitor

Re: Filter Galery with 3 text box

Mon code : 

 

If(Check_mesCLIENTS.Value=true;
Sort(Filter(CLIENT_CL; And(RechercheBOX_CL.Text in Nom_CL;RechercheBox_Langage_CL.Text in LangageDev_CL;RechercheBox_System_CL.Text in SystemeInfra_CLResponsable_CL=User().FullName; Or(ETAT_filtre="ALL"; Etat_CL=ETAT_filtre)));Nom_CL;tri_CL);Sort(Filter(CLIENT_CL;Or(RechercheBox_System_CL.Text in SystemeInfra_CL ;And(RechercheBOX_CL.Text in Nom_CL; Or(ETAT_filtre="ALL"; Etat_CL=ETAT_filtre);RechercheBox_Langage_CL.Text in LangageDev_CL)));Nom_CL;tri_CL))

Community Support
Community Support

Re: Filter Galery with 3 text box

Hi @Glaga ,

Do you want to filter your Gallery Items based on the these search filter columns?

Could you please share a bit more about your issue?

Further, Are the Nom_CL and tri_CL both columns in your CLIENT_CL data source?

 

Based on the formula you provided, I think there is something wrong with it. I have made a test on my side, please consider modify your formula as below:

If(
Check_mesCLIENTS.Value=true; SortByColumns(
Filter(
CLIENT_CL;
RechercheBOX_CL.Text in Nom_CL;
RechercheBox_Langage_CL.Text in LangageDev_CL;
RechercheBox_System_CL.Text in SystemeInfra_CL;
Responsable_CL=User().FullName;
ETAT_filtre="ALL" || Etat_CL = ETAT_filtre
);
Nom_CL; SortOrder.Descending;
tri_CL; SortOrder.Descending
);
SortByColumns(
Filter(
CLIENT_CL;
Or(
RechercheBox_System_CL.Text in SystemeInfra_CL;
And(
RechercheBOX_CL.Text in Nom_CL;
ETAT_filtre="ALL" || Etat_CL=ETAT_filtre;
RechercheBox_Langage_CL.Text in LangageDev_CL
)
)
);
Nom_CL; SortOrder.Descending;
tri_CL; SortOrder.Descending
)
)

Note: I assume that the Nom_CL and tri_CL both columns in your CLIENT_CL data source.

 

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

 

More details about the SortByColumn function in PowerApps, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-sort

 

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

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

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