How to redirect from List page in workspace to Classic view record

Felipe365
Tera Contributor

Hello All, 

 

I have created a custom workspace with a List Page Template. I have configured the lists I want to display and they work well.

My problem is that when I click on a record link I want to display the record on the classic view, I'm not sure if that is possible. I believe it can be done using event handlers but I can't find the documentation on how to configure this. 

 

Any help is appreciated! 

 

Thanks!

4 REPLIES 4

Renat Akhmedov
Kilo Sage

Hi Felipe365, 

You can do it with the event handler,


1. Open the page in UI Builder and select the list component (Simple List / Data Table / List) or whatever you have there,

2. In the Events section, add a Row clicked event handler (or equivalent for your component).

3. In the handler, add the Open URL action (sometimes called simply Open a URL).

4. Specify the URL in Classic format using nav_to.do:

/nav_to.do?uri=<table>.do?sys_id=<sys_id>&sysparm_view=<view>

Where <table> is the table, and <sys_id> is the record ID from the event payload.

Examples of input parameter bindings (may vary slightly depending on the list type):

Table (if the list is for a specific table): simple text, such as "incident."

sys_id: dynamic binding from the payload, most often one of:

${$event.payload.row.sys_id}

or ${$event.payload.item.sys_id}

5. In the action parameters, select Open in new tab/window to avoid breaking Workspace tabs.


If it helped you somehow, please mark this answer with a thumbs up. I'll highly appreciate it.


Best regards,
Renat Akhmedov

Hi Renat,

 

Thank you for your reply. I'm not sure where should I specify the URL, is it in the script of the handler? Also, I don't know how to bind the parameters, the <table> must be dynamic because the user can select an incident, a change or a task. I think this can be done with the event payloads but I'm unsure. 

 

Thanks for your support!

Sarthak Kashyap
Mega Sage

Hi @Felipe365 ,

 

I tried your problem and it is working fine for me,

 

Please check below steps 

 

Add a event on your list in UI Builder and add event called - "Cell link selected"

Inside that add one event - Open Page or URL

 

SarthakKashyap_0-1762189354691.png

Instead of form select script and in url add below line

 

event.payload.cell.href

SarthakKashyap_1-1762189386771.png

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards,

Sarthak

 

Hello Sarthak,

 

Thanks for your reply. I have tried doing what you said but it still doesn't work. I have added the url component with event.payload.cell.href to the script.

Felipe365_0-1762245053900.png

 

However, when I click on a record link now I get redirected to the following page: 

Felipe365_1-1762245108910.png

 

Thanks,

 

Felipe