I'm following the documentation online to display collection data in a list. However, the list is not being populated. I've ensured the collection is available on WI and I've assigned a list variable for the list.
This is my javascript code:
function list_ok(result) {
var vb_region = new Array();
for(i=0;i<result.length;i++) {
vb_region.push({"label":result[i].market,"value":result[i].id});
}
/*for(var i =0; i< vb_region.length; i++){
alert(vb_region[i].label+" "+vb_region[i].value);
}*/
var a = new RMP_List();
a.fromArray(vb_region);
RMPApplication.setList("vb_region",a);
}
function list_ko(result) {
alert("ko " + JSON.stringify(result));
}
var my_pattern = {};
col_CatalogNew.listCallback(my_pattern,{},list_ok,list_ko);
These are the variables:
list variable: vb_region
label variable: region_name
value variable: region
I know there is data in vb_region array. After creating a new list the setList isn't working. Where am I going wrong?
Thank you.
--
teknion.com <http://www.teknion.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.
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/d7a82ecb-0f0d-4302-b4e1-d123d712dcf1%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/c600df20-f707-43b6-b10e-dd1a946269fd%40runmyprocess.com.