The scripts called are below
in the js widget.........................
function update_ok(result) {
id_status_message.setHtml("<font color = 'green'><i>Colleague updated OK</font><i>");
}
function update_ko(result) {
id_status_message.setHtml("<font color = 'red'><i>Colleague failed to update</font><i>");
}
function updateperson(){
var my_pattern = {}
my_pattern.Cpayroll = RMPApplication.get("payroll");
var my_object = {};
my_object.Cname = RMPApplication.get("name");
my_object.Cpayroll = RMPApplication.get("payroll");
my_object.Cdept = RMPApplication.get("dept");
my_object.Cemail = RMPApplication.get("email");
my_object.Cnumber = RMPApplication.get("number");
col_Colleagues.updateCallback(my_pattern ,my_object ,update_ok,update_ko);
};
In the button script................
id_starting_message.setHtml("<font color = 'blue'><i>starting update action</font><i>");
updateperson();
id_report.refresh();
Thanks
if(result.P_count > 0) {
id_status_message.setHtml("<font color = 'green'><i>Colleague updated OK</font><i>");
} else {
id_status_message.setHtml("<font color = 'red'><i>No colleague updated</font><i>");
}
--
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/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/bac1d00a-242f-412b-97cf-45dabf7b6596%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/groups/opt_out.
Gareth
Many thanks for the prompt and clear response.
Regards
tom
You received this message because you are subscribed to a topic in the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/Fl3T2LfkJOg/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/CAKDixUifBsjdCLVcjsDtZF9vdYin%2B5qkp8DRUd18K6bYm1q8SQ%40mail.gmail.com.