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
)
)
)

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,672)