Hello,
I'm trying to get data in a custom list in json form then populate dropdown with that data.
This is the code I'm using to get the json:
$( document ).ready(function() {
var data = JSON.parse(id_company.getList());
alert(JSON.stringify(data));
});
This code is working in JS tester. In RMP js widget, this code returns an empty list array like this:
{"list":[],"valueField":"value","labelField":"label","listField":"list"}
The custom list is part of a custom widget and is included in the WI. Why is the list array not being populated?
Thank you!
Prachi
--
teknion.com <
http://www.teknion.com>
<
http://www.teknioncre8.com/> <
http://www.facebook.com/Teknion>
<
http://www.linkedin.com/company/teknion> <
http://twitter.com/teknion>
<
http://www.youtube.com/teknion>
Please consider the environment before printing this e-mail.
CONFIDENTIALITY NOTICE: This communication, including any attachments, may
contain information that is confidential and privileged. [It may constitute
non-public information and is intended to be conveyed only to the
designated recipient(s).] If the reader or recipient of this communication
is not the intended recipient, or you believe that you have received this
communication in error, please notify us immediately by return e-mail and
promptly delete this e-mail including any attachments without reading or
saving them in any manner. Any other distribution, copying or disclosure is
prohibited and may be unlawful. We accept no responsibility for changes
made to this e-mail or to any attachments after transmission from our
office.