• Gopesh Vardhan Singh
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 3
    Replies
created 2 custom objects.  ACCOUNT TPYE AND CONTACTS

Contact has accounttype field which is in lookup relationship with name field of ACCOUNTTYPE custom object

sUPPOSE i have 10 obects in contacts list..
and i wants to filter the contact details on the basis of contact.accounttype

Logic is

Cout<<"Enter Value of Account Type.."
Cin>>var;

For(i=0;i<10;i++)
{
if(contact.account == var)
   {

cout<"Contact name = "<<contact.name;
cout<"Contact email = "<<contact.email;
cout<"Contact phone no. = "<<contact.phone;
cout<"Contact position. = "<<contact.positiion;  
}

}

what will be the code in VF page
1. Create a custom tab naming, “Assignment”
2. Clicking on Assignment, it will open a VF page(showing below)
3. Click on Account Lookup - . It will open a lookup window, select the Account.
4. Account will appear in the following box
5. Click on Submit, will display the contact list related to the account
6. User can edit any of the Contact. Clicking on edit, will redirect to Contact page edit and
save.
7. User can delete the contact.

Getting error while saving this code in VF page



Error: Cyclic page or component references '/apex/tabbedAccount' are not allowed


<apex:page standardController="Account__c" showHeader="true" tabStyle="account" >
<b>HELLO WORLD</b>
 
 
    <style>
.activeTab {background-color: #236FBD; color:white;
background-image:none}
.inactiveTab { background-color: lightgrey; color:black;
background-image:none}
</style>

              
     <apex:page action="{!URLFOR($Action.Account__c.List, $ObjectType.Account__c)}"/>         
               




</apex:page>
Tell me one more thing the Visualforce page that i hav made is visible ony by changing the URL
OR is their any other method also....

Till the time i m doing coding .. I click on  my custom objest tab POSITION tab  ...to see that part...

But wants to know how the END-USER will see it...Since he doesn't know the new URLl that i have made  according to my convinence..
www.na1/salesforce.com/apex.candidatemap.
// Getting error while trying to save this apex code in Vf page .....

Position__c  is my custom object and Educational_Requirements__c is the custom feild of this objest...



<apex:page standardController="Position__c" sidebar="false">
<apex:form>
         <apex:inputField value="(Position__c.Educational_Requirements__c)"/>



</apex:form> 
</apex:page>



Error is :Error: Attribute value in <apex:inputField> must contain only a formula expression that resolves to a single controller variable or method in CandidateMap at line 3 column 78
// Getting error while trying to save this apex code in Vf page .....
Position__c  is my custom object and Educational_Requirements__c is the custom feild of this objest...


<apex:page standardController="Position__c" sidebar="false">
<apex:form>
         <apex:inputField value="(Position__c.Educational_Requirements__c)"/>



</apex:form>  
</apex:page>



Error is :Error: Attribute value in <apex:inputField> must contain only a formula expression that resolves to a single controller variable or method in CandidateMap at line 3 column 78
Created 2 objects . Job application and Review  ..
they are related to each other..follow all the steps correctly but can't see in app how they r related..
plz help

Getting error while saving this code in VF page



Error: Cyclic page or component references '/apex/tabbedAccount' are not allowed


<apex:page standardController="Account__c" showHeader="true" tabStyle="account" >
<b>HELLO WORLD</b>
 
 
    <style>
.activeTab {background-color: #236FBD; color:white;
background-image:none}
.inactiveTab { background-color: lightgrey; color:black;
background-image:none}
</style>

              
     <apex:page action="{!URLFOR($Action.Account__c.List, $ObjectType.Account__c)}"/>         
               




</apex:page>
// Getting error while trying to save this apex code in Vf page .....

Position__c  is my custom object and Educational_Requirements__c is the custom feild of this objest...



<apex:page standardController="Position__c" sidebar="false">
<apex:form>
         <apex:inputField value="(Position__c.Educational_Requirements__c)"/>



</apex:form> 
</apex:page>



Error is :Error: Attribute value in <apex:inputField> must contain only a formula expression that resolves to a single controller variable or method in CandidateMap at line 3 column 78
// Getting error while trying to save this apex code in Vf page .....
Position__c  is my custom object and Educational_Requirements__c is the custom feild of this objest...


<apex:page standardController="Position__c" sidebar="false">
<apex:form>
         <apex:inputField value="(Position__c.Educational_Requirements__c)"/>



</apex:form>  
</apex:page>



Error is :Error: Attribute value in <apex:inputField> must contain only a formula expression that resolves to a single controller variable or method in CandidateMap at line 3 column 78