Questions tagged [parameters]

A parameter is a variable, it is used in a subroutine to refer to one of the pieces of data provided as input to the subroutine. These pieces of data are called arguments.

Filter by
Sorted by
Tagged with
1
vote
1answer
21 views

how to make test class for controller with parameter canvas.toDataURL()

I made extension class and VF page for getting signature image. I confirmed it works well through many test . And then, I need to make test class to deploy that extension class into production org. ...
0
votes
1answer
20 views

Parameter not returing from visualforce to controller

I am trying to pass a parameter from visualforce on pageload to controller but this is ending up empty. What am I missing? VFP <apex:page standardController="Contact" recordSetVar="record" ...
0
votes
0answers
15 views

Save Record on Parents List

I am struggeling with my Controller Extension. I have a PageblockTable which refers to a related list. On this List I have a Inputfield which is a picklist. When I want to change a value on that ...
0
votes
1answer
28 views

How to test a page with parameters

I am writing a unittest for a pagereference where I add some variables I currently get only 47% coverage. How do I pass the variables correctly. I currently get the error: System.NullPointerException:...
1
vote
1answer
51 views

How to pass an apex parameter in a <button type=“button” />?

What I want to do is send an apex parameter with a and not a command button (in my vf page) and it's because I want to be able to call a modal and I didn't find a way other than using a I forgot to ...
1
vote
0answers
49 views

List Button is not passing parameter in URL for a particular profile

I have a list button on a related list of custom Object ABC under Contact object which redirects to a VF page (custom record creation page for ABC). I am passing contact id in the URL so that contact'...
1
vote
1answer
65 views

[APEX]: Way to iterate over method parameters

I have a method that accepts 4 parameters. I want to do the same action for every parameter if it's not null. Is there a way to iterate over all parameters rather than building if blocks? So for ...
1
vote
2answers
927 views

Why am I getting “Static method cannot be referenced from a non static context: String String.valueOf(Object)”?

I have this static class called from my lightning component, but am getting the error "Static method cannot be referenced from a non static context: String String.valueOf(Object)" on the line ...
0
votes
1answer
53 views

Change Url Params

I got lost here with an issue when I try to achieve a case which a user can click on a button and change the language of a form in visual force page. I know a way which works but don't support IE ...
0
votes
1answer
233 views

Access parent record id from visualforce page called in custom list button?

I’m trying to create a custom List button that can call a Lightning Component. However because that’s not yet directly possible, I’m trying to embed the Lightning Component in a Visualforce page and ...
2
votes
3answers
246 views

How to pass dynamic arrays in Lightning

I'm not able to pass a dynamic string array into a component without using java script. Example: values="{!v.foo + ',bar'}". In this example, the (expected) array seems to be passed as a String. I ...
2
votes
1answer
135 views

Using queryLocator in the REST API /services/data/v44.0/jobs/ingest

I am doing a report for my Jobs and I need to return a specific Job information using the REST API /services/data/v44.0/jobs/ingest. When I am using the REST API, it is limited to 1000 records. I ...
3
votes
1answer
325 views

Pass an enum value from lightning controller to Apex

Is it possible to pass an enum value from lightning controller to Apex? Here is what I tried lightning component part const action = component.get("methodC"); action.setParams({p: "VIEW"}); ...
2
votes
2answers
3k views

How to pass parameter to flow launched from Quick Action

I have created a quick action in account and launched a flow. I need to get account id in that flow. Is there anyway to achieve this? Currently I implemented with a custom url button and passed ...
0
votes
1answer
30 views

Actionfunction doesn't work

I cannot find the reason of this situation. Please help experts. I have several actionfunction and all of them are using for saving value to Controller variables. I this situation, one of them doesn'...
2
votes
1answer
362 views

Generating reports through custom link which works in Lightning as well as Classic

I want to create a custom link to navigate to a report mentioned based on the parameter passed to it but for creating a custom link which navigates to a report in Classic we need to pass the parameter ...
0
votes
1answer
406 views

Field Service Ligthning Mobile App Extension URL Global Parameters

I wants to open iOS app using app extension from Field Service Lightning(FSL) application. Is there anyway to open the iOS app with the same session from which the FSL app is logged in(like passing ...
0
votes
1answer
52 views

Need help to pass Account Id as parameter of Command Link

I have a VF Page Account Detail hich displays list of account Names. The account Names are command link and clicking on the link redirects to another page which displays the account Id. I have ...
1
vote
1answer
230 views

How to put a list in the parameter for class and use its variables?

I have a JSON and I need to pass the data to a list, then use it as my class parameter. I've managed to pass JSON to a List, but when I put it in the class, it throws the following error: "global ...
1
vote
1answer
1k views

Passing parameter in URL in Lightning component tab

I have created a Lightning Component Tab and i have to pass parameter in its url (Specifically Opportunity Id). Email with link will be sent to the user and when user clicks on that link that ...
1
vote
1answer
57 views

Populating multiselect picklist from page reference

I'm sending some parameters to custom controller of my object, which should be populated on multiselect picklist. In controller I'm creating a new Page Reference, where I put all parameters by using ...
1
vote
1answer
328 views

How can I pass a custom object type as a parameter in a method call?

I am working on a Lightning Component and I am trying to refactor my code. I have four combo boxes set up to query junction objects. The selection for object one determines what fills the list for ...
0
votes
0answers
109 views

Pass an instance of a custom class from lightning component to apex

Is it possible to pass an instance of a custom class from lightning component to apex? For example I have the following class: public class DataNode { @AuraEnabled public List<List<...
-2
votes
3answers
2k views

Pass a JavaScript object to Apex controller in lightning

Is it possible to pass a JavaScript object to Apex controller in lightning? Here is what I tried: @AuraEnabled public static void changeProgram(Object info) { update new ...
0
votes
2answers
158 views

PageReference .getParameters Method - Javascript Equivalent

Is there a javascript equivalent to the .getParameters method of the PageReference Class? Elaboration of what I'm trying to do: I am have a VFP search page and a CTI adapter. The CTI adpater pops ...
2
votes
1answer
1k views

Pass parameters to lightning component from a quick action

I built a quick action on Campaign that opens a lightning component. I am trying to pass parameters like, say the Id and the name of the Campaign. Earlier I built this using Detail Page Button and ...
1
vote
1answer
48 views

How Exactly Do the Class and Trigger Connect in this Design Pattern?

Early on as an Apex developer, I adopted the following one-trigger-per-object design pattern: Class public with sharing class caseTriggerHandler { public static boolean firstRun = true; ...
-1
votes
2answers
31 views

actionFunction doesn't work when not using all the parameters

I'm using the actionFunction to call a method to create payments from my visualforce page. The thing that changes is the payment type (sometimes its cash sometimes its check and sometimes both). The ...
2
votes
1answer
257 views

How to capture URL parameters

I have used Community builder to build 'tab' and mapped it to VF page checkorder but when I try to load https://domain-url/conveyance/s/checkorder?id=a2O21000000aU52 ,I am unable to capture id ...
4
votes
2answers
236 views

What are the risks or drawbacks of creating Parameterized Interfaces using of the Apex API version 25?

Unfortunately, as of API version 26, SFDC removed parameterized interfaces. However, it is relatively easy to create new interfaces and set the version as 25. So, to take the example from ...
0
votes
0answers
181 views

Formatting parameterized custom label inside subject for Visualforce Email template

I'm trying to use the format() visualforce function to have a parameterized custom label as my Visualforce Email Template subject. This is my current code: <messaging:emailTemplate ...
0
votes
1answer
985 views

How ro pass an List/array from javascript controller to helper

I have the following attribute in my lightning component <aura:attribute name="serverList" type="Opleiding__c[]"/> I can call this in my javascript controller with var serverList = component....
-2
votes
1answer
1k views

Pass value from class to another class [closed]

I have a class which receives a value from a lightning component how do I pass this value to another class. I get the error: incorrect signature Return Class public class PassDoelgroep { @...
6
votes
2answers
3k views

Define APEX method with default arguments

I am curious if APEX permits declaration of default arguments (or parameters if you will). When calling the method without specifying the value, method would be executed with the default value, ...
4
votes
1answer
502 views

Field Service - How to get record id inside visual flow?

Iv'e created a flow that is embedded inside fsl app. Inside the flow App Extension I set it to run only on WorkOrder object. I need to use the record id inside my flow but i'm not able to get it. I ...
4
votes
1answer
465 views

Generating dynamic reports in partner community with Custom URL field to pass the parameterrs

We are facing a problem for passing dynamic filter values to reports from partner communities. We have tried all the combinations of pv0 and fv0. It is working fine in a full org but filters are not ...
7
votes
1answer
4k views

Content Document download URL params

I spend hours to find a way to control download behavior of pdf-files (when to download and when to show inline) and did not find anything. What I got so far: the main thing that do all files ...
4
votes
2answers
191 views

PageReference Parameters Overwritten Even With Different Case?

I ran into this issue and believe this is a Salesforce bug, and I am looking for confirmation. Maps are supposed to be key case sensitive but when we use the pageReference.getParameters.put() it does ...
1
vote
0answers
109 views

Encoded characters break the VF Page

I have faced an error when using the character encodes in URL parameters. We are using TUPAS verification in our Salesforce customer community. When the user authorizes with the bank codes he got ...
0
votes
1answer
287 views

Check if page parameter is null in visualforce page

<c:CPPListViewComponent AccountId="{!IF(ISNULL($CurrentPage.parameters.accId), null,$CurrentPage.parameters.accId)}" RecordTypeValue="CPP"/> I am trying to pass the page parameters as ...
0
votes
2answers
159 views

Add parameter on send classification level

Hope you can help me on this question :) On our website we use a lot of Sleeknote forms, and especially our sign-up forms perform exceptional. We'd like to hide these forms from all our our ...
0
votes
0answers
168 views

Salesforce Napili Lightning Community - how to get rid of URL parameters

Is there a way in a Lightning Component to tell it to remove the parameters from the current URL? If I add parameters at some point during navigation, Salesforce keeps those parameters through the ...
5
votes
1answer
5k views

Passing parameters to a Lightning Component inside a Lightning Tab

I created a lightning component that basically needs to receive an Account Id to work with, so when I was developing it, I created a standalone application and simply passed the accountId that I was ...
-1
votes
1answer
2k views

How to get value of parameter on URL on lightning community page? [duplicate]

I have URL in Lightning Community page, I want to get value of parameter from this ULR in Lightning. https://www.testurl.com/page?accountRef=test123 How can I get value of accountRef? I have tried ...
1
vote
1answer
982 views

Passing a parameter to batchable class

I have the following batchable class: global class batchableClassName implements Database.Batchable<sObject>, Database.AllowsCallouts { global Database.QueryLocator start(Database....
1
vote
0answers
132 views

How do I send a parameter to the lead convert page for Opportunity Name field. IN LIGHTNING!

IN LIGHTNING EXPERIENCE: I want to pass the Opportunity Name as a parameter to the Standard Lead Convert Form, so that users can just deal with the Account creation and press save, if they leave the ...
1
vote
2answers
204 views

Passing parameters with different names and treating it as one

I have to pass language code from the URL to VFP/Apex Code, and the language parameter can be in two different name lang language so it can be passed like www.something.com?lang=en_US or ...
1
vote
1answer
862 views

getParameters().get('custompara') Not Getting URL parameter

The below controller is attempting to grab an custom object id from the URL. The logs show that it fails to assign the string var para the id value from the URL. The system.debug for var para returns ...
0
votes
2answers
239 views

Passing Param to Apex Class for Delete from PageBlockTable

I am trying to add a delete function in my Extension class on my visualforce page. The param on the visualforce page from the PageBlockTable row is not being passed when the CommandButton Action is ...
0
votes
1answer
344 views

Using interfaces as parameter arguments

Is it possible to use interfaces as parameters within Apex? As an example: public interface InterfaceExample{ void example(InterfaceExample ex); // Will not compile InterfaceExample example2(...