Author Topic: Adding a new view in CaseContactRegion  (Read 1328 times)

Offline Gabi

  • Jr. Member
  • **
  • Posts: 57
  • Karma: 0
Adding a new view in CaseContactRegion
« on: March 12, 2017, 11:09:01 PM »
I woud like to know how to add a new view to the CaseContactRegion (i.e. a new tabnext to contact information, history, etc.).

I am currently facing 2 problems:

1. I don't know how to make a tab. :-/
2. I tried making a used control and adding it to the CaseContactRegion, but I got a "Key not found" exception.

I have added views to other MultiView Regions before (InteractionsBundleRegion, InteractionsWorksheetRegion + CaseViewSideButtonRegion, ToolbarWorkplaceReion + ToolbarHamburgerButtonRegion), but the CaseContactRegion behaves differently for some reason.

Could anyone please help me?

Thanks in advance.

Offline RobertH

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 1
Re: Adding a new view in CaseContactRegion
« Reply #1 on: March 13, 2017, 05:38:00 AM »
It is definitely possible, you can add new tab to contact region, look into wde logs for contact region and views in that region. Just by using add view, new tab will appear. Your model must be loaded after contact module. In module config, contact module must be in front of your module name. Otherwise contact region is not loaded and cant be extended with view.

Odoslané z D5803 pomocou Tapatalku

Robik

Offline Gabi

  • Jr. Member
  • **
  • Posts: 57
  • Karma: 0
Re: Adding a new view in CaseContactRegion
« Reply #2 on: March 13, 2017, 08:56:57 PM »
Thanks, but... I don't quite understand. Could you please show me an example of what the module-config should look like?

I tried adding the following to the modules section:

Code: [Select]
<module assemblyFile="Genesyslab.Desktop.Modules.Contacts.dll"
moduleType="Genesyslab.Desktop.Modules.Contacts"
moduleName="ContactsModule" />
and then my module, using ContactsModule as a dependency, but I get an error saying ContactsModule is not set to be loaded.

I tried replacing ContactsModule by Contacts, Genesyslab.Desktop.Modules.Contacts by Genesyslab.Desktop.Modules.ContactsModule and removing the dependency, but every time I keep getting errors.
« Last Edit: March 13, 2017, 09:47:55 PM by Gabi »

Offline RobertH

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 1
Re: Adding a new view in CaseContactRegion
« Reply #3 on: March 18, 2017, 01:09:32 AM »
Hi Gabi

Did you get it resolved?

In my example contact module will be loaded before CustomModuleTest

    <tasks>
        <task name="InteractionWorkspace.Custom.canUseVoice" clickOnceGroupsToDownload="Voice" modulesToLoad="ContactsModule,CustomModuleTest" />
    </tasks>

BR
Robert
Robik

Offline Gabi

  • Jr. Member
  • **
  • Posts: 57
  • Karma: 0
Re: Adding a new view in CaseContactRegion
« Reply #4 on: March 20, 2017, 10:08:30 PM »
Hi Gabi

Did you get it resolved?

In my example contact module will be loaded before CustomModuleTest

    <tasks>
        <task name="InteractionWorkspace.Custom.canUseVoice" clickOnceGroupsToDownload="Voice" modulesToLoad="ContactsModule,CustomModuleTest" />
    </tasks>

BR
Robert
Thank you! That did the trick.