Skip to main content

Questions tagged [extension]

Content relating to Visualforce Controller Extension Classes

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

ExactTarget - How to post a record to a data extension that has no primary key?

I have a data extension with the following fields: recordId - number recordKey - text - length: 50 recordValue - text - length: 50 None of the above fields are primary key, because they can occur ...
0 votes
0 answers
28 views

While Retriving the Resource from the Org in VS Code Facing SFDX command Error regarding sfdx.retrive.component

I am trying to retrive the resource from the connected Org in VS Code. While clicking on the retrive button vscode is showing me the error like this: Error running command sfdx.retrieve.component: ...
0 votes
1 answer
362 views

Can I use session id from chrome cookies to access salesforce API?

I'm in the process of developing my own Chrome extension for personal use, aiming to streamline my daily tasks effectively. This extension will be akin to Salesforce Inspector but will be tailored to ...
0 votes
1 answer
35 views

Publishing a Managed Packaged Extension in the AppExchange

If I create a managed package extension and want to list that on the AppExchange, Im assuming the end user would need to have the Base Package first installed in their org. Is there a way where you ...
0 votes
1 answer
438 views

No version number was found in Dev Hub for package id and branch 'x' and version number 0.0.0.LATEST that resolved to build number 214

Today I have received the following error which seemed quite ambiguous to me No version number was found in Dev Hub for package id 0HoPACKAGEID000AAA and branch 'x' and version number 0.0.0.LATEST ...
-1 votes
1 answer
38 views

Table in Vf page not getting populated in the order which I selected

Everything below are custom objects. I selected the Opportunity Line Items in the order of Oli1, Oli2 and then Oli3. Then I click on DMail button, and I see the table is populated in a different ...
2 votes
1 answer
593 views

Marketing Cloud send syncronized Data Extension information to Data Extension

i just setted up my Sales cloud integration in MC. Im now able to see my "Lead" Data in MC syncr. Data extensions. But i cant get the Data into a normal Data Extension to work with the information i ...
1 vote
1 answer
1k views

Add field to active SFMC Data extension

Can you add additional fields to an active Data extension? These data extensions are currently being used to populate Active Journeys so I was not sure if I could add additional fields to the DE. ...
0 votes
1 answer
3k views

Use input field value from standard controller extension property

I am trying to get an input field value to reference a standard controller extension property. Here is my controller extension: public class LicenseActivationController { private final Contact ...
0 votes
1 answer
629 views

Sfdx vs code Extension causes high cpu load

I used to work on Vs code for lwc development . I am not aware of the previous version but After Updating to version : 1.51.1 . Authorize an Org : Redirecting to Browser but after logining in the ...
0 votes
1 answer
654 views

How to add delete button on each record in pageBlock table - VF

I have an extension that allows users to input information and I am trying to add delete functionality to each record in apex:pageBlockTable. How can I edit my extension code to add this? What I've ...
0 votes
0 answers
972 views

Apex extension High CPU - Zulu Platform x64 Architecture [duplicate]

I experience problem with high CPU usage after every start of visual studio code. It is strictly related to apex extension. It started happening when some pop up appeared in bottom right corner. I ...
40 votes
4 answers
51k views

What is the Difference Between Controllers and Extensions?

Can any one explain the usage of controller and extensions in Visualforce? In which scenario we have to use controller and extensions?
2 votes
1 answer
246 views

How can I clear all data from data extension using Java fuel sdk API

PerformRequestMsg performRequestMsg = new PerformRequestMsg(); performRequestMsg.setAction("ClearData"); PerformRequestMsg.Definitions definitions = new PerformRequestMsg.Definitions(); definitions....
0 votes
1 answer
379 views

Expose Visualforce instance url for making rest api call

I have started to make a chrome extension for salesforce. I got this link to start off with. https://github.com/mwelburn/Chrome-Extension-Force-SOQL-Popup This is a simple extension which queries the ...
0 votes
1 answer
312 views

I have added a vf page(displays an error message) in pagelayout. I don't want it to be displayed when the case has attachment

I have a vf page that displays an error message. On Case object when I edit a case, and save it with an attachment, I don't want it to display that vf page. VF Page Code: <apex:page ...
-2 votes
1 answer
128 views

Null reference in loop?

I'm getting this error: System.NullPointerException: Attempt to de-reference a null object when I'm trying to pass child records to new record creation(order_LIne_item__c). Here I have nested ...
1 vote
1 answer
6k views

Standard controller and extension method with same name [duplicate]

Provided you have a Visualforce page that uses both a standard controller and an extension class. The extension class has a method with the same name as a method in the standard controller (i.e, ...
2 votes
1 answer
159 views

How should I write and structure a good Apex Page Extension Test method?

I'm on the Advanced Apex Specialist Superbadge step 8 and I'm writing the test class, but what they are asking for seems different from what I've been taught about test methods. I thought that I ...
2 votes
3 answers
1k views

SOQL Query Limits in Wrapper Class (using dlrs)

I have been trying to build a wrapper class which creates a junction Object (Delivery_Note_Line_Items__c) between two other objects (orderLine & Delivery_Note__c) depending on the Visualforce's ...
2 votes
1 answer
694 views

Combine apex class for VF pages that use a standard controller and a controller?

I have a search box that will pull into all accounts we currently have. It will then direct to a custom record detail page that shows account's main information with the equipment they currently have( ...
0 votes
1 answer
3k views

Apex Class for Extension AND Standard Controller Save Button

I have a visual force page using an extension and the standard controller. I added a pagereference save() action to the page but it is only updating the child and grandchild records. How can I get ...
0 votes
0 answers
1k views

Automatic pop up appears on clicking on custom button

I have a Url custom button, and for some record types, a pop-up appears on Napili Community after clicking that button. Accept Button url: /XXXX/X/acceptreferral?recordId={!Service_Request__c.Id} ...
1 vote
1 answer
2k views

Dynamic visualforce table using Map

I was originally building lists using dynamic query which works great, like so: extension: // initialize lead variables and columns string leadFields = [SELECT lead_fields__c FROM ...
-1 votes
2 answers
257 views

Assert on a standard controller

I am starting to learn writing testclasses but dont know how to assert on a standard controller see my code below public class accSearchController { public string searchStringContact {get;...
1 vote
1 answer
2k views

On click of save record button i need to download opportunitylineitems details as pdf

I have written one VF page,1 extensions on opportunity detail page with show products button.Once i click show products,it will show all products present in that current opportunity.List of products ...
0 votes
1 answer
278 views

Controller Extension Test Help?

I will start out by apologizing for being a total n00b but, I need some help increasing my code coverage ASAP. Currently I am at 73%... so close!! Any help/advice/anything is a huge help! Thank You! ...
0 votes
1 answer
2k views

How to display next,last,previous and first buttons on a VF page in accordance with conditions?

What i want is , to display the next and last button only when its the first page,first,next,last,previous when its 2nd page or more, and first and previous when its last page of opportunities. <...
0 votes
1 answer
2k views

when do we use ApexPages.StandardSetController in apex class?

I recently started learning and using extensions, but i was not able to understand the use of ApexPages.StandardSetController Controllername(){}. I used it in last two days but i dont know why it is ...
1 vote
1 answer
41 views

Field updating in client but not server

I am trying to update quantity field in customer_product__c, but no luck - its updating in client level but not in server Code: /*method to update quantity in customer product */ public void ...
1 vote
2 answers
3k views

Get data from apex standardcontroller into extension

I have a custom object standardcontroller and an extension. I have embedded a VF page on the custom object's pagelayout. When the new custom object is created, I want to be able to access the custom ...
-1 votes
2 answers
4k views

Placing a personalized string from a data extension field in an email

I have a link with a personalized string like below. http://example.com?email=%%emailaddr%% If i place this in an email than the personalized string %%emailaddr%% will resolve to the email address ...
2 votes
1 answer
156 views

Extension Test: Constructor not defined: [<Extension-Name>].<Constructor>(ApexPages.StandardController)

I tried to write a Testclass for an Extension that is supposed to handle a replacement for a creation-page. TestClass: @isTest public class VisualforcePageExtTest{ static testMethod void ...
3 votes
0 answers
220 views

How do I import contacts from Data EXtension into Mobile Connect?

I already have audience in Data Extension. I would like to send SMS to those audience, but I can't access Data Extension from Mobile Connect. I have been told that I can import Data Extension into ...
0 votes
1 answer
5k views

Chrome Extension ( for API Name and Value)

I remember seeing a chrome extension which gives the fieldAPI + values of the field populated on the detail records. You can copy the code and run to insert the record in other org or test classes. ...
1 vote
2 answers
144 views

Populate Order fields from Account

My first controller extension here, trying to populate some customer order fields based on the Order Account selected. Not having much luck. Also uncertain if the two lines I commented out in the ...
0 votes
1 answer
168 views

Running code yields random return

This is a long one. Copied and pasted from blog entry found here: http://www.bespokn.net/2017/01/22/code-anomaly-a001/ Running code should not produce different results given the same inputs. ...
0 votes
2 answers
5k views

What is the filetype extension for salesforce pages?

I'm trying to embed a standard salesforce records page and one of the criteria for the webapp that I'm using to do that is that the iframe url be terminated with a filetype extension. Looking at the ...
0 votes
1 answer
1k views

Why do I keep getting a "no viable alternative at character ´´ " error within my test class?

I´m trying to test my extension: public class CampaignRelatedListExtension { public List<CampaignMember> campaignMembers { get; private set; } public CampaignRelatedListExtension(...
0 votes
1 answer
574 views

Constructor not defined: [CheckPostalAddress].<Constructor>()

I have created a extension class and when i try and deploy i get the error as described in the title. I have searched in the internet, but cannot see a resolution, therefore, if anyone has any ideas, ...
1 vote
1 answer
347 views

Export ExactTarget single record to CSV files

I would like to export a single row from a Data Extension to CSV in FTP. Once the download is completed i would like to delete the same record from Data Extension.
4 votes
1 answer
347 views

Set Two Different Values for the same field in a vf page via controller extension?

I am creating a visual force page where a user can log a completed task and set up a new one. I'd like to set default values for the Status to New for one section and Complete for the other. Is ...
2 votes
1 answer
778 views

Is it possible to use a field set with a custom controller? [closed]

I'm been searching the forum, but haven't found a clear answer. Is it possible to reference a field set with only a custom controller? I could possibly use a standard controller and an extension, ...
1 vote
1 answer
713 views

Help with Controller Extension for Save Redirect Function

I need help creating a controller extension for a Visualforce page. The extension should cause the Save button to redirect to a visual force page named "ProductSelector". The relevant portion of my ...
1 vote
1 answer
68 views

What am I doing wrong with my extension?

I have two salesforce custom objects, service case and customer. I am trying to make a page that displays data from both objects. I used service case as a standard controller and get no problems. I ...
2 votes
1 answer
300 views

Problem in reRender of <apex:detail> tag on click of commandbutton

I want to toggle edit mode to on/off for <apex:detail> component for account by dynamically setting "inlineEdit" to TRUE/FALSE attribute on click of commandbutton.Following is my code. It keeps ...
2 votes
2 answers
97 views

Embedded VF Page Not Responding To StandardController

I am trying to embed a custom VF page into my Accounts layout. I believe my error is in the standardController. I assumed it should be SObject but it did not work and now I am not 100% sure what it ...
0 votes
2 answers
63 views

Trouble relating second object for dynamically added records From Controller Extension

I'm editing this, as I just realized that the two objects are being saved, but they are not being related. These two objects are related via lookup. I'm relatively new to coding, and haven't been ...
1 vote
0 answers
57 views

Loop over null throws error in Production but not Sandbox?

I'm trying to debug someone else's code where they're trying to populate a visualforce picklist with options from the controller. Without going into detail, the page is failing to load because the ...
0 votes
2 answers
77 views

How to add new fields to a VF page when they are not included in the custom controller used for the page

I have a custom controller and VF page which allow my users to create and save a contract by using several information fields on the opportunity and related account page. Since this was first created, ...