• infoaccount1
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

Hello! I need help. I wrote in Apex the following code and it gives me no error:

 

public pageReference doSearch2(){
if(searchtext != '' ){

list<list<sobject>> result = [Find :searchtext IN ALL FIELDS RETURNING accountr__c(id,Name, phone__c,Pertenece_a_GIE__c,creado_por__c,nombre_de_creado_por__c, accountnumber__c,ram__c, fax__c, website__c, type__c, numberofemployees__c , industry__c, annualrevenue__c, Description__c, Ejecutivo_Local_Colombia__c,
Ejecutivo_Local_costa_rica__c,Ejecutivo_Local_el_salvador__c,Ejecutivo_Local_estados_unidos__c,Ejecutivo_Local_guatemala__c,Ejecutivo_Local_honduras__c,Ejecutivo_Local_mexico__c,Ejecutivo_Local_nicaragua__c,Ejecutivo_Local_panama__c,Ejecutivo_Local_venezuela__c,Ejecutivo_Local_republica_dominicana__c
where creado_por__c in (select Ejecutivo_DP__c from usuarios_jn__c  where ejecutivo__c=:apexpages.currentpage().getparameters().get('id') )order by name )];
veraccount =((list<accountr__c>)result[0]);
}
return null;}

And when I actually test it in my page i receive the following message:
System.QueryException: unexpected token: '@'

 

Can somebody help me figure this one out? I couldn't find anything like this error on the discussion boards or anywhere else. I don't have anything resembling like an email to receive this type of message.

Please help me, it will be greatly appreciated

Hello! I need help. I wrote in Apex the following code and it gives me no error:

 

public pageReference doSearch2(){
if(searchtext != '' ){

list<list<sobject>> result = [Find :searchtext IN ALL FIELDS RETURNING accountr__c(id,Name, phone__c,Pertenece_a_GIE__c,creado_por__c,nombre_de_creado_por__c, accountnumber__c,ram__c, fax__c, website__c, type__c, numberofemployees__c , industry__c, annualrevenue__c, Description__c, Ejecutivo_Local_Colombia__c,
Ejecutivo_Local_costa_rica__c,Ejecutivo_Local_el_salvador__c,Ejecutivo_Local_estados_unidos__c,Ejecutivo_Local_guatemala__c,Ejecutivo_Local_honduras__c,Ejecutivo_Local_mexico__c,Ejecutivo_Local_nicaragua__c,Ejecutivo_Local_panama__c,Ejecutivo_Local_venezuela__c,Ejecutivo_Local_republica_dominicana__c
where creado_por__c in (select Ejecutivo_DP__c from usuarios_jn__c  where ejecutivo__c=:apexpages.currentpage().getparameters().get('id') )order by name )];
veraccount =((list<accountr__c>)result[0]);
}
return null;}

And when I actually test it in my page i receive the following message:
System.QueryException: unexpected token: '@'

 

Can somebody help me figure this one out? I couldn't find anything like this error on the discussion boards or anywhere else. I don't have anything resembling like an email to receive this type of message.

Please help me, it will be greatly appreciated