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

Offline Gabi

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 0
Adding a new view in CaseContactRegion
« on: March 12, 2017, 02: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: 69
  • Karma: 1
Re: Adding a new view in CaseContactRegion
« Reply #1 on: March 12, 2017, 08:38:00 PM »
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


Offline Gabi

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 0
Re: Adding a new view in CaseContactRegion
« Reply #2 on: March 13, 2017, 11:56:57 AM »
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]<module assemblyFile="Genesyslab.Desktop.Modules.Contacts.dll"
moduleType="Genesyslab.Desktop.Modules.Contacts"
moduleName="ContactsModule" />
[/code] 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, 12:47:55 PM by Gabi »

Offline RobertH

  • Jr. Member
  • **
  • Posts: 69
  • Karma: 1
Re: Adding a new view in CaseContactRegion
« Reply #3 on: March 17, 2017, 04:09:32 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

Offline Gabi

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 0
Re: Adding a new view in CaseContactRegion
« Reply #4 on: March 20, 2017, 01:08:30 PM »
[quote author=RobertH link=topic=10208.msg46396#msg46396 date=1489766972]
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
[/quote]Thank you! That did the trick.