PureEngage On-Premises

 View Only

Sign Up

Expand all | Collapse all

How to access the e-mail fields in the outbound interaction window

  • 1.  How to access the e-mail fields in the outbound interaction window

    Posted 08-19-2016 02:34

    I know it's possible to access WPF fields in the interface using the following code (as an example).

    IToolbarWindow tbWin = Genesyslab.Desktop.WPFCommon.Utils.FindAncestor<IToolbarWindow>(this);
    object vwWP = vm.GetViewInRegion(tbWin, "ToolbarWorkplaceRegion", "MyWorkplaceContainerView");
    object vwCH = vm.GetViewInRegion(vwMP, "ToolbarWorkplaceRegion", "MyContactHistory");
    ContactHistoryView chView = (ContactHistoryView)vwCH;
    System.Windows.Controls.TextBox tbSearch = (System.Windows.Controls.TextBox)chView.FindName("ValueBasicSearch");

    Where vm is the ViewManager and with appropriate null checking and error handling.

    However, we need to access the values in the Outbound E-mail fields of a new Interaction before the interaction has been sent (ie. while it is still being composed).  We have identified that there is a TextBox called toTextBox, but cannot work out the Region required to search in IToolbarWindow in order to get to that TextBox.  The closest we can get to seems to be the view MyMainToolbarInteractionContainerView, but it's not obvious what the Region is for this.

    Can anyone help with this?



  • 2.  RE: How to access the e-mail fields in the outbound interaction window

    Posted 08-19-2016 05:33
    Nevermind, I figured it out.