• itsmemario
  • NEWBIE
  • 35 Points
  • Member since 2013

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

I'm brand new to VF programming and have encountered something I'm hoping is a simple problem.

 

My page accepts a contact ID as an argument.  I've confirmed this is successfully passed in and saved as a string named cidValue.

 

My problem is getting information on this contact from the database.  I tried this and it doesn't work.

 

  List<Contact> cons = [Select Id, Name from Contact WHERE Id = :cidValue];

 

I tried converting the string to an ID and putting the ID into a map of IDs named contactIDs.  That didn't work.

 

  List<Contact> cons = [Select Id, Name from Contact WHERE IN = :contactIDs];

 

Finally, I tried using the ID itself.  That worked!  Of course, that's not a viable workaround.  :)

 

  List<Contact> cons = [Select Id, Name from Contact WHERE Id = '0000111000111'];

 

I'm hoping this is a basic SOQL issue.  Any help would be greatly appreciated.

I'm brand new to VF programming and have encountered something I'm hoping is a simple problem.

 

My page accepts a contact ID as an argument.  I've confirmed this is successfully passed in and saved as a string named cidValue.

 

My problem is getting information on this contact from the database.  I tried this and it doesn't work.

 

  List<Contact> cons = [Select Id, Name from Contact WHERE Id = :cidValue];

 

I tried converting the string to an ID and putting the ID into a map of IDs named contactIDs.  That didn't work.

 

  List<Contact> cons = [Select Id, Name from Contact WHERE IN = :contactIDs];

 

Finally, I tried using the ID itself.  That worked!  Of course, that's not a viable workaround.  :)

 

  List<Contact> cons = [Select Id, Name from Contact WHERE Id = '0000111000111'];

 

I'm hoping this is a basic SOQL issue.  Any help would be greatly appreciated.

This just started today (9/26/2011) and won't let me save the file to force.com. The file is a long existing apex class. Only making some minor changes.

 

 

Save error: Unable to perform save on all files:

 

com.salesforce.ide.api.metadata.types.Metadata$JaxbAccessorF_fullName cannot be cast to com.sun.xml.internal.bind.v2.runtime.reflect.Accessor

 

I deleted the whole project and re-added it. I was able to get everything back, then tried to make changes again. Same error. I tried to refresh my file from the ORG and received a pop up with the same error.