cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frankie70
Post Patron
Post Patron

Text Value gets lost in Data Table Coumn

Hi community,

 

I have a data table column. The values are links (option enabled).

But I do not want to display the hyperlink itself but instead just the word "Link" which contains the hyperlink.

In the app it does seem to work, but when publishing it, the hyperlink is shown again. Same happens when I close and open the app in PowerApps again.

Frankie70_0-1632305983368.png

Any idea what is goin wrong here?

 

1 ACCEPTED SOLUTION

Accepted Solutions
C-Papa
Super User
Super User

does this work

 

With (
{_item: alldata},

SortByColumns(

Addcolumns(
Filter(
_item,
(IsBlank(cb_status_2.SelectedItems) || IsEmpty(cb_status_2.SelectedItems) || PStatus.Value in cb_status_2.SelectedItems.Result) && (IsBlank(inp_search_2.Text) || inp_search_2.Text in Title) && (IsBlank(cb_country_2) || IsEmpty(cb_country_2.SelectedItems) || Country_x0020_of_x0020_Project.Value in cb_country_2.SelectedItems.Result)
),"Link","Link"),
"Title",
If(
SortByOrder2,
Descending,
Ascending
)
)
)

View solution in original post

3 REPLIES 3
C-Papa
Super User
Super User

Hi, you need to use the AddColumns() function too get around this

 

for your table items try

 

Addcolumns([DataSource],"Link","Link")

 

then change the OnSelect property of the link column to what you have above

Hi @C-Papa 

thanks for your answer.

My datasource is a collection and the items property of my table looks like this:

 

With (
    {_item: alldata},
    SortByColumns(
        Filter(
            _item,
            (IsBlank(cb_status_2.SelectedItems) || IsEmpty(cb_status_2.SelectedItems) || PStatus.Value in cb_status_2.SelectedItems.Result) && (IsBlank(inp_search_2.Text) || inp_search_2.Text in Title) && (IsBlank(cb_country_2) || IsEmpty(cb_country_2.SelectedItems) || Country_x0020_of_x0020_Project.Value in cb_country_2.SelectedItems.Result)
        ),
        "Title",
        If(
            SortByOrder2,
            Descending,
            Ascending
        )
    )
)

 

Where can I implement this? It always gives me an error.

C-Papa
Super User
Super User

does this work

 

With (
{_item: alldata},

SortByColumns(

Addcolumns(
Filter(
_item,
(IsBlank(cb_status_2.SelectedItems) || IsEmpty(cb_status_2.SelectedItems) || PStatus.Value in cb_status_2.SelectedItems.Result) && (IsBlank(inp_search_2.Text) || inp_search_2.Text in Title) && (IsBlank(cb_country_2) || IsEmpty(cb_country_2.SelectedItems) || Country_x0020_of_x0020_Project.Value in cb_country_2.SelectedItems.Result)
),"Link","Link"),
"Title",
If(
SortByOrder2,
Descending,
Ascending
)
)
)

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,140)