Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

New answers tagged

0

In Lightning, the standard lead conversion process is in a modal and it is not accessible by URL. Unfortunately your only solution is to write a custom lead conversion process to override the standard process.


0

Please add extra parameters for the helper method showToast and set 'message' ,'title' dynamically from there. showToast : function(component, event, helper,messageStr,titleStr,typeStr) { var toastEvent = $A.get("e.force:showToast"); toastEvent.setParams({ "title": titleStr, "message": messageStr, "type":...


0

Update Thank you sdandamud1 for your answer, so I fixed the error "Cannot mix expression and literal string in attribute value, try rewriting like {!'foo' + v.bar}: Source " by putting a bracket in the if part in Cmp class. Code: <lightning:button class="{(!v.rolename == 'Development Manager') ? 'slds-button_brand slds-align_absolute-center slds-size_2-...


0

you need to get the logged in User role Name from Apex Controller, then bind it to Aura attribute then based on value you can hide and show like below example code snippet. cmp <aura:component controller="Apexcontroller" implements="flexipage:availableForAllPageTypes" access="global"> <aura:attribute name="rolename" type="String"/> &...


1

today I've encountered the same issue. The 'Column' is not the same as any logical API reference we are aware of. The work-a-round which did work (though it requires a bit of developer-knowledge). Update the Report to have the filter you want to set dynamically Retrieve the Report .xml file via the metadata API Open that file and search for the criteria. In ...


1

The strategy to replace the javascript button with a lightning alternative is pretty simple. Identify what your javaScript button is doing. In your case, it is a 2 step process. Checking the status of the record and based on status you are navigating user using window.location or showing an alert. There are many lightning alternatives available to cover the ...


2

You are on the right way, you just need to move variables related to the record outside the quotes. IF( CONTAINS( $Profile.Name, "System Administrator" ), HYPERLINK( "https://testrackspace.service-now.com/rack_sp?id=sc_cat_item&sys_id=4bb14bc2c84f4e0087fd91e81c4cff48&sysparm_salesrep=" + Federation_ID__c + "&...


1

You need to use the string concatenation syntax (&). Also be aware of spurious spaces. {!IF($User.UITheme = 'Theme3', URLFOR("/0Q0/e?retURL=%2F" & Opportunity.Id & "&oppid=" &Opportunity.Id&"&Name=" & Opportunity.Name"), 'Show error')} Or, even better, use the "params" function of URLFOR: {!IF($User.UITheme='...


Top 50 recent answers are included