Questions tagged [js-controller]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
583 views

How do I pass the date period to the apex method?

I need to pass the date period "from" "to" from the js controller to the apex method in order to extract a list of values from the database. //cmp ... <aura:attribute name=&...
unique user's user avatar
2 votes
0 answers
878 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 ...
Rose 's user avatar
  • 123
0 votes
1 answer
845 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:" ...
SFDC Admider's user avatar
-1 votes
1 answer
45 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}, ...
Vanaja Kasaragadda's user avatar
-1 votes
1 answer
873 views

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

I want to set the value based on key,using aura:id Component: ...
Vanaja Kasaragadda's user avatar
0 votes
2 answers
305 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 ...
Vanaja Kasaragadda's user avatar
-2 votes
2 answers
3k 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 ...
Vanaja Kasaragadda's user avatar
5 votes
1 answer
7k 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 ...
Olivia's user avatar
  • 3,461
0 votes
0 answers
1k 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 ...
Vanaja Kasaragadda's user avatar
-1 votes
1 answer
7k 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=...
Vanaja Kasaragadda's user avatar
-1 votes
1 answer
10k 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) ...
Vanaja Kasaragadda's user avatar
1 vote
1 answer
5k 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 ...
user569925's user avatar
  • 1,179
0 votes
1 answer
38 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", "...
shashank's user avatar
1 vote
2 answers
16k 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 ...
Manoj Patil's user avatar
1 vote
1 answer
642 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 ...
Om Ksolves's user avatar
2 votes
1 answer
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....
Margarita's user avatar