Can you please look at the code and tell me how to fix this?
Thank you in advance!!
This part creates the list:
function list_ko_a(result) {
//Error
alert("ko " + JSON.stringify(result));
}
function list_ok_a(result) {
var my_guru2 = new Array();
for(i=0;i<result.length;i++) {
my_guru2.push({
"label":result[i].guru2,
"value":result[i].guru2,
});
}
var a = new RMP_List();
a.fromArray(my_guru2);
RMPApplication.setList("my_guru2",a);
}
var my_pattern = {};
my_pattern.my_client_id = "[[client_id]]";
col_Guru2.listCallback(my_pattern,{},list_ok_a,list_ko_a);
This part attempts to load the collection data:
/*Defines the id of my widget*/
function get_my_id_variable_a(){
return "guru2";
}
//load_car
function load_ok(result) {
id_my_item.setVisible(true);
RMPApplication.set("my_item", result[0]);
}
function load_ko(result) {
id_report.refresh();
}
function load_clean(my_guru2) {
var my_pattern = {};
var id = get_my_id_variable_a();
my_pattern[id]= my_guru2;
col_Guru2.listCallback(my_pattern, {}, load_ok, load_ko);
}
If you have any examples where collection data is loaded by selecting an entry from a dynamically created list...I would be grateful. I have created my system from all of the examples you provide in the training.
If you are willing to look into my account, here is the path:
Web Interface = Guru_WI
Begin typing Rico Suave14 into the first labeled Customer, then select it. Next, choose the tab labeled History and select any of the items from the dropdown list. The problem is that the loaded data (from col_Guru2) for the past history is linked to the first record ever created in the collection, rather than the record you just selected in the dropdown list. How can I resolve?
Your help is greatly appreciated!
Clay
Thank you for all of your help!
Clay
Sabine EL RASSY
ClayTo view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/4edd1716-7262-4747-9c53-f38066cbcb14%40runmyprocess.com.
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" 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/.
For more options, visit https://groups.google.com/a/runmyprocess.com/groups/opt_out.