cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Konjic
Level: Powered On

Display message in HTML table based on YES/NO SharePoint List

I have an HTML with people. Im storing the people in a collection called Balance under EmployeeName.

In sharepoint i have a list called HR with all the people and a yes/no column. If the column is set to yes i want to display  "Card" next to Employee name.

i've tried

If( true in HR.OData__x0037_Card And EmployeeName in HR.Title, ", Card")

but this will display "Card" for everybody, even for those who have have no in sharepoint list

 

1 ACCEPTED SOLUTION

Accepted Solutions
Konjic
Level: Powered On

Re: Display message in HTML table based on YES/NO SharePoint List

I've managed to solve it.

If( EmployeeName in Filter(HR, OData__x0037_Card=1).Title  , ", Card")

instead of searching for true, false, yes or no i switched to 1 and 0. This gives me what i want.

 

Still puzzled about the if issues. I tried 

If( "***" in HR.OData__x0037_Card  , ", Card")

and returns true 

View solution in original post

4 REPLIES 4
Konjic
Level: Powered On

Re: Display message in HTML table based on YES/NO SharePoint List

just tried 

If(  "z" in HR.OData__x0037_Card , ", Card", "NOTHING")

and this returns true and displays "Card". 

I dont know how it can be possible for "z" to exist in "yes/no" or "true/false"

Re: Display message in HTML table based on YES/NO SharePoint List

@Konjic Hi

Think your trouble might be connected with the YES/NO column this type is not working well in the PowerApps.

Please for the testing add the Text type filed where you would add in manually values "Yes" , "No"

Refresh Data source and add new column to Power App.
Apply formula:

If( "Yes" in HR.OData__x0037_Card And EmployeeName in HR.Title, ", Card")


Test if this will resolve your problem if yes, please accept this answer as solution. 

If no, please share more details about your use case:
- HTML with people ?
- Are you displaying / building dynamic content using Collection and HTML ?

 

Konjic
Level: Powered On

Re: Display message in HTML table based on YES/NO SharePoint List

@365CornerDawid 

Did that and didnt solved the problem.

 

What i mean by "HTML with people" is i have an HTML table filled with text values stored in a collection

Yes. Im building a dynamic HTML table using multiple collections

Konjic
Level: Powered On

Re: Display message in HTML table based on YES/NO SharePoint List

I've managed to solve it.

If( EmployeeName in Filter(HR, OData__x0037_Card=1).Title  , ", Card")

instead of searching for true, false, yes or no i switched to 1 and 0. This gives me what i want.

 

Still puzzled about the if issues. I tried 

If( "***" in HR.OData__x0037_Card  , ", Card")

and returns true 

View solution in original post

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,281)