You need to sign in to do that
Don't have an account?
I want to poulate data into flexdatagrid from salesfrce's custom tables
Hi;
I have mentioned two functions:
1)getAllCompensationPlan_CustomObj
2)getAllCompensationPlan_StdObj
I received error while compiling "getAllCompensationPlan_CustomObj" function and second one compiled successfully without any error.
Both funtions perform same operation , there is only one difference one contains standard object like(Account,Contacts) while other contains custom object(CompanesationPlan__c,JobTitle__c).
Is there any other method to write same query for custom objects.
This functions return the list of selected values which further used to poulate datagrid in flex .
I have mentioned functions below.
PLEASE HELP ME
webService static List<Compensation__c> getAllCompensationsPlan_CustomObj()
{
List<Compensation__c> compplan = [select id,name,(SELECT FirstName, LastName from JobTitle__c LIMIT 1) from Compensation__c];
return compplan;
}
webService static List<Account> getAllCompensationsPlan_StdObj()
{
List<Account> compplan = [select id,name,(SELECT FirstName, LastName from Contacts LIMIT 1) from Account];
return compplan;
}
REGARDS,
MANOJ JAIN