Skip to main content
6 votes
Accepted

URL Type for Lighting:Datatable opens in new tab in console navigation

You can use the target attribute inside typeAttributes , as part of the column definition for your data table. Here's an example of hyperlinking the Case Number column in a Case data table: { ...
David Reed's user avatar
  • 93.2k
4 votes

Aura Wrapper to LWC: record-id of lwc to recordId mapping

Answering my own post/question. It was an attribute naming problem: recordId="{!v.recordId}" Somewhere I have seen record-id was mentioned (in some documentation or sample about wrapping lwc ...
Mohammed Sheriff's user avatar
4 votes
Accepted

Open New Tab in Lightning Out?

I don't see any issues using window.open(). According to Locker API Viewer open is supported. I have a lightning component that leverages LDS sitting in lighting experience that opens a tableau ...
Hemavantha Rajesh Varma Mudunu's user avatar
3 votes

Is there a alternative for WorkspaceApi in LWC?

There is currently a GitHub Repo which I created that allows you to do this https://github.com/Pexlify/Console-Api-For-LWCs. You simply need to deploy this to your org and place the Aura component on ...
martin conlon's user avatar
3 votes

Is there a alternative for WorkspaceApi in LWC?

I can suggest one of the approaches that we adopted on our projects. Wrapping into Aura might be tedious, so I suggest creating an Aura Utility bar component (you can also use hidden Utility Component)...
ytiq's user avatar
  • 4,555
3 votes

Is there a alternative for WorkspaceApi in LWC?

This is possible via this https://mtr-design.com/news/salesforce-mini-how-to-open-a-subtab-in-console-from-lightning-web-component (Solution #2) I just tried it and using internalapievent as custom ...
Nagendra Singh's user avatar
3 votes

Is there a alternative for WorkspaceApi in LWC?

I think the only way to achieve this behaviour would be to wrap your component in an Aura wrapper and handle interaction with the workspace API there. The LWC component should bubble up an event to ...
voluminat0's user avatar
3 votes

Workspace API use OpenTab() to open existing tab using pageReference

The reason it does not change is because you will be getting the parameters from state only on init and initialised only once and whenever you want to load the same component again with different ...
salesforce-sas's user avatar
2 votes
Accepted

Theme4u Console not getting returned by Quick Action

You can use isConsoleNavigation() for getting this information. isConsoleNavigation() Returns a Promise. Success resolves to true if console navigation is present, false otherwise. The ...
salesforce-sas's user avatar
2 votes
Accepted

How to pass record id to a lightning component when it is opened as subtab

Explanation on why its not working: workspaceAPI.openTab({ url: '/lightning/r/Account/001xx000003DI05AAG/view', focus: true }) You need to use url: '/0010K000026Y6QZQA0' for giving url. /...
salesforce-sas's user avatar
2 votes
Accepted

"worksaceAPI.openTab()" equivalent for lightning web components?

Looks like official support for this is coming out soon, it was flagged for Summer 20 but I don't see support for it yet. https://help.salesforce.com/articleView?id=lex_roadmap.htm&type=5 In the ...
Derek Kania's user avatar
2 votes

How to set lightning tab label and maintain it for each call?

I need to set to subtab instead of tab workspaceAPI.getFocusedTabInfo().then(function(response) {}).then(function(subtabId) { // the subtab has been created, use the Id to set the label ...
nSv23's user avatar
  • 554
2 votes
Accepted

LWC Control Workspace Tabs and Subtabs (Beta) on Dev Org

As of 17-Aug-2023, not yet. It may start around Aug-25. The easiest way is to use a pre-release org (if you have one, good, otherwise you may have to wait for Aug-21 or so to create one). More info on ...
Jeferson Chaves's user avatar
1 vote

Alternative to workspaceAPI in LWC?

I have achieved this by following below architecture:- So basically, You don't need to wrap lwc in aura. You place them individually on the page. Make use of lightning message channel to communicate ...
sanket kumar's user avatar
  • 15.4k
1 vote
Accepted

Alternative to Workspace API for LWC

I would suggest using LMS. If you use Lighting Messaging Channel you can put your Aura component anywhere. I have custom page templates in my App and I put this component there (use it for Utility bar ...
ytiq's user avatar
  • 4,555
1 vote

Lightning Component (hidden) on a record page is getting fired even after the Record Tab is closed

FIRST - Aura component gets initialized and the code inside setInterval runs forever as it's async and never gets cleared even when the component is destroyed. This is some strange behavior in Aura ...
Nagendra Singh's user avatar
1 vote

Open Tab using Workspace API

Subtabs are part of the Console application framework. You cannot access the Workspace API or create subtabs in a non-console-based application. You create browser tabs; see for example this question ...
David Reed's user avatar
  • 93.2k
1 vote

Close sub Tab on Account Change from Workspace API

You will need to do some JavaScript development using the Aura Framework's Workspace API. On apps that use the console navigation, the framework emits some events that you can handle. One of those is ...
Renato Oliveira's user avatar
1 vote

Is there a alternative for WorkspaceApi in LWC?

Try this solution. In The section Solution #2, you can see how to invoke workSpaceApi in LWC (you may need to modify some parameters, for example in my case i needed to close the current tab, so ...
ihssan's user avatar
  • 488
1 vote

Cannot open multiple times lightning component content as subtab in Lightning Console with different params by using workspaceAPI.openSubtab

Remove the uid parameter from your pageReference state. Source: https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_lightning_open_pagereference.htm ...
Ben Nguyen's user avatar
1 vote

Subtab open using workspace API

If I'm reading your question correctly, the issue is not related to subtabs per se. Your issue is that you need to know which item has been clicked in a list, and use that information to dynamically ...
David Reed's user avatar
  • 93.2k
1 vote
Accepted

Is it possible to open a Lightning Tab with Workspace API without URL Parameters

I was facing the same issue and I've managed this with standard window.btoa(str) and window.atob(str) functions. Before you set into the state, you can encrypt the variable values(String, number, ...
highfive's user avatar
  • 6,241

Only top scored, non community-wiki answers of a minimum length are eligible