Dynamically Making an Array in section

361 views
Skip to first unread message

muj...@zumzum.biz

unread,
Feb 9, 2015, 11:59:18 AM2/9/15
to suppor...@runmyprocess.com
Hi All,

Am new to customization of run my process. I have required knowledge of javascript. Attached is the kind of output i need. but i want to generate it dynamically.

Below is the code I got from a colleague of mine who's also making an array in section.


var opc_full_name = {"id":"id_opc_full_name","variable":[{"name":"var_opc_full_name","value":""}],"js-type":"RMP_TextInput"};
var opc_work_email = {"id":"id_opc_work_email","variable":[{"name":"var_opc_work_email","value":""}],"js-type":"RMP_TextInput"};
var opc_phone = {"id":"id_opc_phone","variable":[{"name":"var_opc_phone","value":""}],"js-type":"RMP_TextInput"};
var opc_skype = {"id":"id_opc_skype","variable":[{"name":"var_opc_skype","value":""}],"js-type":"RMP_TextInput"};

var oppContactArray = {
"id": "opp_contact_array_" , "variable":[{
"name":"opp_contact_array_"
}],"column":[{
"header":"Full Name","widget":opc_full_name
},{
"header":"Work Email","widget":opc_work_email
}
,{
"header":"Phone","widget":opc_phone
}
,{
"header":"Skype Address","widget":opc_skype
}]
};
eval("var opp_contact_array_ = new RMP_Array(oppContactArray); ");
parentContainer.insertInside(eval( "opp_contact_array_" ));






Now after implementing this code I was able to create the grid i wanted but then I made changes according to my requirement and things started getting messy.


I want RMP_Html in first column as soon as i change js-type value to RMP_html the code stops working.

Can anyone share code documentation or any other source which could help me build this interface swiftly.

Your help will be greatly appreciated.
TableRequired.jpg
Reply all
Reply to author
Forward
0 new messages