Skip to Content
avatar image
Former Member

Develop. Standard search dialog box

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 10 at 07:25 AM

    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

    Add comment
    10|10000 characters needed characters exceeded