ARm implementation

StatusIDPriorityType
Open38775MajorQuestion
ProfileReply
UKClient

Implementing ARM in WinModule.cs doubles ribbon bar buttons in XAF solutions, double "New" button in List Views, double "Save" buttons in Detail Views. According to https://documentation.galaktika-soft.com/xafari/doc_arms, WinModule.cs was modified. In "public override void Setup(XafApplication application)" added "application.CreateCustomTemplate += application_CreateCustomTemplate;" Here is event handler:

private void application_CreateCustomTemplate(object sender, CreateCustomTemplateEventArgs e)
{
if (Application == null || Application.Model == null)
return;

if (e.Context == TemplateContext.ApplicationWindow)
e.Template = false ? new ArmsMainForm() : null
else if (e.Context == TemplateContext.View)
e.Template = new DetailViewForm();
}

If

Replies

UserDescriptionPosted On
MariyaVoytovichAgent

Hello!

Issue "two New buttons on all classes" was already registered in TicketĀ Categories+TabbedMDI=duplicate actions.

Please correct your project according to this ticket.

Let us know if this helped.

Regards,
Mariya
On behalf of Xafari Client Services Team

UKClient

Thanks, dock panels are working now.

ARM implementation with:

if (e.Context == TemplateContext.ApplicationWindow)
e.Template = true ? new ArmsMainForm() : null;

results in error : "BarItem of the "DevExpress.ExpressApp.Win.Templates.ActionContainers.ActionContainerBarItem" type is expected, but was "DevExpress.XtraBars.BarLinkContainerExItem". It seems that the new template type (Ac.Module.Win.TabbedMDIDetailRibbonFormV2) is used for the Detail Form while for the Main Form a template of the old type (Xafari.Arms.Win.Templates.ArmsMainForm) is used. To avoid this error, use templates of the same types only. Refer to http://documentation.devexpress.com/#Xaf/CustomDocument2618 for more details."

MariyaVoytovichAgent

You can implement your arm template based on new template type.
For more information see ticket Custom Arms Template

Regards,
Mariya
On behalf of Xafari Client Services Team

UKClient

Implemented arm template but now navigation from default navigation menu results in "Error message: Unable to execute disabled or inactive action ShowNavigationItem. Disable reasons: , inactive reasons: Controller active". Can both navigations coexists at all and how to properly disable default navigation menu?

MariyaVoytovichAgent

Hello!

Both navigation systems cannot be activated together. When connecting ARMs, the navigation system should be deactivated by default.. Please check if you connected the ARM. The default navigation system should be disabled when ArmController is activated.

Regards,
Mariya
On behalf of Xafari Client Services Team

UKClient

Hello Mariya,

default navigation is not disabled, it is still present on left side.

UKClient

Hello Mariya,

default navigation is not disabled, it is still present on left side.

MariyaVoytovichAgent

Have you registered XafariArmsModule and XafariArmsWinModule? (See Ways to Register a Module)

Regards,
Mariya
On behalf of Xafari Client Services Team

UKClient

Hello Mariya,

Checked that to be sure:

XafariArmsModule is registered in Module.cs
XafariArmsModule and XafariArmsWinModule are registered in WinApplication.cs

Made test project with XAF Devexpress wizard just for ARM and both navigations are present.

MariyaVoytovichAgent

Hello!

Can you provide this test project?

Regards,
Mariya
On behalf of Xafari Client Services Team

UKClient

Hello Mariya,

attached is test project.

Attached files:
MariyaVoytovichAgent

Hello!

The panel on the left is displayed because it is on the template.
So that it does not appear, remove it from the template in the designer.
You can also remove it using the code. See How to: Access the Navigation Dock Panel (in a WinForms Application)

Regards,
Mariya
On behalf of Xafari Client Services Team

UKClient

Hello Mariya,

it works now and thank you.

Can you perhaps provide some reference for Dock Panel with special controls other than ListView, e,g, Chart that is also depends on selection of object in main window list view?

UKClient

Hello Mariya,

it works now and thank you.

Can you perhaps provide some reference for Dock Panel with special controls other than ListView, e,g, Chart that is also depends on selection of object in main window list view?

MariyaVoytovichAgent

Hello!

We have a demo example Northwind.
There are implemented Dock Panels with different types of relation between data (Dock Panels. Data Relation).
To see the panel dock in action:
1. run the example (through the demo center or from the folder C:\Users\Public\Documents\Xafari Framework v19.2.6011 Demos\Northwind\Win)
2. in the navigation bar, go to Main\Documents\Orders

A list form with dock panels will open. See Dock Panels.

Regards,
Mariya
On behalf of Xafari Client Services Team

Write US