• Wheaton003
  • NEWBIE
  • 0 Points
  • Member since 2010

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

Hi,

 

I'm trying to pass a variable from visualforce to my Apex controller in a <apex:support> block. The assignTo function is never called, even after the page is finished loading, and neither is doParamPass. I'm simply trying to pass l.phone and l.email back to the controller to search for duplicates and return a list. l is a variable for a lead, who I would like to check for duplicates.

 

I also tried to use <apex:inputhidden>, but no luck there either. I can't access otherName from the controller.


Any help is appreciated!

 

VISUALFORCE:

           <apex:column >
                <apex:facet name="header">Lead Dups</apex:facet>
                <apex:actionsupport event="onload" action="{!doParamPass}">
                    <apex:param name="dup_email" value="testMail@yahoo.com" assignTo="{!dup_email}"/>
                    <apex:param name="dup_phone" value="{!l.phone}" assignTo="{!dup_phone}"/>
                </apex:actionSupport>
                <apex:form ><apex:inputhidden id="otherName" value="{!l.email}" /></apex:form>
                <apex:repeat value="{!DupWarning}" var="d">
                <apex:outputLink value="{!URLFOR($Action.Lead.View, d.id)}" id="name"> {!d.Name} </apex:outputlink>
                </apex:repeat>
            </apex:column>

 

APEX CONTROLLER:

 

public String dup_phone {
        get;
        // *** This set method is NOT being called ***
        set {
            dup_phone = value;
            System.debug('DUP PHONE IS: '+value);
        }
    }
    public String dup_email {
        get;
        // *** This set is NOT being called ***
        set {
            dup_email = value;
            System.debug('DUP EMAIL IS: '+value);
        }
    }
    public void doParamPass() {
        System.debug('Param pass executed');
    }

Hi,

 

I'm curious if there is a better way to refer to the "New Lead" page than to use a button with the URL, like below.

 

<apex:commandButton value="New Lead" action="/00Q/e?retURL=%2F00Q%2Foo"/>

 

It would seem that there should be some way to say:

 

action="{!Lead.NewLead}"

 

or something similar?

 

Thanks

I'm having trouble forcing these 2 pageBlocks to be the same size. Any suggestions?

I would like 'My Chatter' to take up 50% of the page and 'Whose following who?' to take 50% as well.

 

Hi,

 

I'm trying to pass a variable from visualforce to my Apex controller in a <apex:support> block. The assignTo function is never called, even after the page is finished loading, and neither is doParamPass. I'm simply trying to pass l.phone and l.email back to the controller to search for duplicates and return a list. l is a variable for a lead, who I would like to check for duplicates.

 

I also tried to use <apex:inputhidden>, but no luck there either. I can't access otherName from the controller.


Any help is appreciated!

 

VISUALFORCE:

           <apex:column >
                <apex:facet name="header">Lead Dups</apex:facet>
                <apex:actionsupport event="onload" action="{!doParamPass}">
                    <apex:param name="dup_email" value="testMail@yahoo.com" assignTo="{!dup_email}"/>
                    <apex:param name="dup_phone" value="{!l.phone}" assignTo="{!dup_phone}"/>
                </apex:actionSupport>
                <apex:form ><apex:inputhidden id="otherName" value="{!l.email}" /></apex:form>
                <apex:repeat value="{!DupWarning}" var="d">
                <apex:outputLink value="{!URLFOR($Action.Lead.View, d.id)}" id="name"> {!d.Name} </apex:outputlink>
                </apex:repeat>
            </apex:column>

 

APEX CONTROLLER:

 

public String dup_phone {
        get;
        // *** This set method is NOT being called ***
        set {
            dup_phone = value;
            System.debug('DUP PHONE IS: '+value);
        }
    }
    public String dup_email {
        get;
        // *** This set is NOT being called ***
        set {
            dup_email = value;
            System.debug('DUP EMAIL IS: '+value);
        }
    }
    public void doParamPass() {
        System.debug('Param pass executed');
    }