Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.
ABP Framework version: v3.0.4
UI type: Angular / MVC: Angular
DB provider: EF Core / MongoDB
Tiered (MVC) or Identity Server Seperated (Angular): yes / no : no
Exception message and stack trace: Working: http://localhost:4200/account;accountType=supplier/login Exptected Result: http://localhost:4200/account/login?accountType=supplier
Steps to reproduce the issue: We customize the AccountComponent
app.module.ts
@NgModule({
declarations: [AppComponent, AccountComponent, .....],
imports: [
AccountConfigModule.forRoot(),
IdentityConfigModule.forRoot(),
....
.....
],
entryComponents: [AccountComponent]
app-routing.module.ts
const routes: Routes = [
{
path: '',
loadChildren: () => import('./home/home.module').then((m) => m.HomeModule)
}
{
path: 'account',
loadChildren: () => import('@volo/abp.ng.account')
.then((m) => m.AccountModule.forLazy({ redirectUrl: '/' })),
},
{
path: 'dashboard',
loadChildren: () => import('./dashboard/dashboard.module').then((m) => m.DashboardModule),
}]
Home.component.ts
if (this.hasLoggedIn){
this.router.navigate(['dashboard'])
}else {
this.router.navigate(['account', { accountType: 'supplier' }]);
}
How to acheive this, Kindly give any suggestions
Thanks
Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.
As Per requirement we need to show notification Icon on after login, So I am adding menu item as follwing this document
https://docs.abp.io/en/abp/latest/UI/Angular/Modifying-the-Menu#how-to-add-an-element-to-right-part-of-the-menu
In app.component.ts constructor( private navItems: NavItemsService) { navItems.addItems([ { id: 'notification-litmus', order: 1, component: LitmusNotificationComponent, }]) } Using NavItemService I added menu Item, It's adding after login, showing the menu item on menu as expected,
Issue: ngOninit hook of LitmusNotificationComponent calling even after logout, because of this whatever functions calling in oninit all are calling even after logout.
litmus-notification.component.ts export class LitmusNotificationComponent implements OnInit ngOnInit(): void { alert('oninit') } }
How to handle this? If need to remove item from navItems then How to do it ? , From Documentation I did not understood remove item from navItems?
Apart from this what I am doing wrong?
Kindly help"
Hi,
I want to implement Push notification in my application
for example myCart , If my user add anything in cart the count or badge number increases on the bell icon and customer receives a notification where there is a small message xyz product is added into your cart.
Document below just give only the idea how to integrate SignalR and that too on the API side not on Angular side. https://docs.abp.io/en/abp/3.1/SignalR-Integration
Please provide if any example is available.
Thanks
We are havng issue while initializing Volo.Abp.Identity.IdentityDataSeeder with Amazon.SecretManager.
1[[Volo.Abp.Identity.EntityFrameworkCore.IIdentityDbContext, Volo.Abp.Identity.EntityFrameworkCore, Version=3.0.4.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.MultiTenancy.MultiTenantConnectionStringResolver.. See the inner exception for details. ---- Autofac.Core.DependencyResolutionException : An exception was thrown while activating Volo.Abp.Identity.IdentityDataSeedContributor -> Volo.Abp.Identity.IdentityDataSeeder -> Volo.Abp.Identity.EntityFrameworkCore.EfCoreIdentityRoleRepository -> Volo.Abp.Uow.EntityFrameworkCore.UnitOfWorkDbContextProvider
1[[Volo.Abp.Identity.EntityFrameworkCore.IIdentityDbContext, Volo.Abp.Identity.EntityFrameworkCore, Version=3.0.4.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.MultiTenancy.MultiTenantConnectionStringResolver.
-------- Autofac.Core.DependencyResolutionException : An exception was thrown while invoking the constructor 'Void .ctor(Microsoft.Extensions.Options.IOptionsSnapshot`1[Volo.Abp.Data.AbpDbConnectionOptions], Volo.Abp.MultiTenancy.ICurrentTenant, System.IServiceProvider)' on type 'MultiTenantConnectionStringResolver'.
------------ System.AggregateException : One or more errors occurred. (1 validation error detected: Value null at 'secretId' failed to satisfy constraint: Member must not be null)
---------------- Amazon.SecretsManager.AmazonSecretsManagerException : 1 validation error detected: Value null at 'secretId' failed to satisfy constraint: Member must not be null
-------------------- Amazon.Runtime.Internal.HttpErrorResponseException : Exception of type 'Amazon.Runtime.Internal.HttpErrorResponseException' was thrown.Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.
As per this document can we use chart.js in abp ? https://docs.abp.io/en/commercial/latest/startup-templates/application/solution-structure#depended-packages
I am not able to find any document to implement chart.js in abp angular Can you please guide me how to do it ?
Continues for the same question Is there any way to get Current User Id in angular ?
Hi,
I am trying to use CurrentUser by using Abp functionality
Volo.Abp.Users.ICurrentUser
Volo.Abp.Application.Services.ApplicationService.CurrentUser{get;}
I am not able to get CurrentUser details Please find my code below for reference :
public virtual async Task<SomeDto> GetDetailsByUserId()
{
var CurrentId = CurrentUser.Id;
var SomeId = _someRepository.Where(x => x.UserId == CurrentId)
.Select(x => x.someData).FirstOrDefault();
return _someOtherRepository.Where(x => x.SomeId == SomeId).Select(x => x.SomeCode).ToList();
}
Posting this issue on behalf of my team member. He is unable to access his abp.io commercial account.
We used "Forget password" option and received a mail but its not opening in my outlook. He marked it as "Not Junk" still not able to see the link. He used outlook in web and got the link but again its not opening. Also, Tried to remove the cache from browser, still link is not working.
The url looks like following: "http://r.announcement.aspnetzero.com/tr/cl/<encrypted string>"
Please guide me to reset the password or How can we reach to abp.io for this urgent issue. The mail received looks like this :
Hi,
I have few set of forms which I want to show to a specific tenant but it should not be visible for my other tenants. I can achieve this by roles and permissions etc. But my question here is : Is there any other way to implement this with some multi-tenancy feature , if it's available ? Like tenancy based menu or something...
Thank you