On my edit modal which is created by suite I have the folowing select2 element
<div class="mb-3">
<label class="form-label" asp-for="Cycle.CenterIds">@L["Centers"].Value</label>
<select asp-for="Cycle.CenterIds"
class="auto-complete-select"
multiple="multiple"
data-maximum-selection-length="1"
data-autocomplete-api-url="/api/app/centers"
data-autocomplete-display-property="name"
data-autocomplete-value-property="id"
data-autocomplete-items-property="items"
data-autocomplete-filter-param-name="filter">
@foreach (var center in Model.SelectedCenters)
{
<option selected value="@center.Value">@center.Text</option>
}
</select>
<span class="text-danger field-validation-valid" data-valmsg-for="Cycle.CenterIds" data-valmsg-replace="true"></span>
</div>
On my Index page I have a static modal :
<abp-modal id="MonthlyReportDateModal" size="Small" static="true">
<form autocomplete="off">
<abp-modal-header title="@L["MonthlyReport"].Value"></abp-modal-header>
<abp-modal-body>
<div class="d-none">
<input id="MonthlyReportCycleId" />
</div>
<input id="MonthlyReportDate" class="form-control" placeholder="@L["SelectMonth"]" />
</abp-modal-body>
<abp-modal-footer buttons="@(AbpModalButtons.Cancel|AbpModalButtons.Save)"></abp-modal-footer>
</form>
</abp-modal>
On my index.js I Initializaing this static modal
const MonthlyReportDatePSModal = new bootstrap.Modal('#MonthlyReportDateModal');
If I removed the static moda from index.cshtml the select2 works well as expected,
hi
Please try to remove the
ITransientDependency
.
Solved, Thanx a lot bro
ABP Framework version: v8.1.1
UI Type: MVC /
Database System: EF Core (SQL Server) /
Tiered (for MVC) or Auth Server Separated (for Angular): no
Host terminated unexpectedly!
Volo.Abp.AbpInitializationException: An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module ManarahTech.NeuErp.Web.NeuErpWebModule, ManarahTech.NeuErp.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: The hub type HR.Web.SignalR.UiNotificationHub is already registered with route pattern /signalr-hubs/ui-notification. See the inner exception for details.
---> Volo.Abp.AbpException: The hub type HR.Web.SignalR.UiNotificationHub is already registered with route pattern /signalr-hubs/ui-notification
at Volo.Abp.AspNetCore.SignalR.AbpAspNetCoreSignalRModule.<>c__DisplayClass2_0.<ConfigureServices>b__4(EndpointRouteBuilderContext endpointContext)
at Microsoft.AspNetCore.Builder.AbpAspNetCoreApplicationBuilderExtensions.<>c__DisplayClass0_0.<UseConfiguredEndpoints>b__0(IEndpointRouteBuilder endpoints)
at Microsoft.AspNetCore.Builder.EndpointRoutingApplicationBuilderExtensions.UseEndpoints(IApplicationBuilder builder, Action1 configure) at Microsoft.AspNetCore.Builder.AbpAspNetCoreApplicationBuilderExtensions.UseConfiguredEndpoints(IApplicationBuilder app, Action
1 additionalConfigurationAction)
at ManarahTech.NeuErp.Web.NeuErpWebModule.OnApplicationInitialization(ApplicationInitializationContext context) in C:\Mywork\NeuErp\src\ManarahTech.NeuErp.Web\NeuErpWebModule.cs:line 602
at Volo.Abp.Modularity.AbpModule.OnApplicationInitializationAsync(ApplicationInitializationContext context)
at Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor.InitializeAsync(ApplicationInitializationContext context, IAbpModule module)
at Volo.Abp.Modularity.ModuleManager.InitializeModulesAsync(ApplicationInitializationContext context)
--- End of inner exception stack trace ---
at Volo.Abp.Modularity.ModuleManager.InitializeModulesAsync(ApplicationInitializationContext context)
at Volo.Abp.AbpApplicationBase.InitializeModulesAsync()
at Volo.Abp.AbpApplicationWithExternalServiceProvider.InitializeAsync(IServiceProvider serviceProvider)
at Microsoft.AspNetCore.Builder.AbpApplicationBuilderExtensions.InitializeApplicationAsync(IApplicationBuilder app)
at ManarahTech.NeuErp.Web.Program.Main(String[] args) in C:\Mywork\NeuErp\src\ManarahTech.NeuErp.Web\Program.cs:line 38:
Hello Support,
I have upgraded to version 8.1.1 and run migration, then run application gave me this error,
previos verion is 8.0.4 and the application is running
app.UseEndpoints(endpoints =>
{
endpoints.MapHub<UiNotificationHub>("/notification-hub");
});
app.UseConfiguredEndpoints();
Can you give me some solution Plz
Hi,
You can try:
leptonx.createContextMenuWithin(document.querySelector('#notification-bar'), 'notification-bar');
Thanx for your response bro :)
Hello,
please check https://docs.abp.io/en/abp/latest/UI/AspNetCore/Toolbars#example-add-a-notification-icon and
https://community.abp.io/posts/realtime-notifications-via-signalr-in-abp-project-tsp2uqd3thanks
Hi ,
I know this documents and added notification icon in toolbar item, but I took the source code of notification bar in the leptonx demo
and doesn't work notification bar menu
Hello,
May I know which UI you are using MVC/Angular/Blazor?
Hi ,
I use MVC