web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Personnalise the text ...
Power Apps
Answered

Personnalise the text content of a data table's item in powerapps

(0) ShareShare
ReportReport
Posted on by 113

Hello,

 

Thanks in advance for your help, so I have a data table with the following content on Items: 

If(IsEmpty(ComboBox1.SelectedItems); Filter('Attachement digitalisation (test)'; LIN= Dropdown1.Selected.Value); Filter('Attachement digitalisation (test)'; LIN= Dropdown1.Selected.Value; COL= ComboBox1.Selected.Value))
 
On the table, one of the data card's column (named PDF_column) verifies if the the respective line contains an attachement file, if it does it returns false, if it doesn't, it returns true.
 
PowerAppsMx_1-1706258417335.png

 

But I don't want to show a legend false or true, instead, I want to open the pdf file and it works with the function On Select : 
Launch(First(DataTable1.Selected.'Pièces jointes').AbsoluteUri) when you select a file that does contain a pdf file (it launches the pdf correctly). But not all of my lines have pdf files, so I added a "👁" on Text :
If(DataTable1.Selected.'Comporte des pièces jointes' <> true; "X"; "👁")
but this only changes when you select one line and it changes all the column's content. So I want it to contain "👁" or "X" according to the line like the false/true).
 PowerAppsMx_0-1706258181828.png

 

Categories:
  • Verified answer
    Akser Profile Picture
    1,546 Moderator on at

    Hi @PowerAppsMx,

    If you already have the information whether there is a PDF or not (you said that's the column called 'PDF_column') why not use it?

    If(ThisItem.'PDF column', <EYE ICON>, "X")

  • fatimaandrea Profile Picture
    113 on at

    Hi, thank you, I thought the function "ThisItem" only worked on galleries but it dit work on the Data Table component.

    PowerAppsMx_0-1706261711773.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard