You need to sign in to do that
Don't have an account?
Calling a standard controller Fields in an VF page Components.
Hi,
I am able to get the contact details in the VF page directly by using the standard controller -"Contact"But while using the standard controller as Campaign I am not able to do the same as I did in retrieving fields(Name,ID....) by using contacts.
For contacts:
<apex:page Standardcontroller ="Contact">
<apex:inputText value="{!Contact.name}"></apex:inputText>
</apex:Page>
the name of a particular campaign is displayed in a text box overhere.But how can i do the same with campaign...
Here i am using it as -
<apex:page Standardcontroller="Campaign">
<apex:inputText value="{! Campaign.name}"></apex:inputText>
</apex:Page>
the error is displayed as Error: Unknown property 'ArrayList.Name'
This might be a simple one but i am not able to solve it out.Please help me out asp.
Thanx in Advance.
There must be more to your page code than that. For one thing, and inputtext field must be enclosed in form tags.
I tried this very simple page, and it works fine:
<apex:page Standardcontroller="Campaign"> <apex:form> <apex:inputText value="{! Campaign.name}"></apex:inputText> </apex:form> </apex:page>
<apex:page StandardController="Campaign"> <apex:form > <apex:inputText value="{! Campaign.Name}"></apex:inputText> </apex:form> </apex:page>