Skip to main content
this is my program how to fetch all the myphone,myname fields please tell me

   public class dynamicallsoql {

    public string myname{set;get;}

    public stringmy phone {set;get;}

    public sobject obj {set;get;}

    public list<sobject> sobj{set;get;}

    public dynamicallsoql(){

        database.query('select'myname,myphone 'from' obj);

    }

}

}
4 Antworten
  1. 28. Apr. 2016, 02:27
    nayana i did but no error i apex and vf also but not not giving output just give me example