PureEngage On-Premises

 View Only

Sign Up

Expand all | Collapse all

Custom Button

  • 1.  Custom Button

    Posted 02-04-2016 16:27
    Hi, I am very new to developing in IWS (2 weeks) and I need to create a new button but I am having trouble.  Could someone provide me with some guidance on how/where to create the button.  I am assuming it is in the CustomToolbarRegion but I am not able to find an example in the documentation on how to create a custom button.

    Any help would be greatly appreciated.


  • 2.  RE: Custom Button

    Posted 02-05-2016 08:31
    Hello Lisa,

    all required information and extension samples you can find on docs site https://docs.genesys.com/Documentation/IW/8.1.4/Developer/Welcome (in case you're using IWS and not WDE).

    Hope this helps!

    Regards,
    --Jakub--


  • 3.  RE: Custom Button

    Posted 02-05-2016 15:13
    Thanks Jakub I am sorry we are use WDE.  I have the developers guide but I am not understanding from the documents how to create the custom button.


  • 4.  RE: Custom Button

    Posted 02-08-2016 12:12
    Hi Lisa,

    how to create a custom button is described within available examples. Anyway, where do you want to create the button/in what region? What do you want to achieve?

    Regards,
    --Jakub--


  • 5.  RE: Custom Button

    Posted 02-08-2016 14:21
    Hi Jakub,

    I attached a screen shot there are two places I put on the screen shot (Button 1 or Button 2), does not really matter which location.  We just want the button to call a function. I am not as much concerned about calling the function as I am about where and what I need to get the button to appear.  I have looked through the documents and provided samples and tested them but I never see any type of button appear.

    Thanks,

    Lisa


  • 6.  RE: Custom Button

    Posted 02-08-2016 14:51
    Hi Lisa,

    use the region according to the documentation/picture on URI https://docs.genesys.com/Documentation/IW/latest/Developer/InteractionsWindow:
    • CustomToolBarRegion
    • InteractionBundleBarRegion
    Regards,
    --Jakub--


  • 7.  RE: Custom Button

    Posted 02-08-2016 15:09
    Thanks, I have been to this page several times and looked at it for several hours prior to posting my question and this documentation does not help me.  I went to the link you provided and there is nothing on that page that says CustomToolBarRegion or InteractionBundleBarRegion.

     


  • 8.  RE: Custom Button

    Posted 02-09-2016 09:44
    And what is not clear for you? All, what is related to the Genesys is described on docs site. The rest is related to the .Net and MVVM pattern, so you have to know and understand that. Try to be more specific in description of your problem.


  • 9.  RE: Custom Button

    Posted 02-09-2016 13:25
    I am going to try and be more specific.  You stated earlier that I needed to use the region according to documentation (
    https://docs.genesys.com/Documentation/IW/latest/Developer/InteractionsWindow) CustomToolBarRegion or InteractionBundleBarRegion. When I go to the documentation there is not a region called by either of these names? I performed a search and nothing was returned. 

    It appears that in the documentation the other Regions (for the documetation diagram with the red boxes are documented so why is CustomToolBarRegion or InteractionBundleBarRegion not (are are they listed by a different name).  Please review the documentation at the link you sent me to to verify if you can find either of these regions.

    Can I hook my new button into an already existing view or do I have to create a brand new view? If I can use an existing view, how exactly can I accomplish that?  What are the correct region and view names that are for the CustomToolBarRegion or InteractionBundleBarRegion regions since I can not find anything in the documentation that refers to these names.

    If you can provide an example of how to add a button to CustomToolBarRegion or InteractionBundleBarRegion that would be greatly appreciated.


  • 10.  RE: Custom Button

    Posted 02-09-2016 13:59
    The regions names are correct, try to read the documentation properly - for example : https://docs.genesys.com/Documentation/IW/8.5.1/Developer/ToolbarWindow

    I will provide you with some short example.


  • 11.  RE: Custom Button

    Posted 02-09-2016 14:26
    Thank you. Wish I would have had this link first.


  • 12.  RE: Custom Button

    Posted 02-11-2016 14:19
    Hi Jakub,

    I was wondering if you were going to be able to provide me with a short example like you mentioned in your last post.

    Thanks.
     


  • 13.  RE: Custom Button

    Posted 02-11-2016 18:38
    Hi Jakub,

    I do not believe I need the sample as I was able to get my button to show on the InteractionBarBundleToolbarRegion.

    However, now my Case information window no longer opens automatically. I have to click on the toolbar area to get my case information to now appear. (I provided a screenshot of the area i have to click on to get the case information to open).  I need the case information to open automatically like it was prior to adding a button.


    I added the below line of code to the eventhandler for the Interaction event.

    if (interaction is IInteractionChat || interaction is IInteractionInboundEmail || interaction is IInteractionVoice){
    viewManager.ViewsByRegionName["InteractionBarBundleToolbarRegion"].Add(new ViewActivator() { ViewType = typeof(IMyButtonView), ViewName = "MyButtonView", ActivateView = true });
    }

    Do you know why this would keep my case information for opening up immediately or is there something I need to add? 

    Thanks


  • 14.  RE: Custom Button

    Posted 03-28-2018 16:44
    I have the same kind of requirement to create a button in the interaction bar. So can you please share the sample code.

    Thanks,