• roktechie
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 5
    Replies
I am having a lot of trouble getting this to work.  The web services API docs say that field.picklistValues should return a PickListEntry array.  However, it appears that field.picklistValues has no properties.  Here is my full example.  Can anyone point out what I am doing wrong?  Thanks.

Code:
logDebug("---------- fields ---------");
for (var i=0; i<result.fields.length; i++) {
  var field = result.fields[i];
  logDebug(field.name + " : " + field.label + " : " + field.length + " : ");
  logDebug("-------------- picklist values --------");
  for (var x=0; x<5; x++) {
    var picklistValue = field.picklistValues[x];
    logDebug(picklistValue.label);
  }
}

 

I am curious which javascript frameworks are hosted on Salesforce servers.  I have found dojo, which I am currently using, but I am very interested in using Mochikit and/or Scriptaculous.  Are either of these currently hosted on SF's servers?  If not, could they be?
I am having a lot of trouble getting this to work.  The web services API docs say that field.picklistValues should return a PickListEntry array.  However, it appears that field.picklistValues has no properties.  Here is my full example.  Can anyone point out what I am doing wrong?  Thanks.

Code:
logDebug("---------- fields ---------");
for (var i=0; i<result.fields.length; i++) {
  var field = result.fields[i];
  logDebug(field.name + " : " + field.label + " : " + field.length + " : ");
  logDebug("-------------- picklist values --------");
  for (var x=0; x<5; x++) {
    var picklistValue = field.picklistValues[x];
    logDebug(picklistValue.label);
  }
}

 

I am curious which javascript frameworks are hosted on Salesforce servers.  I have found dojo, which I am currently using, but I am very interested in using Mochikit and/or Scriptaculous.  Are either of these currently hosted on SF's servers?  If not, could they be?