Starts in:
1 DAY
21 HRS
37 MIN
30 SEC
Starts in:
1 D
21 H
37 M
30 S

Activities of "nparejod"

Maybe, I didn't ask the question properly. I need to make a custome property visible inside "CurrentUser" in order to use it as a filter. I need to know how to get information of a custome property in abpuser throught "IcurrentUser" to use as a filter.

I was told that I need to add the information to a claim to be able to extract it using CurrentUser, is there a tutorial to do that?

  • ABP Framework version: v4.4.0
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

Hello,

I added a custom property to abpuser entity by followinf this link: https://community.abp.io/articles/how-to-add-custom-property-to-the-user-entity-6ggxiddr The name of the custom property is "CustomerId", I need to create a filter on entity "Customer" to show only records related to CustomerId of the current user.

I think this is a very commun request but I haven't figure out how to do this using abp commercial framework.

Is there a tutorial somewhere to do this?

Any help providing detailed information will be appreciated.

Thanks,

  • ABP Framework version: v4.4.0
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

Hello,

I am trying to implement Entity extention for abapusers as per: https://docs.abp.io/en/abp/4.4/Module-Entity-Extensions#module-entity-extensions

In Version 4.4.0, what would be the best approach to extract data from database and generate a list in json format to be used by the abp user form? I am trying to create a lookup field to pick customer ID.

An example implementation that returns a fixed list of departments (in real life, you get the list from a data source):

[Route("api/departments")]
public class DepartmentController : AbpController
{
    [HttpGet]
    public async Task<ListResultDto<DepartmentDto>> GetAsync()
    {
        return new ListResultDto<DepartmentDto>(
            new[]
            {
                new DepartmentDto
                {
                    Id = Guid.Parse("6267f0df-870f-4173-be44-d74b4b56d2bd"),
                    Name = "Human Resources"
                },
                new DepartmentDto
                {
                    Id = Guid.Parse("21c7b61f-330c-489e-8b8c-80e0a78a5cc5"),
                    Name = "Production"
                }
            }
        );
    }
}

The code above is hardcoded list of Departments, how can I get the same list of departments from a database?

Thanks,

Nestor

Hello,

I am still confused about adding CustomerId to current claims. I am new using this framework, I apology for my lack of experience, abp commercial is a really cool framework that I would like to learn how to use it. I have more questions:

  • If I use claims, how do I populate/assign the CustomerId to all users? I need to assign a different Customer Id to each user
  • Where should I create the class AbpClaimsIdentityExtensions? which project / folder?
  • Any code that shows how to extract CustomerId from current claims?
  • Any detailed documentation I can use?

Thanks in advance for your help.

Nestor

Hello, That solution doesn't work for me. I am not using Claims. I just want to make available a new field I created in AbpUsers entity inside CurrentUser.

Please help!

  • ABP Framework version: v4.4.0
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

Hello, My UI interface is Blazor. I need to create a dashboard with charts like the ones in the demo app: https://commercial-demo.abp.io/dashboard

What is the best approach to create dashboars in Blazor? Can you provide examples?

Thanks,

Nestor

Thanks for your help. Second link worked for me. I have one more question: Will the new field "CustomerId" be available in current user information? https://docs.abp.io/en/abp/latest/CurrentUser

I need to create a filter with that field to be applied to Customer entity, so I need the field to be extracted from CurrenUser, is that possible?

Thanks,

Nestor

  • ABP Framework version: v4.4.0
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hello,

I just added a new property (CustomerId) to AbpUser class. But what I really need is a Navigation property in AbpUser to pick up customers in my Customer table. What is the best way to do that in ABP?

public class AppUser : FullAuditedAggregateRoot&lt;Guid&gt;, IUser
{
    public virtual Guid? TenantId { get; private set; }
    public virtual string UserName { get; private set; }
    public virtual string Name { get; private set; }
    public virtual string Surname { get; private set; }
    public virtual string Email { get; private set; }
    public virtual bool EmailConfirmed { get; private set; }
    public virtual string PhoneNumber { get; private set; }
    public virtual bool PhoneNumberConfirmed { get; private set; }

    **public virtual Guid? CustomerId { get; protected set; }**

    private AppUser()
    {
        
    }
}

After adding the migration, it is workign fine! Thanks for your help.

  • ABP Framework version: v4.4.0
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace: 42703: column s.ActivationEndDate does not exist
  • Steps to reproduce the issue: Update from 4.3 to 4.4

I just updated my project from Framework 4.3 to 4.4.0 as per this instructions: https://blog.abp.io/abp/ABP.IO-Platform-4.4-Final-Has-Been-Released!

Now, when I try to execute the app, all I see is this message: 42703: column s.ActivationEndDate does not exist

Please help.

Nestor

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