In my application for the department field there around 1800 plus values, so i was trying to list the values, the way it is shown in documentation, for this i created a CAPI with the following code
<#function list_all_objects pattern collection_name index>
<#assign list = list_objects(pattern,collection_name,index*1000,1000)>
<#if (list?size = 1000)>
<#assign list = list?eval+ list_all_objects(pattern,collection_name,index+1)>
<#return list>
<#else>
<#return list?eval>
</#if>
</#function>
<#assign my_pattern={}>
<#assign my_collection_name = "MY_IM_Department">
<#assign entries= list_all_objects(my_pattern,my_collection_name,0)>
<#assign vb_department=[]>
<#list entries as x>
<#assign vb_department=vb_department + [{"lable":x.department,"value":x.department}]>
</#list>
${vb_department}
To trigger the CAPI in my web interface i am using the below code
function rmp_set_vb_list_value(vb_name,vb_value) {
var a = new RMP_List();
a.fromArray(vb_value);
RMPApplication.setList(vb_name,a);
return true;
}
id_list_values_from_collection.trigger({},{},
function(result){
/* OK*/
rmp_set_vb_list_value("vb_department",result.vb_department);
},
function(error){
/*ko*/
alert("error while loading the list");
});
Now the issue is when i tested the CAPI it is picking all the 1800 plus values , but when i am triggering it into the web interface it is not picking up any values, i.e the list is empty.
So please tell me where i am doing wrong? please help.
--
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/1249ee73-b1e2-4f70-acd9-3ec1e7384a19%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/3374sVlLZgg/unsubscribe.
To unsubscribe from this group and all its topics, 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/CADHrCawjKZkWtryEzk%2BEm8DzF-rFXkB1NRxFt7x74Y-T1BY2_A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/CAHaHFoUMbuiVM7qBNMMaTt8K1tFy4PvACMpVB9HXjNYPQzsmgw%40mail.gmail.com.