Starts in:
0 DAY
6 HRS
59 MIN
48 SEC
Starts in:
0 D
6 H
59 M
48 S

Activities of "nabass"

Question

hi i wish i can explain i want to make logic that allows me open page or not according to Authorization i attached some images to explain what i want what i want is: if i have 2 users (x ,y) x has permission for specific pages so i must give him requiredPolicy within route.provider.ts file and not open the page if he hasn't permission put in my case what happen is just router link appear or not according to permission and page still open even if (x) hasn't permission

both if has permission or not will open this page and i don't want this just open it if has permission

  • ABP Framework version: v8.0.2
  • UI Type: Angular
  • Database System: EF Core (SQL Server)

hi where can i find logout logic to clear database for example i added an item to my table this item store in local storage i want when logout and login again with same user to clear this local storage so how can i did it ? i attached simple video to see what i want to do thank you

https://streamable.com/4l44ba

  • ABP Framework version: v8.0.2
  • UI Type: Angular
  • Database System: EF Core (SQL Server)

I have a project with multiple modules and i can use lookup from module to other (Enum) and it works fine as image 1 when i tried to do same logic but this time within creating new tenant screen it's not working as expected the result is value as image 2 now you will say it is working and there is data but actually this data is wrong because i get lookup from Enum so the result is value on Enum not the value stored within localization (En || Ar) as image 1 so i want to show the localization value not Enum value i wrote my code within two classes 1- Domain Shared path ==> src\Horizon.HorizonERP.Domain.Shared\HorizonERPModuleExtensionConfigurator.cs

2- Entity Framework path ==> src\Horizon.HorizonERP.EntityFrameworkCore\EntityFrameworkCore\HorizonERPEfCoreEntityExtensionMappings.cs

  • ABP Framework version: v8.0.2
  • UI Type: MVC
  • Database System: EF Core (SQL Server)
Question

hi sir how to style <abp-select> tag i tried every thing inline style external style internal style nothing work how to style it

  • ABP Framework version: v8.0.2
  • UI Type: MVC
  • Database System: EF Core (SQL Server,)
Question

hi I have 2 date inputs so i made a logic when changing on one of them another on will updated auto as code below when i tried same js code on normal html file it works perfectly when i use same code on ABP it doesn't work so is there a special something i should do first ??

<abp-column size="_4"> <abp-date-picker id="documentDate" auto-update-input="true" today-button-classes="btn-primary" asp-for="Purchase.DocumentDate" label="@L["DocumentDate"].Value" /> </abp-column> <abp-column size="_4"> <abp-date-picker id="vendorInvoiceDate" auto-update-input="true" today-button-classes="btn-primary" asp-for="Purchase.VendorInvoiceDate" label="@L["VendorInvoiceDate"].Value" /> </abp-column> <script> const vendorInvoiceDate = document.getElementById('vendorInvoiceDate'); const documentDate = document.getElementById('documentDate'); vendorInvoiceDate.addEventListener('change', function (event) {
documentDate.value = event.target.value; }); </script>

  • ABP Framework version: v8.0.2
  • UI Type: MVC
  • Database System: EF Core (SQL Server,)

hi according to this artice https://abp.io/docs/8.2/framework/infrastructure/background-jobs/hangfire i followed the steps 1- Install-Package Volo.Abp.BackgroundJobs.HangFire 2- add package Hangfire.SqlServer --version 1.8.14 3- Configuration but i got this error so what are information from me to provided with to know the error ?

  • ABP Framework version: v8.0.2
  • UI Type:MVC
  • Database System: EF Core (SQL Server)

hi i faced non logical error after build angular project and publish in IIS Server this error doesn't appear in development phase what is that and how to solve it note: i started new project for test (abp new projectName -u angular) and faced same error

  • ABP Framework version: v8.3 && v8.0
  • UI Type: Angular

hi when i make publish from angular application and upload it to IIS server and my partner trying to open it he has another localhost for example my localhost is 44388 and his local is 44255 so application will not run he must open the source code and change localhost within environment file and this file will be not editable to change the port when production so what i did is 1- creating new Config.json file and put the Url 2- create a service to use this config 3- use this Url into all my APIs so if i changed this Url on my local Machin no API will work that is exactly what happen when production so i created this file into assets folder to allow any one has this publish to just change the Url within Config.json file to his localhost and it will work very well so where is the problem ?? the problem within environment file which deleted when production and this file includes my Machin localhost so if any one take this publish will not work because he hasn't environment file so i want to make all code into environment file to be within config.json file.

summery:

1- when i publish my project it will remove environment file which includes outh login page 2- i want to make this logic within config.json file to make my partner just change localhost to his localhost 3- then i will remove environment files it will not affect on project because it will be useless

-- images will include 1- config.json 2- service to use it 3- example for API 4- environment file

  • ABP Framework version: v8.2
  • UI Type: Angular

How to get extended property from tenant

Check the docs before asking a question: https://abp.io/docs/latest Check the samples to see the basic tasks: https://abp.io/docs/latest/samples The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info: 🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration button.

  • ABP Framework version: vX.X.X
  • UI Type: Angular / MVC / Blazor WASM / Blazor Server
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..) / MongoDB
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:
  • ABP Framework version: v8.0.2
  • UI Type: MVC
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): MVC /Auth Server Separated (NO)
  • Exception message and full stack trace:
  • Steps to reproduce the issue: I create extended property on tenant like this code
private static void ConfigureExtraProperties()
{
    OneTimeRunner.Run(() =>
    {  ObjectExtensionManager.Instance.Modules()
     .ConfigureSaas(tenant =>
     {
         tenant.ConfigureTenant(tnt =>
         {
            
             tnt.AddOrUpdateProperty<EnvironmentMode>(
                 "EnvironmentMode"
                   , property =>
                   {
                       property.DisplayName = LocalizableString.Create<CoreSettingResource>("EnvironmentMode");
                       property.Attributes.Add(new RequiredAttribute());
                   });
                          });



});

//========================== and already appear in Create and edit tenant page and list of tenant page and saved on Tenant table but i have issue how i get the values from this extended property i tried to use IDistributedEventHandler and create new class in application project in src folder like that

 public class CustomTenantDistributedHandler:
 IDistributedEventHandler<EntityCreatedEto<TenantEto>>,
 ITransientDependency
 {
     [UnitOfWork]
     public async Task HandleEventAsync(EntityCreatedEto<TenantEto> eventData)
     {
         var tenantId = eventData.Entity.Id;
         var tenantName = eventData.Entity.Name;
         //...your custom logic
     }

     //...
 }

//================ but this event not fire can you advice ?

Showing 1 to 10 of 55 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06