Wednesday, January 27, 2021

IBM Case Manager script - Select User Dialog box on Filed Focus event - to select user from the list of LDAP Users (ecm.widget.dialog.SelectUserGroupDialog)

if(payload.eventName === "icm.FieldFocused"){

if(payload.id === "PRX_Name")

{

 callback = function(users){

                        this.propController.set("value", users[0].shortName);

                        }; 

                    var selectUserDialog = new ecm.widget.dialog.SelectUserGroupDialog({

                                            queryMode: "users",

                                            selectionMode :"single",

                                            callback: dojo.hitch(this,callback)

                                            });

                    selectUserDialog.show(solution.getTargetOS());    

}

}

No comments:

Post a Comment