You need to sign in to do that
Don't have an account?
Sumant Hegde
How to read current account id/account name in a custom controller
Hi,
I am new to VisualForce and Apex.
I have the following code in my VF page.
<apex:page standardController="Account" extensions="AccountContactExtend">
<apex:form>
<apex:pageBlock>
<apex:inputField value="{!Account.Name}" label="Account Name"/>
<apex:pageBlockButtons>
<apex:commandButton action="{!newPage}" value="New Contact"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
How can I get the value of "inputField" i.e. Account.Name, in my custom apex class "AccountContactExtend", so that I can use that value for SOQL query.
Thanks in advance.
I am new to VisualForce and Apex.
I have the following code in my VF page.
<apex:page standardController="Account" extensions="AccountContactExtend">
<apex:form>
<apex:pageBlock>
<apex:inputField value="{!Account.Name}" label="Account Name"/>
<apex:pageBlockButtons>
<apex:commandButton action="{!newPage}" value="New Contact"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
How can I get the value of "inputField" i.e. Account.Name, in my custom apex class "AccountContactExtend", so that I can use that value for SOQL query.
Thanks in advance.
Raj Vakati
Use this code