This is applicable only where you can do C# scripting for definition pre-script:


public string get_participant(string str_user_kid)
{
Karomi.Security.user obj_usr2 = new Karomi.Security.user();
string str_username = “”;
obj_usr2.db = obj_db;
if(str_user_kid != “”)
{
obj_usr2.loaduser(str_user_kid);
str_username = obj_usr2.lastname.ToString();
}
return str_username;
obj_usr2.Dispose();
obj_usr2 = null;
}
 
public void approver1fn()
{
................
string str_userkid = document.forms["pdfprocessform"].elements["approver_level1"].value;
document.forms["pdfprocessform"].elements["workflow_status"].value = "With " + " " + get_participant(str_userkid);
.......................
}