on ‎2018 Apr 09 10:10 AM
I am developing a plugin in CCO and I have created a new page through JSInject and I would like to know if I can use the standard search dialog box to get some article or customer or I need to develop this functionality. It is possible to use it, how can I do it?
Thanks.
Request clarification before answering.
Hi Jose,
Yes, there is a possibility to use the standard search dialog.
Here is an example how you can trigger a customer search dialog with Javascript:
var event = new $.Event("click");
event.showSingleEntity = "customer";
event.targetScreen = "generic";
event.genericAction = function(id){
console.log(id)
};
window.setTimeout(function(){
$('#searchDialogBtn').trigger(event);
},10);
Best Regards
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.