function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
manojjain4328manojjain4328 

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 

 

bob_buzzardbob_buzzard
Can you post the error from the compiler?