Tagged Questions

A proprietary Java-like programming language for the Force.com Platform.

learn more… | top users | synonyms

0
votes
0answers
7 views

Passing changed value in inputField to Controller using apex:param

</apex:column> <apex:column headerValue="Capacity" id="CapacityColumn"> <apex:inputField id="cap" value="{!fest.Capacity__c}" rendered="{!isEditable}" > ...
1
vote
1answer
8 views

“Data not available” when using Database.rollback() in custom save action

In my custom edit page for LineItem__c records I have overriden the save button with my own implementation which does not only save the record itself but also change to child records. <apex:page ...
3
votes
0answers
8 views

SOQL Query on UserType encountering issues with local language

I was wondering if somebody would be able to assist with an issue I am encountering with my SOQL query. A user changed his local language to Dutch and now one of my SOQL queries is not returning the ...
1
vote
1answer
19 views

Getting the Lead Id from a Visualforce page

I have the following Visualforce page: <apex:page standardController="Lead" extensions="myExtension" showHeader="false" sidebar="false"> <apex:form > <apex:commandLink ...
0
votes
0answers
13 views

How to grant external access to Salesforce Object

I am working on a project that requires an external api PublicStuff api to access specific object (Case) in the salesforce app and update the records. I have created a remote access application ...
0
votes
0answers
14 views

Attach a dynamic PDF page

I have a requirement to create a pdf page in a new window based on dynamicly created records of custom object Incident__c when an User clicks a custom button. Then mail the PDF to the User. Please ...
0
votes
0answers
13 views

Image showing null in response

I'm trying to show image through API . But the image doesnt show up on page . With debugging it is showing image as null . Am i missing something or doing wrong ? Please help. Apex: public class ...
1
vote
1answer
12 views

Lightning aura:attribute with custom List type returns error?

The Lightning developer guide says that an aura:attribute can contain a List of custom apex type objects, like this: <aura:attribute name="colorPalette" type="List<docSampleNamespace.Color>" ...
3
votes
2answers
88 views

trigger design pattern

I was watching some videos on apex best practises and I spotted some discrepancies in advice people give. I wonder how you people code your triggers. The recommendation is to have one trigger per ...
2
votes
0answers
11 views

Reports API - Slow Down

Team, I wrote the below class on Thursday and it was working like a dream (1 - 2 seconds to load the page). Now, on Saturday when there have been no changes to the code since Thursday it take 15 - ...
0
votes
1answer
27 views

Records truncated end of page in PDF

I have an apex PDF page. There are five different tabpanels to show records. Now when number of records increases the last record of last panel in a page gets segregated to the next page. In such ...
0
votes
1answer
16 views

Rendered in Tabpanel

I am getting an error like PDF generation failed for render in a tab panel. I need to do conditionally show the tab panel. Can some suggest a way out. Please find the snippet from my page here. ...
0
votes
2answers
25 views

Batch class to set the recordtype

This batch class is created to set a recordtype to the records having NULL recordtypes. But it throws an error FATAL_ERROR System.NullPointerException: Attempt to de-reference a null object in line ...
0
votes
1answer
14 views

Is it possible to create an api for community users to connect to our salesforce org

Is it possible to create an api like google or facebook for our community users to use on their websites using the rest api. I did have an idea around creating connected apps on a user by user basis. ...
1
vote
1answer
19 views

Apex Trigger: After Update - need to update fields as part of query

I'm trying to make an email send to all contacts that are on an account related to a contract. To trigger it, I thought I'd have a field update on the record using time-delay workflows, and then the ...
1
vote
2answers
25 views

using group by in my query

I have the following query that adds each record to a list that is displayed in as dataTable on a Visualforce page. for (MyObject__c obj : [SELECT Date__c, Stage__c, Members__c, Type__c, ...
-1
votes
0answers
15 views

Avoid Duplicate map string key [on hold]

Can any one help me to avoid to remove duplicate map string Key: Map<String,List<OISP_Agreement__c>> mapSectionAgreement = new Map<String,List<OISP_Agreement__c>>(); ...
1
vote
1answer
17 views

options to export to csv

We currently have a scheduled batch process that sends out a nightly email that uses a visualforce email template that exports and attaches 4 CSV files. We are now wanting to create a new process ...
1
vote
1answer
21 views

I want to retrieve data from cloud and insert it into Salesforce

I have data on server that changed on daily based , so i want to retrieve data from this server and push it on Salesforce , i'm thinking to use apex batch with schedule to implement this process , but ...
0
votes
0answers
9 views

Access Level On opportunity

In what cases does the Access level on opportunity team displays as "Private". Recently we added few users as a team members default it displays the access level as "private". How does this happen? ...
0
votes
0answers
14 views

Insert Trigger not firing when creating record by REST API

I Have (after insert, after update) trigger on Account sObject. When I manually inserting or updating Account trigger fires, also when I updating existing Account via REST API request it fires too. ...
2
votes
3answers
39 views

Do big classes reduce performance?

I have a big (right now it's 1,4k lines) 'toolbox' class. I have a lot of static methods and wrappers there which are used in various number of services or manager/handler classes. Does anyone notice ...
0
votes
2answers
14 views

Background colored column headers in a pdf apex page without using pageblocktable

I have a requirement to show colored backgrounds for column headers of tables. Can someone suggest a way out without using pageblocktable? Please find my controller class here. public class ...
1
vote
2answers
23 views

API Name for Developement mode

What is the API name for "Developement Mode". Is it "UserPreferencesApexPagesDeveloperMode"? I am trying to retrive the list of User with enabled Developement Mode. Here is my query select ...
-1
votes
0answers
28 views

I am getting Attempt to de-reference a null object

Date d=date.today()-365; now I'm getting Attempt to de-reference a null object exception.please can anyone help.
4
votes
1answer
27 views

Which way to update apex class through API is preffered: MetadataContainer in Tooling API or compileClasses in Apex API?

I need to save some Apex classes through API in java and this question confused me: In documentation for the Tooling API I found an example how to update Apex class using MetadataContainer. This ...
0
votes
1answer
13 views

Apex:commandLink - mail to link

I have a requirement which is mail to link. In visualforce page I have a commandLink. If I click the link it should open user's default email application (Eg: outlook). How i can achieve this task. ...
1
vote
1answer
22 views

Getting Recursive Error in with test Class

I'm trying to create an update on the account object when someone creates or updates task. I'm not getting enough test code coverage, and I'm also receiving a recursive error when running the test. ...
1
vote
1answer
36 views

Remove Home tab with visualforce home tab

I want to remove the default home tab with custom vf home tab. Is there a way to achieve. Thanks!!
0
votes
0answers
10 views

Remove tasks, Notes and reports on side bar search

I want to remove task,note and report from sidebar search using standard functionality. Is there a way we can achieve this? Thanks in advance.
0
votes
2answers
33 views

Standard Save button on visualforce page doesn't update standardController

I'm trying to save a checkbox value (and eventually a pulldown list of invitee status) with a standard Save button but all it does is refresh the page. I want to update the custom object ...
1
vote
1answer
22 views

Column background color in pdf

Please someone let me know how to get a colored background of a column in pageblocktable in an apex visualforce page with renderAs pdf. I have tried with this. It works in pages but fails for pdf. ...
0
votes
2answers
19 views

Assigning a date value to a date field in Apex

I am having a problem with Apex. I have a custom field on my Case object: DATETIME: registerDate I have a Visualforce page for which I use input values, and I know how to use these input values to ...
1
vote
0answers
21 views

SingleEmailMessage CC is not working

I'm trying to send emails with TO, CC and BCC addresse mail.setTemplateId(emailTemplateId); mail.setTargetObjectId(emailTargetId); mail.setSenderDisplayName(Label.Sender_Name); ...
2
votes
0answers
13 views

Decryption of cipher text encrypted using AES(128) encryption with ECB mode

I am aware that SFDC supports decryption using AES(128 bit) using CBC mode. But I have a requirement where I need to decrypt a cipher text encrypted using AES(128 bit) ECB mode. One way of doing ...
1
vote
3answers
17 views

Execute Apex method avoiding required field validations - <Apex:Region> not working

Here I want to insert one record on clicking "Post" button, at the same time I don't want to execute code in "First" pageblocksection (avoid all required fields). <apex:pageBlockSection ...
1
vote
2answers
35 views

Show values in VF page from both map and list

I have a requirement to show map values and list values simultaneously in a page. Can someone suggest a wayout? Apex controller: public class IncidentDetailExtnController{ Incident__c oInc ...
2
votes
1answer
49 views

Test Class for Visualforce page

I have a visual page controller with save() function. Inside the save() function, there is an insert object. However, when I write my test class, I am unable to query the inserted object. ...
2
votes
4answers
60 views

Single Apex Class for Multiple controller classes

I have one Apex Class. I want to access that Apex Class variable from other controller classes. If I'll change the value from any controller, then that same value should be available to all ...
0
votes
1answer
22 views

Display Parent, child and grandchild's records

Once a parent(Contact) is selected I have to display a list of related records from child, grandchild and grandchild's child in one single page block. All the objects are in a lookup relationship with ...
0
votes
0answers
17 views

Having issue with SOQL finding newly created records

I have a system set up using Twilio to log calls in visualforce. After each call, it creates a custom Call_Log__c object, with a DialId field set to an arbitrary string eg. 'abc123' I also have a ...
2
votes
1answer
31 views

SOQL Query ( User - Opportunity - Task)

I created an email template, component and controller that will send different set of records for each user that has a specific profile. I am having problems in my query in selecting the users that is ...
0
votes
1answer
23 views

Filter list of records in controller displayed in an apex:pageBlockTable

My code is based on code shared by another stackexchange user. https://stackoverflow.com/questions/26183938/visualforce-page-does-not-display-a-list-of-records-or-any-records-but-it-can-di Where in ...
1
vote
1answer
13 views

Copy EventRelation data to a custom object

I'm trying to add a field to track event attendance (not just accepted response). I've created a custom object and a visualforce page. The problem I am having is copying the EventRelation data to ...
2
votes
1answer
33 views

How can I Deserialze JSON Object and save them to salesforce

I have the following JSON reponse format. I would like to save only specific information on salesforce i.e. all the user details, description, zip code, location, request_status, space and state: { ...
1
vote
0answers
26 views

Help with Apex code to test a triggers

I've have a child entity - Credit Application that is created on the parent entity - Lead(Appointment). After the child has been created, users go in an update information on the banks used for the ...
1
vote
2answers
37 views

Can you Help me with Code

Public static void opptyownermanagerupdate(Opportunity[] Opptylist) { List<Opportunity> Opptylists = new List<Opportunity>(); List<Opportunity> opptyToUpdate =new ...
0
votes
0answers
18 views

APEX trigger to Update Custom field on Opportunity Splits from Opportunity [on hold]

Can anyone help me write an APEX trigger to update a custom field on Opportunity Splits from the associated Opportunity record. It needs to update every time the associated opportunity field is ...
0
votes
0answers
19 views

Remove Business Days from Date

Did anyone try subtracting business days(excluding weekends) from a given date. The given date might also fall on a weekend. Please let me know if anyone has implemented this.
2
votes
1answer
13 views

Unable to update metadata (picklist values etc) after post install script is executed

Once a managed package is released, we have to perform several manual steps such as update picklist values, add field to layout, update field level security etc. And there are around 100's of ...