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

  • Thread starter Thread starter Santosh Patel
  • Start date Start date
Status
Not open for further replies.
S

Santosh Patel

Guest
Hi gwf, $( function() {}) basically tells the page to execute this function when the page has loaded. There are multiple ways of specifying the same. See http://api.jquery.com/ready/ for more info. This basically ensures that the rbf_getFieldDef that you are calling is executed only when all of the page (html, js, other files) has loaded in the browser. Putting it outside the ready function, executes it when processing the page for rendering (as in an interpreted language) and by this time the getFieldDef function has not yet been processed, so arrName is undefined. You should really execute all your javascript code in the $(function() { here }); which could very well include generating your dynamic chart data. P.S: We have plans to provide a REST api to get all possible values for a picklist. Should be available in the release after 3.1 (scheduled to come out soon).

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