Questions tagged [js-controller]
The js-controller tag has no usage guidance.
17
questions
0
votes
0answers
24 views
Issue- Using UserAppInfo to get the name of the current app in the Apex Controller but it shows last App name user has logged into
I'm using following code in apex controller to get current appname user has logged into. But It always shows the last app name user has logged into.
For example:
Scenario 1: As a user, I logged into ...
0
votes
0answers
56 views
Cannot read property 'fire' of undefined
i am adding aura dependency <aura:dependency resource="markup://force:*" type="EVENT"/> than still we will get an error
Cannot read property 'fire' of undefined
$A.get('e....
0
votes
1answer
48 views
Cannot read property 'get' of undefined. May i know if there are any trouble shooting points
I have mentioned everything correct, but still i am facing the issue, may i know if there are any trouble shooting points.
Code:
Component:
<lightning:combobox name="Select Instance:" ...
-1
votes
1answer
40 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},
...
-1
votes
1answer
248 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
83 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
894 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 ...
5
votes
1answer
4k views
Lightning Datatable Picklist and Lookup Work Around [duplicate]
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
1answer
253 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
3k 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
3k 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)
...
1
vote
1answer
3k 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
36 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
8k 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
555 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
7k 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
2k 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....