Activities of "ed_developer3"

ok i have checked mapping its correct.

Also how to avoid this error by abp api "The data you have submitted has already changed by another user/client. Please discard the changes you've done and try from the beginning" Thanks

ABP Framework version: v7.4.0 UI Type: Angular Database System: EF Core (SQL Server)

We are trying to update a resource using Put http method endpoint. Suppose the resource behind the PUT endpoint is having 15 fields and we send 5 fields to be updated from front end then what it is doing is that it is updating those 5 fields only and making other fields to null. It should not touch remaining 10 fields as of now its making all of them to default or null. Can you let me know how to change or modify it if it can be changed.

Thanks.

ya it worked thanks

hi Swagger response and controller code Actually on frontend 403 is being taken as forbidden access message and code we are using is causing 400 in response text and not response code its still 403. Where to inject DefaultHttpExceptionStatusCodeFinder inherited class to override the response code.

when we say Busnessexception or friendly exception it results into status code 403 which is wrong code as user has permissions but contact cannot be added due to validation so we wanted to show a message with different status code than 403

Its 403 which comes when user does not have permission

ABP Framework version: v7.4.4 UI Type: Angular Database System: EF Core (SQL Server)

I have controller which is calling the service

    public class ContactInformationsAppService : ApplicationService, IContactInformationsAppService
    {
        [Authorize(ClientsPermissions.ContactInformations.Create)]
        public virtual async Task<ContactInformationDto> CreateAsync(ContactInformationCreateDto input)
        {
            if (await _contactInformationManager.checkContactExist(input.Email))
            {
                throw new UserFriendlyException("email {0} already exists", input.Email);
            }

            var contactInformation = await _contactInformationManager.CreateAsync(
            input.ClientInfomationIds, input.ContactTypeId, input.ProvinceTypeId, input.FirstName, input.LastName, input.PhoneNumber, input.PreferredContactWay, input.IsIndemnitor, input.Percentage, input.CellNumber, input.FaxNumber, input.Email, input.Notes, input.MailingAddress, input.City, input.PostalCode, input.BusinessAddress, input.Website, input.Company, input.Description, input.ContactCode, input.AlternateEmail
            );

            return ObjectMapper.Map<ContactInformation, ContactInformationDto>(contactInformation);
        }
    }
// controller method
 public class ContactInformationController : AbpController, IContactInformationsAppService  
    {  private readonly IContactInformationsAppService _contactInformationsAppService;

        [HttpPost]
        public virtual Task<ContactInformationDto> CreateAsync(ContactInformationCreateDto input)
        {

            return _contactInformationsAppService.CreateAsync(input);
        }
    }

How can i return the message to the consumer that Contact was not created because email already exists. Since the return type Task<ContactINformationDTO> i am not able to set the request as bad request and also how can we return a response from service to controller and then controller to consumer that email does not exist.

Thanks

Answer

Thanks for the links, we will try and implement please keep this open for next 3-4 days then if you don't hear from us you can close this ticket.

Question
  • ABP Framework version: v7.4.0
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

We were looking for having a richtext editor in angular app so that user can format the text inside it (Bold, underline,Italics,List, table ) same as you guys having in this website while adding a question. we were looking in this documentation link but could not find such control how can we have this kind of input control,please share us any link how can we achieve this.

Any update on this we are awaiting this since long its hampering our development.

Showing 1 to 10 of 63 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09