You need to sign in to do that
Don't have an account?
Koustav Banerjee
custom coding
I am using a function to concatenate as follows in my lightning controller class
getCompValue : function(component, event, helper) {
var compVal = component.find("comp_id").get("v.value");
var compValStr = '\'' + compVal + '\'';
component.set("v.componentName", compValStr);
},
but on save the value is becoming
'a2u180000003p27AAA'
Do you have any resolution on the same how to concatenate
' + <<variable>> + ' to get the result as 'a2u180000003p27AAA'
getCompValue : function(component, event, helper) {
var compVal = component.find("comp_id").get("v.value");
var compValStr = '\'' + compVal + '\'';
component.set("v.componentName", compValStr);
},
but on save the value is becoming
'a2u180000003p27AAA'
Do you have any resolution on the same how to concatenate
' + <<variable>> + ' to get the result as 'a2u180000003p27AAA'
How do you save the value? (apex or <force:recordData> ?)
Please find below code that can help you,
1. Component
2. Controller
3. AccountController
Please test and let me know