Questions tagged [js-controller]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1
votes
1answer
34 views

calculate the total of a variable based on another variable in JS controller lightning

finalMap=[{"key":"OTC","subprocessName":"CXO","weightage":50}, {"key":"OTC","subprocessName":"Order Management","weightage":50}, {"key":"RTR","subprocessName":"Fixed Asset Accounting","weightage":20}, ...
0
votes
1answer
27 views

Setting of value to <ui:inputText ,based on aura:id

I want to set the value based on key,using aura:id Component: ...
1
vote
2answers
28 views

count the ocurances of a value in a list at js controller lightning

Below is my list, and i would like to count the string and keep it in map count==>["Vendor Master","Vendor Master","Customer Master","Customer Master","Customer Master","Customer Master","Material ...
-2
votes
2answers
44 views

Not able to set value using aura:id ,in aura:iteration

Aura Code: <aura:iteration items="{!v.O2CSubprocess}" var="mapKey" indexVar="key"> <aura:iteration items="{!mapKey.value}" var="mapValue" indexVar="index"> <label ...
1
vote
1answer
327 views

Lightning Datatable Picklist and Lookup Work Around

I am aware that lightning:datatable does not support picklists. The approved attributes are: action boolean button button-icon currency date date-local email location number percent phone ...
0
votes
0answers
84 views

Unable to access custom label value in lightning web componnet

import labelname from '@salesforce/label/myNamespace.labelName'; Error: I was unable to deploy the above statement, Explicit use of namespace "myNamespace" in file "scheduleConfig.js" is ...
-1
votes
1answer
407 views

Access value of JSON in JS Controller [duplicate]

I received value from Apex as, {"data":{"Id":"a002E00000ZKKbGQAX","Name":"FCS Group","Frequency__c":"Monthly",}} and I want to fetch the value of frequency, Below is the code I tried, this.strtest=...
-1
votes
1answer
271 views

Get List Size in JS controller using lightning web component [closed]

I need the size of a List, which was passed from the Apex controller to the JavaScript controller and built using Lightning web component. Below is the code I am trying: @wire(getObjectDetails) ...
0
votes
1answer
1k views

Scrolling event within Lightning Component

I'm very new to Lightning component development and I'm trying to update page once user scrolls down to certain height (for this example say 250px) My component looks like: <aura:component ...
0
votes
1answer
32 views

How to read the JSON response

I am getting the below JSON response inside a variable('responsebody') from client-side { "predictions": [ { "description": "812 West 11th Street, Coffeyville, KS, USA", "...
1
vote
2answers
2k views

'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them

I am getting below error in lightning JS controller on enqueueAction. TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments ...
1
vote
1answer
435 views

Problem while getting application lightning event in salesforce lightning component

I am not able to get the reference to an application level Lightning Event inside an Lightning component. I have defined an application level event named 'MemberEvent' and I have registered it in ...
1
vote
3answers
5k views

How to get Child Component value from Parent component in JS controller?

Child Component - SearchBarCmp.cmp <aura:component > <input type="text" class="form-control" onchange="{!c.searchKeyChange}" placeholder="Search" id="SearchKeyValue"/> <...
2
votes
1answer
1k views

Error in lightning component

Can you, please, explain for me, why I have got this error: Uncaught Error in $A.getCallback() [TypeError: Cannot read property 'apply' of undefined] throws at https://margaritabarabash-dev-ed....