• BCSFDC1974
  • NEWBIE
  • 25 Points
  • Member since 2009

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

Hey Guys,

 

Is there a sample of doing a multi-select list in VF just like the built in one where you can move values back and forth between a selected and unselected boxes?

 

Thanks

 

Hey Guys,

 

I am trying to make a button that sends an email. Will this work? Obviously it currently isn't or I wouldn't be asking :)

 

 

public with sharing class ACL_SendQuoteReviewRequest {

private ApexPages.StandardController controller;

 

public ACL_SendQuoteReviewRequest(ApexPages.StandardController controller) {

this.controller = controller;

 

Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();

 

String[] toAddresses = new String[] {'name@domain.com'};

 

mail.setToAddresses(toAddresses);

mail.setReplyTo('email@domain.com');

mail.setSenderDisplayName('Salesforce Support');

mail.setSubject('Subject');

mail.setBccSender(false);

mail.setUseSignature(false);

mail.setPlainTextBody('Body');

mail.setHtmlBody('<b>HTML Body,/b>');

 

Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });

}

}

 

And the VF page is quite simple.

 

 

<apex:page standardController="SFDC_520_Quote__c" extensions="ACL_SendQuoteReviewRequest"></apex:page>

 

 

 

 

 

Message Edited by BCSFDC1974 on 12-09-2009 09:51 AM
Message Edited by BCSFDC1974 on 12-09-2009 10:13 AM

Hey Guys,

 

Is there a sample of doing a multi-select list in VF just like the built in one where you can move values back and forth between a selected and unselected boxes?

 

Thanks

 

Hey Guys,

 

I am trying to make a button that sends an email. Will this work? Obviously it currently isn't or I wouldn't be asking :)

 

 

public with sharing class ACL_SendQuoteReviewRequest {

private ApexPages.StandardController controller;

 

public ACL_SendQuoteReviewRequest(ApexPages.StandardController controller) {

this.controller = controller;

 

Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();

 

String[] toAddresses = new String[] {'name@domain.com'};

 

mail.setToAddresses(toAddresses);

mail.setReplyTo('email@domain.com');

mail.setSenderDisplayName('Salesforce Support');

mail.setSubject('Subject');

mail.setBccSender(false);

mail.setUseSignature(false);

mail.setPlainTextBody('Body');

mail.setHtmlBody('<b>HTML Body,/b>');

 

Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });

}

}

 

And the VF page is quite simple.

 

 

<apex:page standardController="SFDC_520_Quote__c" extensions="ACL_SendQuoteReviewRequest"></apex:page>

 

 

 

 

 

Message Edited by BCSFDC1974 on 12-09-2009 09:51 AM
Message Edited by BCSFDC1974 on 12-09-2009 10:13 AM

Hi,

I need to put a custom related list on the account detail page and put the Hover link on the top of the page for the custom related list.

 

I was able to do the custom related list displayed on the bottom of the Account detail page wiring a standard controller extension and visula force page.

 

Now the problem is How do I place the Hover link on the top of the page for the custom list? I saw couple of threads for the above, but the hover links issue was never discussed?.

 

Can any one please guide me how can I do this.

 

Thank you.

Hello everyone, just wanted to share with the community this custom component I made and give something back for the help I've received. :smileyhappy:

The purpose of the component is to enable autocomplete in lookup fields. I used the autocomplete js created by Jim Roos:
(http://www.jimroos.com/2007/05/ajax-autocomplete.html) but made some modifications to it so that it could interact with an Apex controller among some other things...

So my idea was that if you were making a VF page that had an inputfield that was related to a lookupfield you would just insert this autocomplete component to that inputfield. Something like this:

Code:
           <apex:inputField value="{!Contact.accountid}" id="accname" styleClass="cField">
<c:autocomplete ObjectName="Accounts" InputId="{!$Component.accname}" AutoCompleteId="accACid" ClassName="autocomplete300"/>
</apex:inputField>

The component has 4 parameters:

The name of the object or custom object that the inputfield relates to (new objects must be added inside the apex classes since i had some problems constructing a dynamic query).
The InputId which is used to relate the component to the input field
The id for the Component
A classname parameter that basically just defines the width of the suggestions menu.

Here's a screenshot of how it looks like in action:




Here's a link to the file containing the required files:

AutoCompleteComponent



Jonathan.


Message Edited by jonathan rico on 08-16-2008 01:55 PM

Message Edited by jonathan rico on 08-17-2008 09:04 AM
Message Edited by jonathan rico on 01-02-2010 05:01 PM