Questions tagged [variable-scope]

The tag has no usage guidance.

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

@AuraEnabled methods and fields : field declared as @AuraEnabled not available in @AuraEnabled method

I am new to lightning and i have written a controller for the component. public class TScontroller{ @AuraEnabled public Case caseDetail {get;set;} . .// few @AuraEnabled variables declared as above ....
0
votes
1answer
40 views

How to pass query variable from soql into loop

I am trying to bulkify a callout where I want to pass the recordtype in my loop but I get: Error: Variable does not exist: RecordType If I try public RecordType personAccountRecordType I get ...
1
vote
2answers
541 views

Variable does not exist - global Boolean and webService Argument

I am trying to pass an argument from a webService function within a global class and assign it to global variable within that class, but when I try to call the value within the class, or even within ...
2
votes
2answers
138 views

Where/How can I store a variable and access while I build my wrapper? It's either null in wrapper itself or the scope isn't visible at top level

I have a set of ids called oppIdsInWrapper inner class. However while I build my wrapper, this is always null and empty. I want be able to reference this as I build my records to avoid duplicate ids. ...
0
votes
1answer
80 views

Execution Context Variable Scope In The Tidy Trigger Pattern

I've read through Nuances of Working with Tidy Trigger Pattern, but I'm still struggling to understand something: For what portion of the life of the "execution context" does an attribute of the ...
0
votes
1answer
376 views

Bootstrap modal in Lightning Components

I am building a Lightning component for a community and we are being asked to use Bootstrap to stay consistent with the corporate style guide. There is a modal form in the component, and I want to ...
22
votes
1answer
532 views

SOQL bind variable scope behavior

After I posted this question, I found a similar post that seemed to answer it: Variable scope - database.query() has access to variables not in scope. I'll leave this in place for now, as I am not ...
0
votes
2answers
225 views

how to get the list populated from the return command?

Hey Guys and thanks for all the help. my problem is how to get the "Animals" from the return command my code is as follows public class AnimalLocator { public static List <String>...
2
votes
2answers
1k views

Duplicate Variable Error

Can you guys please help me out here Error: Compile Error: Duplicate variable: a at line 24 column 18 trigger accountfuels on lead (after insert){ if(trigger.isinsert) { ...
9
votes
1answer
401 views

Variable scope - database.query() has access to variables not in scope

I was answering a question and this little inconsistency popped up. Just wondering if anyone has come across it before, or if anyone knows why this happens. A variable that is declared within some ...