UI Builder - Open a record in a workspace view.

KushalT
Tera Contributor

Hello,

 

I have added a simple list component in my configurable workspace. Now, I wanted to open the record in the workspace view that has a limited number of related lists. I have added View as the required parameter and set the value of this parameter to the workspace using the row clicked->link to destination event mapping. However, it is not working as expected and the record is still getting opened in the same default view. Is there any other way to achieve this?

13 REPLIES 13

Hi @KushalT ,

I'm not sure how you are setting the view property in 'record' page.

May be you can use the alternative way in Row clicked event. Change the mode to script and add below lines:

function evaluateEvent({api, event}) {
	
	return {
		
		external: {
			url: `${event.payload.table}.do?sys_id=${event.payload.sys_id}&sysparm_view=workspace`,
			target: '_self'
		}
	};
}

If details shared on how you are using 'view' parameter on 'record' page further debugging can be done.

 

Thanks

KushalT
Tera Contributor

@Nootan Bhat  I believe that your solution will open the record in the backend view, not in the workspace itself. As far as the View parameter is concerned, I have added this as a required parameter, but I don't think that it will gonna work.

@KushalT can you share the screenshot for the page 'record'?  

@Nootan Bhat: You need to switch mode to form mode.

then add table and sys_id and view name as per mentioned below in screenshot 2.It will open record in Service operations workspace.

samruddhi1_0-1683781947841.png

 

samruddhi1_2-1683782106214.png

 

 

 

KushalT
Tera Contributor

Here are some snapshots of the Home page.

KushalT_0-1673259698659.pngKushalT_1-1673259749368.png

KushalT_2-1673259794328.png