The tag has no usage guidance.

learn more… | top users | synonyms

3
votes
1answer
23 views

Cannot Access Global Variables in Force.com Site

I'm trying to use the global variablee '{!$Organization.Id}' and '{!$Profile.Id}' in a visualforce page. When I access the page directly from apex/MyPageName the variables are picked up ok from the ...
2
votes
2answers
32 views

Evaluate Current User for Flow - 15 - 18 digit User ID

I need to evaluate the current user running a flow. Someone suggested I use the Global Variable {!User.Id}, but it's returning a 15 digit Id. I need to compare the current user with the Account owner. ...
1
vote
1answer
15 views

Use Global Variable $Setup in Lookup Filter

Since global variables can not be used in Filter criteria, I created a formula field, to pass it through. But referencing this formula (with global variable) in a Lookup Filter does not work Custom ...
5
votes
1answer
62 views

How to use $A.set() or how to add a custom global value provider?

I am a little bit confused. Knowing that not all features which are available in a pure aura project are exposed to Lightning Components I thought it is mandatory to check against the Salesforce ...
1
vote
1answer
33 views

Combine Multiple Boolean checks in VF Markup

I want something like the below in my test to see of a outputPanel should be rendered <apex:outputpanel rendered="{!recordType == 'System Change Request' & ...
1
vote
1answer
35 views

The installed managed class zqu.ProductSelectorController is not visible

I am getting this error trying to use a custom visual force page in place of a managed package visual force page. I made my custom controller global, thinking that it was mine that needed to be ...
0
votes
1answer
61 views

Get value in a variable from selectOptions {Selected option}

How could I catch the value {!items} selected and capture it in a variable? I need a simple line of code. <apex:pageBlock tabStyle="Account" title="Merge Accounts"> ...
1
vote
0answers
63 views

UserRole ID in VisualForce [closed]

Writing a VisualForce Page for Opportunity and having an issue with referencing the $UserRole.Id. It saves the way its written but its not doing what we need it to on the actual VisualForce Page. It ...
3
votes
1answer
161 views

Get User Language in Visualforce without controller

I have a Visualforce page without a controller and I would like to get the user LanguageLocaleKey value without having to add a controller (I know it can be done in Apex using UserInfo.getLanguage()) ...
0
votes
1answer
111 views

How can I pass two Id within URL using getParameters().put

currently I send one Id in the URL to my other controller but now I have to send another value within the same URl to my other controller , how can I add the second value to this PageReference ...
3
votes
0answers
61 views

Salesforce global JS objects

Can anybody help me to find official description or any other information about global SalesForce JavaScript objects (not Visualforce global variables)? I know that there are exists some JS objects ...
1
vote
0answers
98 views

Add main.js to Visualforce page

Is there a way to include Salesforce's main.js file using an <apex:includeScript />? On internal pages, the URL is something like this: /jslibrary/1440733404000/sfdc/main.js. I'm not sure where ...
2
votes
1answer
430 views

How to pass a value to a global variable in apex

public PageReference BookerInformation(){ PageReference gotosetup = new PageReference('/apex/bookerinformation?id=' + eventId); List<ProntoEvents_Product__c> products_1 = ...
1
vote
1answer
253 views

Access a boolean variable from the controller by another helper class

I got a boolean variable in my controller class and I want to access that variable to check a condition in another helper class. Ex: Class MainController { public boolean showValue {get; set;} ...
1
vote
2answers
83 views

Getting always zero as total in apex:variable

I am getting always 0 as a result of total. I am using apex:vairable, initialing it before apex:block. Inside the apex:block I am adding the field of object i.e number type with apex:variable and ...
2
votes
2answers
247 views

How do I assign this variable a value?

I found this block of code in the Salesforce docs: <apex:page> <h1>Linked</h1> <apex:outputLink value="{!$Page.otherPage}"> This is a link to another page. ...
2
votes
1answer
467 views

Lightning: Are there any global variables to check current user profile or custom permissions?

Currently, only $Browser and $Locale are available as global value providers. Are there any ideas how to check profile and custom permissions of current user without running SOQL query in ...
3
votes
2answers
736 views

How can I avoid this JSENCODE() error when the help text is blank?

I've written a VF page that uses a lot of JavaScript. One particular pattern is giving me some trouble. I'm pulling the help text into a JavaScript object array, like so: var columns = [ { ...
3
votes
1answer
2k views

How do I pass an external variable into batch Apex?

I have a map variable that I am trying to pass into a batch class. This variable was created and populated in another batch class (which is why I can't just create it in the Start() method of the ...
1
vote
1answer
240 views

Accessing Public Variables within Webservice

I'm having some trouble with what I thought would turn out to be a simple form built upon a custom visualforce page. The back story here is that I need to display a dynamic number of records to a ...
0
votes
0answers
20 views

Evaluation failure to show error message

I need to show the output label message by below mentioned scenario. Can someone help me know why it fails? <apex:outputLabel style="color:green;font-weight:1200;" ...
2
votes
1answer
174 views

$Permission.CustomPermissionName doesn't work in VF page

Winter '15 brought new Global Variable $Permission. When I'm trying to use it on VF page as suggested in documentation $Permission.[customPermissionName], I get error: Error: Field ...
4
votes
1answer
114 views

Displaying a variable before it has been set to a value

What I have is an app that pulls in social media and displays that content in ExactTarget. I want to set text and links in the email based upon the content in the social post... in this case ...
3
votes
1answer
174 views

Can't seem to use $ObjectType in a component

I found myself using a bit of code to display a searchable history of a given SObject, for a couple of different SObjects so I thought it sensible to create a component, that could be told the SObject ...
6
votes
2answers
996 views

Batchable class variable shows as NULL in finish() method

Sorry if the format is not good, first post ever and I don't know what all the options are. totalRecords list size is printing as NULL in the email message body, I cannot figure out why. global ...
1
vote
1answer
247 views

Access merge fields from js script injection sidebar component

I have an HTML sidebar component that I'm using to inject js scripts in all standard pages. I need to be able to access global variables such as $User. How can I do this outside of a VF page? So, I'd ...
6
votes
2answers
2k views

What is the purpose of Global and Final modifiers in Batch Apex?

I've noticed that Batch Apex classes are all global, and the dev console returns an error if you just try to do a public/private class. My understanding is that a global class is visible to all ...
6
votes
1answer
544 views

Using “User” global variable in SOQL query

I want to retrieve some data from an object to a List according to the ID of the logged in User, so I am trying this soql query List<Object> = [SELECT Id,Name FROM Object WHERE User_id = : ...
4
votes
1answer
2k views

Using global variable's fields or methods (in Visualforce)

For example we have $CurrentPage variable. How can I get all fields or methods which I can use for particular global variable? I don't see where they are stated like for URL class Added. I understand ...
1
vote
1answer
80 views

what is the use case $ComponentLabel

The documentation is not very clear. Click here for SF documentation
2
votes
2answers
2k views

Can we use global variables in triggers to get informations

Can we use global variables like $Profile, $setup, $Label in apex triggers and apex Code? Thanks in advance.
1
vote
1answer
103 views

refer to a component's name

Is there a way to get the name off of an apex:component? For example: <apex:component> ... The name of this component is {!$Component.Name} </apex:component> Or something ...
1
vote
1answer
287 views

Global variable for Group

Is there a global variable for referencing public groups Use case: I want to generate data on a field for few users belonging to a public group.I know using $profile I can do !IF( $Profile.Name = ...
5
votes
1answer
210 views

Need to modified variable value in visualforce/apex/salesforce

My code in gobal footer component - <div id="copyright"> &copy; {!$Label.copyright} </div> It is displaying in page"© Copyright 2012 " I am new in ...
2
votes
1answer
394 views

Where can I check the value of $Setup variables?

I have this code: <link rel="canonical" href="{!$Setup.websiteSystemVariables__c.Main_URL__c+$CurrentPage.Name}"/> I want to check where the $Setup.websiteSystemVariables__c and ...
4
votes
5answers
4k views

Cannot get the global variable $Component to return id

How can I get the force.com generated id from the $Component global varible for me apex:selectRadio component? Javascript var rdo = j("input[@id=" + jq('{!$Component.searchRdo}') + ...
2
votes
1answer
348 views

Do methods returning APEX classes live in a different namespace?

I have a controller class, below. It is passed in "thePpt" as an SOBJECT, and the class has access to it in the getGuam method, but not the initPhoneList or GetDaytimePhoneList() methods. WHY? They ...
3
votes
2answers
402 views

What are the components of Salesforce's built-in CSS URLs?

The URLs for CSS files in Salesforce resemble this: /sCSS/25.0/sprites/1344400715000/Theme3/default/gc/elements.css What does the 1344400715000 refer to, and is there a way to expose that value via ...