Base solution for your next web application

Activities of "kiandra"

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version?
  • v11.0.0(latest)
  • What is your product type (Angular or MVC)?
  • Angular 13 version
  • What is product framework type (.net framework or .net core)?
  • .net 6

Issue related to Power tools. Power tools version : 3.1.1

I'm using visual studio 2022 professional version and using Asp.net zero power tools to create entity.

Problem : RAD tools is not generating automatic code when an entity is created. I could only see AspNetZeroRadTool folder getting created in my solutions folder location but no code getting generated. Please help to resolve this issue. And let me know in case you need more details. Thanks .

Looks like when you create a field name that is an abbreviation with at least 3 letters the tool mismatches the capitalization.

For example an entity with the generated c# class

[Table("Products")]
    public class Product : FullAuditedEntity , IMayHaveTenant
    {
		public int? TenantId { get; set; }
		public virtual decimal RRPInc{ get; set; }		
    }

Will generate an angular binding

{{record.product.rRPInc}}

but the service proxy will be

rrpInc!: number | undefined;

and the mismatch causes a silent error where the value does not update.

Not a huge deal we can just rename the field or fix the error manually but it is annoying

Hey guys,

I'm new to ASP.NETZERO and i'm jumping on as a Front End Developer supporting our dev team.

How do I update the accepted file types and maximum resolution for the applicaiton logo which gets configured through the settings screen?

I want to use an SVG file, as it's a smaller file size and will also support retina displays which the current restrictions don't cater for.

Is this something that can be configured within the application codebase?

Hello,

I am using an ASP.NET Core + Angular project (version 5.4.1). In the Web.Host project I noticed that my appsettings.json file has the following section:

"App": {
        "ServerRootAddress": "http://localhost:22742/",
        "ClientRootAddress": "http://localhost:4200/",
        "CorsOrigins": "http://localhost:4200,http://localhost:49152"
    }

however in my appsettings.production.json file I have this:

"App": {
    "WebSiteRootAddress": "http://localhost:9901/",
    "ClientRootAddress": "http://localhost:4200",
    "CorsOrigins": "http://localhost:9902/"
  }

Notice that the app setting names are different, i.e. in the appsettings.json file I have "ServerRootAddress" but in the appsettings.production.json file I have "WebSiteRootAddress". Is this intentional? I only noticed it because I am using the "ServerRootAddress" setting in my application so that I can display a url on screen and I noticed that it was still pointing to localhost, despite the fact that I had updated the WebSiteRootAddress setting in the appsettings.production.json file as per the instructions in the "Step By Step Publish To Azure Angular" documentation. I know this is easy to fix, I would just like to understand if the differnce in app settings is intentional, and if so what is the reason for it?

Hello,

Is it possible to programmatically retrieve the URL of an AppService method from another AppService method? For example:

public class ActionsAppService: MyAppServiceBase, IAppService {
        
    [AbpAuthorize(AppPermissions.Pages_Actions_Edit)]
    public async Task<GetActionForEditOutput> GetActionForCreate(string actionType)
    {
        var action= new Action();

        action.PostbackUrl = [SOMETHING TO RETRIEVE URL OF THE POSTBACK METHOD BELOW];

        return action;
    }

    //This will be called by an external system
    public async Task PostBack(string formData){
        ....
    }
}

Cheers, Brad Webber

Showing 1 to 5 of 5 entries