Skip to Content
0

Develop. Standard search dialog box

Apr 09 at 09:10 AM

16

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

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

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

Share
10 |10000 characters needed characters left characters exceeded