Hi,
I came with the idea to create a "button" in the right click menu called "Assign to me" when the analyst is listing the incidents form. I know this is a "transfer", but by creating this it will be only one click for our analysts.
Unfortunately I'm struggling to achieve this. When I call a spell to do this it gives me a timeout.
To do this I've:
Created a new OP in www root
op_custom.cfg
Z_TEST z_test MODIFY UPDATE
I added the following menu item under Update Status:
stdlist.js
ctxMenu.addItem("Assign to me", "z_assin2me(self.activePersid, ahdtop.cstID)");
function z_assin2me(argPersistentID, curr_user) {
var url = cfgCgi +
"?SID=" + cfgSID +
"+FID=" + fid_generator() +
"+OP=Z_TEST" +
"+FACTORY=cr" +
"+PERSID=" + argPersistentID +
"+TEST_VAL=" + curr_user;
display_new_page( url, ahdframeset.workframe );
}
Created the spel
z_test(...){
int arg0;
object arg1;
arg0 = argv[0];
arg1 = argv[1];
dump_args(arg1);
send_wait(0, top_object(), "call_attr", "cr", "dob_by_persid", 0, arg1.PERSID);
crobj = msg[0];
send_wait(0,top_object(), "call_attr", "cnt", arg1.TEST_VAL);
who = msg[0];
send_wait(0, crobj, "call_attr", "summary", "set_val", who, "SURE_SET");
}
Can you guys help?
Note that I'm a newbie with spel.
Thanks