Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 18270

Questions relating to Apex, the native programming language for the Force.com platform. Use it for general questions on syntax, errors, constructs, and rules of use. Most questions should include a code *excerpt* to help answerers understand specifically what has gone wrong or why you need help.

6 votes
Accepted

Component Initilization Error: cannot read property 'g'

Looks like your event handler declaration is causing the problem. <aura:handler name="QuestionAddedEvent" value="{!this}" action="{! c.reloadQuestions }"/> You should not be using value="{!this}", …
Sumuga's user avatar
  • 2,209
3 votes

Bind checkbox value with controller boolean variable

P}" onchange="show(this);"/> </apex:form> </apex:page> Apex Class: public with sharing class CheckboxController { public Boolean P{ get; set; } public CheckboxController(){ … this.P = true; } } Do check the Apex and VF trailhead for an understanding of dynamic bindings. …
Sumuga's user avatar
  • 2,209
4 votes
Accepted

Auto Completion of Usernames or groups using mentions method

Apex Class: @AuraEnabled global static ConnectApi.MentionCompletionPage getMentionCompletionPage(String queryString, string contextId){ return ConnectApi.Mentions.getMentionCompletions(communityId …
Sumuga's user avatar
  • 2,209
1 vote

Getting Error: Content cannot be displayed: Subscript value 5 not valid. Must be between 0 a...

Apex Controller public List<VS_Roof_Section__c> getObjectList() { List<VS_Roof_Section__c> roof = [SELECT Id, Name, Azimuth__c, MG_Azimuth_2__c, MG_Azimuth_3__c, Designed_Tilt__c ,Installed_On__c, Measured_Tilt …
Sumuga's user avatar
  • 2,209
1 vote
1 answer
429 views

Can we Access Multi-Currency Values from Custom Setting using Apex Trigger

I have a Standard Object "Opportunity" I want to access a custom-setting with multiple currency I have multi-currency enabled in my org. Generally a custom setting can be accessed like follows Usi …
Sumuga's user avatar
  • 2,209