You need to sign in to do that
Don't have an account?
Gopesh Vardhan Singh
Error in VF page
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
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
You need to create a controller class for the vf page.
For VF Controller Class
Please modify the API name of Contact and Account as your requirement.
Thanks
Amritesh