Ralph Callaway
  • Member for 9 years, 4 months
  • Last seen this week
How to get <apex:form> to have two INDEPENDENT columns with fields?
Accepted answer
3 votes

Unfortunately you can't specify columns that way with apex:pageblocksection, it's always left-to-right. You could just use one field set and just training people to put them into the field set in the ...

View answer
Critical Update Bug? "Add a Namespace Prefix to Query Parameters and pageReference.state Properties"
Accepted answer
3 votes

When the critical update mentions query parameters it's referring the the values in the URL after the ?, so BillingCity=, Sales_Rep__c=, etc. The terminology is a bit inconsistent, see this question ...

View answer
How to avoid consequences of sandbox security token refresh - Eclipse IDE projects
3 votes

Security tokens will match what's in production after a sandbox refresh. To avoid people needing to update their credentials after a refresh you'll need to continue to use the production password / ...

View answer
Disable commandButton after first click to prevent double submission
3 votes

You can use action statuses to accomplish this without javascript <apex:actionStatus id="mySaveStatus1"> <apex:facet name="stop"> <apex:commandButton value="Save Mappings" ...

View answer
word-wrap not working with VisualForce PDF generation?
3 votes

Unfortunately this doesn't work. Salesforce lists this as a known issue marked as no fix. Long line of text doesn't wrap properly when PDF is generated via visualforce. It also doesn't respect ...

View answer
calling a webservice method from VF page
Accepted answer
3 votes

Your code looks good, no red flags. The best way to troubleshoot is to use liberal system.debug statements, debug logs, and anonymous execution to find the failure point and fix it. The mostly likely ...

View answer
How to include/escape a single quote in field update?
Accepted answer
3 votes

Turns out it's pretty easy, you can use double quotes in the formula values, which avoids the need to escape a single quote, e.g. Contact__r.Name + "'s Submission"

View answer
Unable to Change Log Levels - Winter '16
Accepted answer
3 votes

Was able to get the page to load again by clearing out the TraceFlag table select id from TraceFlag in dev console query editor (enable 'Use Tooling API') Select all rows, click 'Delete Row' button

View answer
Does sending SingleEmailMessage with template use a SOQL query?
Accepted answer
3 votes

No, sendEmail doesn't take a SOQL query, although it does consume a DML statement. Looking at your stack trace the extra queries are coming from the task trigger. You can use the Email....

View answer
Debugging logs in Developer Console is not working
3 votes

I've had times when I can't ever get logs to show up for the current user or other users. It seems like bad data can get stuck in the trace settings. I'm usually able to work around with one of the ...

View answer
I have written a test class for wrapper class code coverage is 95%?
3 votes

Looking at your code the line that's not getting covered is because your test class doesn't have any instance of WrapperClassex that has a cbox value of true. Because of the condition if(w1.cbox == ...

View answer
Fubar - Rollup Helper Upgrade v6.3.9 - System.TypeException: Invalid conversion from runtime type rhx.RHX_Describe_Helper1 to rh2.PS_DescribeHelper4
3 votes

There was an issue mismatch between the Rollup Helper core (rh2) and Rollup Helper Realtime (rhx) packages. Support provided the following links for installing the latest versions of both packages. ...

View answer
Does Quote Line Item reference back to which OLI it relates to?
Accepted answer
3 votes

As @PeterKnolle pointed out, there isn't a relationship. Fortunately, there is a Force.com lab packages out there that can let you sync custom fields from opportunity line items to quote line items, ...

View answer
Add phone field to opportunity page layout?
Accepted answer
3 votes

It's not exactly clear what you're asking for, but here's some tips anyway. First, there isn't a native phone field on the opportunity, so that's not surprising there is nothing to add. Second, ...

View answer
apex:include vs. Visualforce component, when and why?
3 votes

While I don't have a good justification behind this, at DF 2011 tuning VF Pages for Performance, the product managers had a blanket "Don't use apex:include" it has performance issues. Given that ...

View answer
How to update new value for a field after insert or update in a trigger
Accepted answer
3 votes

You've got a couple issues going on. First, you should be using a before trigger. While there are some exceptions you never want to be updating a record that is being processed by the trigger using ...

View answer
Send email when changing Lead owner via Apex
Accepted answer
3 votes

Use workflow, criteria would be when the lead owner id changed, and then add an email alert to it ... Apex is totally possible, but a gross overkill, and also subject to limits on how many emails can ...

View answer
matcher.groupCount() always returns 1
3 votes

The matcher and pattern classes have always stretched my brain a bit too far. Fortunately, I've done this before and the following worked for me. Note my pattern may be different than yours. The ...

View answer
How to reduce view state
3 votes

There are two primary components of the view states, (1) is the data required to store the state of your controller, and (2) additional "housekeeping" info to store the DOM tree and lots of ...

View answer
HTTP Basic Authentication for Workflow Outbound Messages
Accepted answer
3 votes

No Unfortunately outbound messages are very limited in configuration, you get your fields, session id, and the object id and that's pretty much it which means no access to the request headers. ...

View answer
Using SOSL to find all related records
3 votes

No, SOSL only searches a small subset of fields, basically just text, email, name, and phone fields (not long text areas or picklists). Don't quote me on that list, for the life of me I couldn't find ...

View answer
What options are available when trying to "relate" Knowledge Articles to custom objects?
Accepted answer
3 votes

I've implemented a custom object with a text field to store the Id of a related OpportunityLineItem which you can't specify as the target for a lookup. The implementation wasn't terribly difficult ...

View answer
Problem creating HVCP unit test users for test class
Accepted answer
3 votes

When you're creating the contact and accounts for the portal user in your test they're going to have whoever's running the test or whichever user is specified in a system.runas() block. The key is to ...

View answer
Search content of a text file in apex?
Accepted answer
3 votes

You'll need to implement you're own parser to find the content you're looking for. You can could do this quickly by splitting the content into lines and then inspecting each for your Account Name: ...

View answer
Problem in making a field Required
3 votes

This sounds like it might be a bug. If you're seeing the red bar next to the right fields you can safely assume that the required flag is getting set correctly. Things that override field ...

View answer
Passing a paramater to make a new task from a button when multiple record types are available
Accepted answer
3 votes

Dealing with record type selection in custom new buttons can be tricky. Even if a user has access to multiple record types they can set a default record type in which case they bypass the record type ...

View answer
Retrieving a list variable in Apex?
Accepted answer
3 votes

Lists themselves don't have fields, just the object's in them. You need to either pull a specific object out or iterate over the list. Extract Object Inquery__c record = userList[0]; if(record....

View answer
Is it possible to create a Dynamic Component after a button is clicked?
Accepted answer
3 votes

If you wanted to avoid dynamic visualforce you just need to pass some data structure with enough information to render your column and repeat over that. Data Structure public class YourController { ...

View answer
pageblock title's text is wrapping
3 votes

If you're looking to present some help text instructions to the user I find a page message tag looks nicer than cramming a bunch of text into the page block title. <apex:pageBlock title="Do ...

View answer
Price Book Access Control?
Accepted answer
3 votes

Pricebook visibility is controlled through the sharing model. Create each price book and then click the share button on it and select the appropriate groups who can use it. One caveat for developers,...

View answer
1
3 4
5
6 7
12