cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Develop. Standard search dialog box

josela
Discoverer
0 Likes
276

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Likes

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