Hot answers tagged

3

The total number of parameters you need to use in JavaScript will be the number of Apex parameters plus one for the callback. You neglected to include the required parameter, hence the error. The following change would suffice: BudgetGraphController.getBudgetData('{!JSENCODE($CurrentPage.paramEters.Id)}', function (result, event) { Note that: global ...


3

Not sure if there is way to completely stop loading the /aura logs, but you can use the filter box at the bottom of the logs tab. See screenshots below. you can get rid of the other logs just by typing out the operation type you want examine.


3

This is a limitation of the developer console, similar to what I described in What is the longest URI that Salesforce will accept through the REST API? In short, the developer console is sending the code you have in your dev console's execute anonymous window to a REST endpoint as a query string parameter, and Salesforce can only handle URLs that are ...


3

You cannot stop that, also it's not recommended to manipulate dom based on ID, as the framework replaces custom id to globally unique id in the page. So to get element you have two options. Get it by class query selector. get it by Data attribute. Here are the examples for the same. Class. let div = this.template.querySelector('.popup'); Using the data ...


2

The Problem This error is due to the number of characters you've used. I go over it in more detail in What is the longest URI that Salesforce will accept through the REST API? , but the gist of it is that we have a url length limit of around 16,000 characters. Anonymous apex submits requests via REST, and the code you're executing is sent via a url query ...


2

I was facing the same issue and I confirm it it works in lightning. However, I found out following issues in my code: Mostly people just copy and paste code from here or any article: https://releasenotes.docs.salesforce.com/en-us/summer18/release-notes/rn_cases_email_apex_default_fields.htm global void onInitDefaults(QuickAction.QuickActionDefaults[] ...


2

You can use isConsoleNavigation() for getting this information. isConsoleNavigation() Returns a Promise. Success resolves to true if console navigation is present, false otherwise. The Promise will be rejected on error. Sample: cmp: <lightning:workspaceAPI aura:id="workspace" /> <lightning:button label="Is Console?" onclick="{! c....


1

You can embed a Lightning component in the flow screen and pass the Knowledge Article details (knowledgeArticleId, title) from Flow to the Lightning component. In the Lightning component, just display the Knowledge Article as a hyperlink. <a><lightning:button variant="base" label="{!v.title}" onclick="{!c.openKnowledgeArticle }"/></a> ...


1

You have to change URL from var urlStr = 'lightning/setup/Queues/page?address=/p/own/Queue/d?id=00GXXXXXXXXXXXX'; to var urlStr = '/p/own/Queue/d?id=00GB00000042vpz&setupid=Queues'; It worked for me


1

I also had this issue. But by using workspaceApi.focusTab() method, I was able to achieve the opening new tab and closing the current one and focusing the new tab. workspaceAPI.openTab({ pageReference: { "type": "standard__recordPage", "attributes": { "recordId": oldCaseId, "actionName":"view" } }, ...


1

Only 3 parameters - tabId, icon, iconAlt are available for setting Icons setTabIcon and 2 parameters - tabId, label are available for setting label setTabLabel. You cannot change any other properties including size of icon. That will lead to disruption in the standard lightning experience and so that will not be allowed and not exposed.


1

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, object all did work for me) as below. var original = 'Madhura'; var encValue = window.btoa(original); console.log(encValue); // prints : TWFkaHVyYQ== ...


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