Atividades de "viswajwalith"

You can overiide some base class methods of AbpInputTagHelperService in your MyInputTagHelperService .

https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpInputTagHelperService.cs

It Worked perfectly. Now we are able to over ride the input helper. Thanks for the info @maliming.

You can overiide some base class methods of AbpInputTagHelperService in your MyInputTagHelperService .

https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpInputTagHelperService.cs

Sure, We will give a try and update you back. Thanks

Maybe you can try:

using System.Text.Encodings.Web; 
using Microsoft.AspNetCore.Mvc.ViewFeatures; 
using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers; 
using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form; 
using Volo.Abp.DependencyInjection; 
 
namespace MyCompanyName.MyProjectName.Web 
{ 
    [Dependency(ReplaceServices = true)] 
    [ExposeServices(typeof(AbpInputTagHelperService))] 
    public class MyInputTagHelperService : AbpInputTagHelperService 
    { 
        public MyInputTagHelperService(IHtmlGenerator generator, 
            HtmlEncoder encoder, 
            IAbpTagHelperLocalizer tagHelperLocalizer) 
            : base(generator, encoder, tagHelperLocalizer) 
        { 
        } 
 
    } 
 
    [Dependency(ReplaceServices = true)] 
    [ExposeServices(typeof(AbpInputTagHelper))] 
    public class MyInputTagHelper : AbpInputTagHelper 
    { 
        public MyInputTagHelper(AbpInputTagHelperService tagHelperService) 
            : base(tagHelperService) 
        { 
 
        } 
    } 
} 
 

I am not sure, in this case where we can overide the html content of Tag helpers? Are we missing anything here?

hi

You can try to create a new taghelper and make it executed first.

https://github.com/abpframework/abp/blob/48c52625f4c4df007f04d5ac6368b07411aa7521/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpIdNameTagHelper.cs#L18

Yes, creating a new one is one of the option, but Lets suppose we had to customize the textbox across application, we need to include the files of administration and SAAS modules and override those. Inisted of that if we can override adp-input tag helper it would be easy approch right.

Is there any way to include .cshtml of respective tag helper to override the defayult ones?

Hi @rick@i-pulse.nl , The issue is there with created js/blazor files. We faced the same issue with our MVC template and we fixed that my modifying the respective index.js file.

actually pruler form is being added where as it is singler .

$(function () { var l = abp.localization.getResource("ProductService"); var productService = window.exceego.EHSWatch.appV3.productService.products.products;

Change to

$(function () { var l = abp.localization.getResource("ProductService"); var productService = window.exceego.EHSWatch.appV3.productService.products.products;

In your case it might be

  var brandService = window.company.projectname.brandService.brands.brands;  

to

var brandService = window.company.projectname.brandService.brands.brand;

Hope this helps

Hi Viswajwalith,

After doing that correction, now it works.

Thanks a lot !!

Good to know. The Fix worked for you.

  • ABP Framework version: v4.3
  • UI type: MVC
  • DB provider: EF Core / MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): yes (Micro Service one)
  • Exception message and stack trace:
  • Steps to reproduce the issue:

We would like to over ride the abp-input controls to customize the UI, can you please guide on how to perform the same. I mean Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.

I know we can override the pages but just trying to find a way to overRride Abp Tag helper so that it can be updated everywhere with very minila code.

And you gave the related permissions to the admin user but still getting permission erros? To be sure, this is your newly added microservice with Mongodb right? Please do send a screen record to diagnose better.

Hi, The issue got fixed. I made a mistake. In my Service, I have replaced the EF core injection with MongoDB one. In fact I should had MongoDB injection without removng the EF core injection. After having both it work fine for me. Thanks.

Microservice template and module templates are different from each other. Selecting db for microservice template as abp new OrderService -t microservice-service-pro -d mongodb is not supported yet.

I am able to see the permissions in UI and those are selected still when trying to access my newly created service getting permission issue

What do you mean by access my newly created service? Are you trying to make a request to your newly created microservice from an other microservice? Can you compare it to sample ProductService microservice?

I Already followed the product service and steps and all working fine with the custom service with EF (PermissionUI, CRUD permissions etc) I created one more service and added Mongo specific files/layer manually and used in newly created service. Injected the same in solution in all layers. All UI pages/Permissions are coming perfectly. but when I am making CRUD calls to the service getting the permission issue. If still not clear I may send a screen recording /screenshots of all pages to the email which you mention.

Hi @rick@i-pulse.nl , The issue is there with created js/blazor files. We faced the same issue with our MVC template and we fixed that my modifying the respective index.js file.

actually pruler form is being added where as it is singler .

$(function () { var l = abp.localization.getResource("ProductService"); var productService = window.exceego.EHSWatch.appV3.productService.products.products;

Change to

$(function () { var l = abp.localization.getResource("ProductService"); var productService = window.exceego.EHSWatch.appV3.productService.products.products;

In your case it might be

var brandService = window.company.projectname.brandService.brands.brands;

to

var brandService = window.company.projectname.brandService.brands.brand;


Hope this helps 

It worked thanks, but had to do that multiple times one after other :)

I think there still some issues with micro service template, We have added the new service using "abp new OrderService -t microservice-service-pro -d mongodb. Message showed saying the Service is created with MongoDB but It got created with EF core only. After that we followed all steps in https://docs.abp.io/en/commercial/latest/startup-templates/microservice/add-microservice, In fact I am able to make changes to use MongoDB manually and initial setup is good. But Facing some issues with Permissions. I am able to see the permissions in UI and those are selected still when trying to access my newly created service getting permission issue

{ "code": "Volo.Authorization:010001", "message": "Authorization failed! Given policy has not granted.", "details": null, "data": {}, "validationErrors": null }

I cross verified the permission related data in Identity DB and looks good. Also If I comment Authroize attribute in my service. able to do CRUD operations.

Can you please help us.

Mostrando 281 até 290 de 309 registros
Made with ❤️ on ABP v8.2.0-preview Updated on março 25, 2024, 15:11