this script: move data in 'Customer' collection to 'Store' collection
// move to Store C
function archive_ok(result) {
id_html_msg.setHtml("<font color='green'><i>Item deleted</font><i>");
id_report.refresh();
delete_item(cust_id);
//empty custom widget
RMPApplication.set("my_item", "{}");
RMPApplication.set("action", "add");
}
function archive_ko(result) {
//Error while deleting item from the collection
id_html_msg.setHtml("<font color='red'><i>Error while archive item</font><i>");
}
function archive_item(cust_id)
var my_pattern = {};
my_pattern.cust_id = cust_id;
var my_object = eval('(' + RMPApplication.get("my_item") + ')');
if(!archive_already_exists(my_object.cust_firstname,my_object.cust_lastname)){
// my_object.cust_id = uniqueId();
col_Store.saveCallback(my_object, add_ok, add_ko);
}else{
id_html_msg.setHtml("<font color='red'><i>Item already exists!</font><i>");
}
}
2. I want to create similar to Mass Import User App. (see attach cap2)
I have csv file to import in to collection. Please tell me.
Thanks a lot
--
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/b2a35f79-3f78-466a-bad7-7ca8fba14826%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.