• scottnelsonsmith
  • NEWBIE
  • 50 Points
  • Member since 2010

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 7
    Replies

After the Spring '11 push on Friday night, none of our users can effectively use the Outlook SF plug-in. It cannot match any records. We've tried reseting the security token, but to no avail. This affected all of our Outlook users, so we're 99% sure it's due to the Spring '11 push.

 

Does anyone else have similar issues, or know what could cause this?

In my page I have a component:

 

<c:AccountFooSection title="DISPLAYING ALL CURRENT FOOS FOR {!titleLink}" />

In my controller, I have this:

 

private String getTitleLink { 
    return '<br/><a style=\'white-space:nowrap\' href=\'/' + id + '\'>' + name + '</a>';
}

 This is what I see for the component's title: 

 

DISPLAYING ALL CURRENT FOOS FOR <br/><a style='white-space:nowrap' href='/001M0000002Kt7jIAC'>Foo Test</a>

 

I tried placing HTML tags in the title itself, but got the same result. There is no "escape='false'" for components.

 

Any suggestions? Thanks!

 

Note: This actually works fine on Winter '10 production, but not in my Spring '11 sandbox. Is Salesforce rendering differently now?

So I started editing one of my classes in my sandbox, saved, went to my visualforce page, and got one of those "An unexpected error has occurred. Your development organization has been notified." messages. I also received the associated email with the subject "Force.com Sandbox: Developer script exception from..." and it has all the useful debug info I need. So far, so good.

 

I add some debug code to my original class and try going to my visualforce page again. Got the same exception, no email. Tried again. Same exception, no email. No email means no handy debug info like line numbers and stack trace. I edited my code again, which gave me a new error, and a new delivered email! However, after getting that error on my visualforce page several more times, I didn't get sent that email again.

 

So it seems that after the first email is sent for a unique error, no further emails are sent for that error. I have been receiving emails fine on both production and sandboxes for some time now, and this behavior is broken on production too. Is anyone else experiencing this? I'd open a case, but I'm getting the "Customer Self-Service Temporarily Unavailable".

We're getting an unexpected error message when we try to compile this on the line noted below: "Error: Compile Error: Expression of type TestClass.TestType has no member named A at line ....."

 

If we comment out the contents of runTest then it compiles fine. We suspect a bug in Apex in which static methods cannot reference enums. This is ironic because static testMethods can!


@isTest
private class FixAccountIdInSalsTest
{
    private enum TestType{A, B}
    
    private static testMethod void testForA()
    {
        runTest(TestType.A); // COMPILES FINE
    }

    private static testMethod void testForB()
    {
        runTest(TestType.B); // COMPILES FINE
    }
    
    private static void runTest(TestType testType)
    {
        Test.StartTest();
        if (TestType.A == testType) // COMPILER BREAKS HERE
        {
            // do something
        }
        else if (TestType.B == testType) // AND PRESUMABLY BREAKS HERE
        {
            // do something else
        }
    }
}

I've reduced my code down to the minimum to get this result.  What I'm trying to do is run a process against a subset of contacts for an account.  Here's the VisualSource page and the controller code:

 

 

// The visualsource page:
<apex:page standardController="Account" tabStyle="Account" sidebar="false" extensions="AccountExtensions">
<apex:form >
<apex:pageBlock title="Assign Sector Access Logs">
<apex:messages />
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="Mass Assign" id="massAssign" />
<apex:commandButton action="{!cancel}" value="Cancel" id="massCancel" />
</apex:pageBlockButtons>
<apex:pageBlockSection columns="1">
<apex:pageBlockSectionItem >
<apex:outputLabel value="Contacts to mass-assign SAL's to:" for="contacts_list"/>
<apex:selectList value="{!selContacts}" size="10" multiselect="true" id="contacts_list" required="true">
<apex:selectOptions value="{!contactsForAccount}" />
</apex:selectList>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
// The controller
public with sharing class AccountExtensions
{
private final Account account;
private List<Contact> contacts;
private List<SelectOption> selContacts;


public AccountExtensions(Apexpages.StandardController asControl)
{
this.account = (Account) asControl.getRecord();
this.contacts = [select id, name, AccountId from Contact where AccountId = : account.id];
this.selContacts = new List<SelectOption>();
}

public PageReference save()
{
System.debug(' **** Begin save **** ');
return null;
}

public List<SelectOption> getSelContacts()
{
return this.selContacts;
}

public void setSelContacts( List<SelectOption> selected)
{
this.selContacts = selected;
}

public List<SelectOption> getContactsForAccount()
{
List<SelectOption> options = new List<SelectOption>();
for( Contact c : contacts)
{
options.add(new SelectOption(c.id, c.name));
}
return options;
}

public void setContactsForAccount(List<SelectOption> options)
{

}
}

 

 

When I click the "Mass Assign" button, I get the following "validation" message:

 

Error Screen

I am trying to edit a schedule for some Apex classes. When I go to Setup, Monitor, Scheduled Jobs, Manage it appears from the UI that the jobs are scheduled to run on the 1st of every month. However, I can see from the Apex logs that they actually run every day. Can someone pleae explain what I'm missing here?

In my page I have a component:

 

<c:AccountFooSection title="DISPLAYING ALL CURRENT FOOS FOR {!titleLink}" />

In my controller, I have this:

 

private String getTitleLink { 
    return '<br/><a style=\'white-space:nowrap\' href=\'/' + id + '\'>' + name + '</a>';
}

 This is what I see for the component's title: 

 

DISPLAYING ALL CURRENT FOOS FOR <br/><a style='white-space:nowrap' href='/001M0000002Kt7jIAC'>Foo Test</a>

 

I tried placing HTML tags in the title itself, but got the same result. There is no "escape='false'" for components.

 

Any suggestions? Thanks!

 

Note: This actually works fine on Winter '10 production, but not in my Spring '11 sandbox. Is Salesforce rendering differently now?

I've reduced my code down to the minimum to get this result.  What I'm trying to do is run a process against a subset of contacts for an account.  Here's the VisualSource page and the controller code:

 

 

// The visualsource page:
<apex:page standardController="Account" tabStyle="Account" sidebar="false" extensions="AccountExtensions">
<apex:form >
<apex:pageBlock title="Assign Sector Access Logs">
<apex:messages />
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="Mass Assign" id="massAssign" />
<apex:commandButton action="{!cancel}" value="Cancel" id="massCancel" />
</apex:pageBlockButtons>
<apex:pageBlockSection columns="1">
<apex:pageBlockSectionItem >
<apex:outputLabel value="Contacts to mass-assign SAL's to:" for="contacts_list"/>
<apex:selectList value="{!selContacts}" size="10" multiselect="true" id="contacts_list" required="true">
<apex:selectOptions value="{!contactsForAccount}" />
</apex:selectList>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
// The controller
public with sharing class AccountExtensions
{
private final Account account;
private List<Contact> contacts;
private List<SelectOption> selContacts;


public AccountExtensions(Apexpages.StandardController asControl)
{
this.account = (Account) asControl.getRecord();
this.contacts = [select id, name, AccountId from Contact where AccountId = : account.id];
this.selContacts = new List<SelectOption>();
}

public PageReference save()
{
System.debug(' **** Begin save **** ');
return null;
}

public List<SelectOption> getSelContacts()
{
return this.selContacts;
}

public void setSelContacts( List<SelectOption> selected)
{
this.selContacts = selected;
}

public List<SelectOption> getContactsForAccount()
{
List<SelectOption> options = new List<SelectOption>();
for( Contact c : contacts)
{
options.add(new SelectOption(c.id, c.name));
}
return options;
}

public void setContactsForAccount(List<SelectOption> options)
{

}
}

 

 

When I click the "Mass Assign" button, I get the following "validation" message:

 

Error Screen

Hi, I'm using the Force.com IDE for Apex/Visualforce development. I'm observing that some, but not all, of my Apex classes will not display the "outline" view in the Eclipse Force.com IDE. There are no compilation problems with these classes, but I cannot see the outline of methods, member variables, etc. Nor will the code assistance work for these classes. I have other classes for which outline and code assistance work fine. Any ideas?

  • September 30, 2009
  • Like
  • 0
Hi,
 
I've look around on the boards and through the documentation on this, but haven't been able to find an answer.  I'm using both the API and a third-party product to connect to Salesforce, and thus need a security token appended to my password (we haven't whitelisted our IP yet, as the IP of the connecting machine periodically changes right now, but we might use a static IP in the future).
 
connecting to the non-sandbox works fine with the token, but i'm unable to connect to the sandbox data with the same token.  Do i need to have a security token generated for the Sandbox login as well?  Will this interfere with the "live" login?
 
Thanks,
Matt