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

learn more… | top users | synonyms

1
vote
1answer
8 views

How to get namespace of all packages installed in a salesforce organization?

I want to fetch the namespace prefix of all packages installed in a salesforce organization.How can I do that?
0
votes
2answers
11 views

How Can I made Compulsory User Look up field on my Custom Object Page layout

I have Employee Custom Object who will be having his/her own User credentials, so I want to add Lookup of User on Employee Page Layout which should be compulsory / required field, so please help me ...
0
votes
0answers
11 views

How TO Upload Any attachment on custom object also rediobutton value for registration

i want to store radio buton value which i selected and as wel as associated question also Same custom to store Upload Any attachment like Registration Hi, the following is my example.......problem ...
0
votes
1answer
16 views

ListException: List index out of bounds: 0 for Custom Employee User account

When i create new User Account and login with that credentials, it gives me this problem if admin doesnt have set thier values yet !!!** AllotmentList = [select id, Days_Remaining__c from ...
1
vote
0answers
14 views

System.ListException: List index out of bounds: 0 error for Custom Employee Profile User

I HAVE ALSO TRIED "isEmpty()" When i create new User Account and login with that credentials, it gives me this problem if admin doesnt have set thier values yet !!! AllotmentList = [select id, ...
1
vote
1answer
20 views

Tool tips in visualforce chart

I have a VF where I am plotting percentages in bar graphs, but in the tooltip, I want to show the revenue associated with the record. Please note that percentage and revenue are in the same wrapper ...
3
votes
2answers
20 views

OOTB Multiple contacts feature in Visualforce

Is it possible to access the new OOTB multiple contacts on tasks feature?
3
votes
0answers
42 views

Implementing Trigger Framework(KevinOHaras)

I've been researching some best practices, and trigger frameworks and I found Kevin O'Haras TriggerHandler Framework. Now I don't fully understand it, I don't understand how to reference the Trigger ...
1
vote
1answer
22 views

Accessing child records in visualforce

I have an object Feedback_Comment__c which lookups to Feedback__c. How can I access "Feedback_Comment__c" fields in a datatable column? I could pull all Feedback__c fields like this... ...
2
votes
2answers
31 views

Jquery datatable error pops up when table is loading

I am using datatable plugin in a visualfroce page. Below warning popsup only at the time of page loading and table looks good after closing the alert. Here is the code... VisualForce Page ...
0
votes
1answer
19 views

Editing Custom Object Records in a dataTable

Unable to edit a custom object in VF. Here is my controller public class dataTableCon { List<Feedback__c> fb; List<Feedback_Comment__c> fbc; public List<Feedback__c> getAccounts() ...
0
votes
2answers
48 views

What are best coding practices for SFDC? [on hold]

I was searching on net for best coding practices and found many like which focus on one item for ex. no soql in loop and things like that but did not find consolidated list. So here posting this ...
1
vote
1answer
45 views

How to Create Custom Sidebar in Visual force page?

Is it possible to create custom sidebar in visual force page? I want to have a sidebar similar to the one we see in Setup page. Like this!. Is there a way to do this?
1
vote
2answers
14 views

Formatting Date in Visualforce - Complex version

I have this code <font face="Arial">Invoice Date: <apex:repeat value="{!Opportunity.Invoices__r}" var="line2"> {!line2.Invoice_Date__c} </apex:repeat> </font> which ...
2
votes
1answer
22 views

What would cause a trigger to execute twice?

I have a before update trigger that essentially records upgrades or downgrades when an opportunity gets updated and then logs this change in a new custom object. The concept is pretty simple, for ...
0
votes
1answer
16 views

Need Better Search Conditions on Duplicate VF Page [on hold]

I have an apex class that brings up duplicates when a user enters in an account name in the search box on the visualforce page. Right now, the search takes the exact letters written into the search ...
0
votes
2answers
24 views

SOQL question - Select Opportunities based on Contact Fields

I am trying to generate a query in APEX related to the Opportunity and Contact objects. I want to select Opportunities based on the info contained in the FirstName field of the linked Contact. In ...
5
votes
1answer
37 views

Visualforce remote objects

I was reading through this documentation. http://docs.releasenotes.salesforce.com/en-us/spring14/release-notes/rn_vf_remote_objects.htm As per the doc: Visualforce Remote Objects are proxy ...
9
votes
3answers
142 views

Why is my Set<Object> reference not able to point to a Set<SomeSpecificObject> collection, when it works for Lists?

Take the following line of code: Set<Object> accounts = new Set<Account>(); When I try to execute this in developer console I get an error Illegal assignment from SET to SET Same error ...
2
votes
2answers
39 views

Truncate inputtext field

the input for my inputtextbox is stored in a value which is a textarea(255). Can I somehow truncate the input field so they cannot put in more then 255 characters? right now it lets them but it causes ...
2
votes
2answers
42 views

como puedo resolver este error que me aparece / how to resolve error: 'apex cpu time limit exceeded'

tengo mas de 4000 registros en cada uno de los objetos como puedo resolver el error que me aparece de apex cpu time limit exceeded public class ConciliacionController { //declaracion de variables ...
3
votes
2answers
59 views

I am getting this error: System.LimitException: Too many SOQL queries: 101

I am getting this error System.LimitException: Too many SOQL queries: 101 when I run the class bellow. It seems like it is affecting all the triggers linked to NRProducts__c Object(This object has ...
-2
votes
0answers
22 views

Integration Process using SOAP API in Salesforce.com [on hold]

Iam new to SOAP API. I dont have any clear idea about SOAP API. Can any one explain step by step procedure for Integration process and How to send request & response, oAuth. And also i need ...
2
votes
3answers
43 views

HTML equivalent of apex:inputFile?

Is there a html equivalent of <div id="file"> <apex:inputFile value="{!attachment.body}" filename="{!attachment.name}" id="file" title="Upload Attachment" ...
0
votes
1answer
23 views

Apex trigger – that can count how many times a field being populated and last populated by record type

I had a random idea, and I want to know whether it’s practical, Aim – To generate a report that identifies the number of a times a field has been populated by record type, by object and when it ...
1
vote
1answer
10 views

email BCC limit

I am sending out emails via APEX code. SO far I am facing exceptions when the bcc characters are around 500 - 550 characters or more, and the number of bcc email addresses is around 21 - 25 or more. ...
5
votes
1answer
61 views

stackTrace is null within managed code

public class TestEx{ try{ //some code }catch(Exception e){ string errmsg=''; errmsg+=e.getmessage(); errmsg+='\n'; errmsg+=e.getCause(); errmsg+='\n'; ...
2
votes
1answer
26 views

Can we set the property at run time and get the values from Custom types?

I have a wrapper class. In that i need to access the property and its value at run time. From the code below, Wrapper class: public with sharing class SalesOrderWrapper implements Comparable { ...
1
vote
1answer
17 views

PageBlockTable not reRendering correctly after commandButton click

I has to reRender the pageblocktable after commandButton click. I am displaying custom object values in a pageblocktable. There is another pageblock to insert new record into the object along with a ...
1
vote
3answers
60 views

Can't seem to pass param from VF page into my Controller

I want to pass a parameter from my VF page into a method in controller. VF <div id="output_table"> <apex:form > <div ...
0
votes
0answers
14 views

Apex component like HTML component <legend>

Does any Apex component exist like the <legend>My legend here : </legend> tag in HTML? I don't find any component like this on the Visual Force API.
0
votes
2answers
34 views

Dynamically display picklist values based on Record type in vf page

I am having two record type "Record Type 1" and "Record Type 2" on case object. In this two record type we are a having a picklist field call state__c. In Record Type 1 State__c values are "A,B,D" In ...
1
vote
1answer
20 views

CaseHistory is not created

I am writing an Apex test for a trigger that fires when creating or updating cases. Per the Salesforce documentation, CaseHistory objects are created automatically when updating Case objects: ...
0
votes
1answer
26 views

Ajax call not refreshing form data

I am trying to use ajax - apex:actionfunction to update related account when opportunity is selected. <apex:form id="myForm1"> <apex:pageBlock id="myPageBlock1"> <tr> <td ...
0
votes
0answers
7 views

Create CustomObjectCriteriaBasedSharingRule through metadata CRUD API

I'm trying to create sharing rule (critteria based) through Metadata API (wsdl imported to APEX). After many tries and fails I have got to point when I no longer know what to do. Currently I have XML ...
4
votes
0answers
20 views

Select file and call upload method with one click? - apex:inputFile

When using apex:inputFile to attach docs to an object, <apex:inputFile value="{!attachment.body}" filename="{!attachment.name}" id="file"/> I need to click a second button after selecting my ...
1
vote
1answer
12 views

Counting account totals within another account type

In our Salesforce deployment, we have two account types (partner and merchant). Merchants have a custom field that contains their parent "partner" account. I am trying to write a trigger (on ...
2
votes
1answer
20 views

Custom Field Creation Using Apex SOAP Call Without Configuring Remote Site Settings

If we Configure Remote site settings the below code adds custom fields perfectly. When we remove Remote site settings it throws an exception "EXCEPTION: System.CalloutException: Unauthorized endpoint, ...
2
votes
1answer
47 views

How to hide fields (input) by jQuery - Visualforce

I would like to show or hide fields depending on the value of another field. I was not able to find and implement the existing topics. function selectService (){ if($jquery('[id$=inField1]').val() ...
1
vote
1answer
18 views

Can we create report folders through Apex

I like to create a report folder via Apex trigger/class is it possible. Thanks in advance
1
vote
3answers
32 views

How to filter list using date?

I want to filter the items in the list based on its date.How to achieve this? public List<SfResults> listCon {get; set;} public PageReference filterSearchResults() { //dateFilter is the ...
2
votes
1answer
30 views

Convert DateTime to Date

I want to Convert DateTime into Date I have been trying this out ..below is the code snippet public void searchSFDC() { DateTime lastModDate ; for(sObject resultSet : searchResults[0]) { // ...
2
votes
1answer
76 views

Is there a way to overwrite the CSS of apex components in salesforce?

I'm using a pageBlock component, it's obviously very handy for storing my returned object/s but I really don't like how it looks. As I'm quite new to apex/salesforce, I'm wondering is there a way to ...
0
votes
2answers
40 views

Trigger to update 2 picklist values

I have a requirement for updating two picklist value if a checkbox is ticked. Feedback__c is one object which has Status__c and Resolution__c picklists. Feedback_Comments__c is another that will ...
1
vote
1answer
19 views

Add Row Functionality in Salesforce [duplicate]

Can a similar Add Row functionality as shown above be implemented in Salesforce? I don't necessarily want to create new custom fields each time, but at least make them visible when the button is ...
2
votes
1answer
57 views

reRender commandButton depending on selectOption value in visualforce

In visualforce page I have a custom picklist with the values "Show" and "Hide" and two command buttons(Button A & Button B). When the picklist value is "Show", Button B needs to be displayed and ...
1
vote
1answer
72 views

System.NullPointerException: Attempt to de-reference a null object on trigger

I am trying to call a method from a trigger that will generate a pdf whenever any order(object) record is created. I wrote a after insert, after updated trigger and called the method for pdf ...
2
votes
1answer
29 views

Return a list of attachments for a custom object

I'm looking at the following example to upload some attachments to a custom object, http://blog.jeffdouglas.com/2010/04/28/uploading-an-attachment-using-visualforce-and-a-custom-controller/ It works ...
1
vote
1answer
32 views

How to add multiple attachments to an email template?

I'm creating a UI that feeds into an email template via visualforce. One of the features I want to add is the user should be able to click checkboxes and add attachments to an email template. When ...
2
votes
2answers
47 views

System.DmlException: Insert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Name]: [Name]

I am in the process of updating some code I wrote a year ago. Due to some changes made to our organizations support structure, my code is no longer valid. I attempted to modify the code to reflect ...