Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datagrid link column should support aliasing #1561

Open
2 tasks done
prakhargupta1 opened this issue Jan 16, 2023 · 3 comments
Open
2 tasks done

Datagrid link column should support aliasing #1561

prakhargupta1 opened this issue Jan 16, 2023 · 3 comments
Labels
new feature New feature or request priority: low To delay as much as possible waiting for 馃憤 Waiting for upvotes

Comments

@prakhargupta1
Copy link
Member

prakhargupta1 commented Jan 16, 2023

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Summary 馃挕

From a data grid cell, I want to take the end-user to another page of the app. For example app and screenshot below, the column name is sales_rep.

Screenshot 2023-01-16 at 1 50 32 PM

Now, instead of showing the link, I want to show Open for all rows.
Even better would be, if I can make the adjacent column sales_rep_employee_number a hyperlink that takes a custom link based on the employee id.

Solution

Columns should support creating an alias.

Benchmarks

  1. Metabase:

Screenshot 2023-02-12 at 14 50 48

  1. Retool link: There was no option to add alias to link.

Screenshot 2023-01-16 at 9 43 22 PM

  1. Retool Button: Button works for this use case

Screenshot 2023-01-16 at 9 50 39 PM

Two more points to note in the above screenshot:

a. The navigation is to a Retool page, so based on if the app is in edit mode or dev mode they manage the URL themselves.
b. The URL params are contextual i.e, they are available based on the action you are taking 'Go to Retool page' in this case. It then asks you to assign a key which is then accessible under urlParams object on the other page.

@prakhargupta1 prakhargupta1 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jan 16, 2023
@Janpot Janpot changed the title Datagrid column should support aliasing Datagrid link column should support aliasing Jan 16, 2023
@bytasv
Copy link
Contributor

bytasv commented Jan 16, 2023

@prakhargupta1 this sounds more like a case for custom component. We can now create custom components to be rendered inside data grid cells, so it should be easy to model it accordingly.

@Janpot
Copy link
Member

Janpot commented Jan 16, 2023

If we have a "link" column type, I think it's not too far fetched to have it support both url and text.

@apedroferreira
Copy link
Member

If we have a "link" column type, I think it's not too far fetched to have it support both url and text.

Yeah, in my opinion sounds like a common-enough use case that we should support it.

@Janpot Janpot added enhancement This is not a bug, nor a new feature and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 17, 2023
@Janpot Janpot added waiting for 馃憤 Waiting for upvotes priority: low To delay as much as possible labels Feb 12, 2023
@oliviertassinari oliviertassinari added new feature New feature or request and removed enhancement This is not a bug, nor a new feature labels Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request priority: low To delay as much as possible waiting for 馃憤 Waiting for upvotes
Projects
Status: Backlog
Development

No branches or pull requests

5 participants