Forum Post: RE: Query to return values in a picklist as an array?

  • Thread starter Thread starter gwf
  • Start date Start date
Status
Not open for further replies.
G

gwf

Guest
Thank you, Godfrey - but if I use the original code to populate the arrName and then insert code where marked below that makes use of arrName, does that avoid multiple API calls? script src='../js/metadata.js' type='text/javascript' charset='utf-8' /script script var arrName = [], count = 0; $(function() { rbf_getFieldDef("sg_opportunity", "industry", function(data){ $(data).find('ListItem').each(function(){ arrName[count] = $(this).attr('Name'); count++; }); //JS code here }); }); /script

Continue reading...
 
Status
Not open for further replies.
Back
Top