"mina" 'in aktiviteleri

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index 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:

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

I need to add the organization unit as a navigation property in ABP suite, previously in ASPzero, it was a dropdown to choose it, how to do it in ABP commercial?

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

new Fontawesome doesn't appear in the menu, either using ABPsuite or by changing NavigationMenu directly

I tested the below fas fa-laptop-house hand-holding-water

Thanks, Mina.

Great thanks for the prompt response, will try it. but we have one more question regarding the ABP suite, I see all the implementations of one to many relations are that it generates files about the parent entity with navigation property of the child like a book with its author but can we get it the other way i.e the Author with his list of books? Is it implemented? If yes how can we do it and if not is it on the roadmap?

Thanks in advance.

I can see several locations where we can add custom code but not one of them outside of the current structure, for example we need to add another Entity Action(this is done as it has a placeholder for custom code) but we need it to open addition modal, where should we place that modal?

Hi,

We have some question as follow:

1- if we are overide a page like adding extra Modal to ABP generated page, Should we replace the full razor and razor. cs or just add just the needed Modal / function?

2- Also when to use the new abp suite code hooks and when to use this?

3-Is there a documentation for the Code Hooks new feature?

Hello liangshiwei,

We are still a little bit confused and have some issues with ABP code hooks.

1- We are expecting to change the suite custom code hooks tags in the desired place but it seems not working, is that the intended solution, or this will be fixed?

2- For the other provided solution, I mean overriding the full page, it worked but we have to change the routing at @page as it will conflict with the original page generated by ABP SUIT.

Also for the c#

1- If we added a new method in the Partial IXRespository.Extended, and try to add the implementation in the EfCoreXRepository (Eteneded), The EfCoreXRepositoryBase abstract refuses to accept it as an implementation and we have to move it in the abstract class EfCoreXRepository (Base) which again we will remove in case of regeneration.

2- The same if we added a method in IXAppService Extended class, where should we implement it in the controller as it is regenerated each it we regenerate the entity

1- below is the autogenerated Edit modal by ABPSuite., it offers several Hooks at different locations, however, we need to add our Modal in a different place as none of the offered places are appropriate

<Modal @ref="EditBillingCycleStatusModal" Closing="@EditBillingCycleStatusModal.CancelClosingModalWhenFocusLost"> <ModalContent Centered="true"> @//<suite-custom-code-block-8>@ @//</suite-custom-code-block-8>@ .......

@//<suite-custom-code-block-10>@ @//</suite-custom-code-block-10>@ </ModalContent> </Modal>

what we need is to to be able to add a Hook After the modal to add our new Modal as below:

<Modal @ref="EditBillingCycleStatusModal" Closing="@EditBillingCycleStatusModal.CancelClosingModalWhenFocusLost"> <ModalContent Centered="true"> @//<suite-custom-code-block-8>@ @//</suite-custom-code-block-8>@ .......

@//<suite-custom-code-block-10>@ @//</suite-custom-code-block-10>@ </ModalContent> </Modal>

@//<suite-custom-code-block-11>@

<h1>new Model</h1> @//</suite-custom-code-block-11>@

what is the right solution to do that?

3- Waiting for your feedback regarding the service sides part

Thanks, Mina.

Dear liangshiwei,

we tried it, however, we faced some problems as follows:

1- If we checked the orginzatinUnit required field in ABP suit:, we get the following two issues:

a- missing null operator in the Razer as attached: b-Missing OrgainzationUnitId Value in SubscribersDataSeedContributor as attached

2- Also for any navigation propertied with Int primary key we get the same issue "?" null operator issue as attached

although this issues can be solved by the issue is every time we regenerate the entity we have to fix them again.

Thanks, Mina.

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

we have an Entity that inherit from FullAuditedEntity<int>, IHasConcurrencyStamp as follow

public abstract class TieredLayerBase : FullAuditedEntity&lt;int&gt;, IHasConcurrencyStamp
{
    [NotNull]
    public virtual string TieredLevelName { get; set; }
    public virtual decimal LowerLimit { get; set; }
    public virtual decimal? UpperLimit { get; set; }
    public virtual decimal Rate { get; set; }
    public int? BillingItemId { get; set; }
    public string ConcurrencyStamp { get; set; }

}

} and DTO than

public class TieredLayerCreateOrUpdateDto : FullAuditedEntityDto<int>, IHasConcurrencyStamp {

   //public int? Id { get; set; }
   [Required]
   public string TieredLevelName { get; set; } = null!;
   public decimal LowerLimit { get; set; }
   public decimal? UpperLimit { get; set; }
   public decimal Rate { get; set; }
   public int? BillingItemId { get; set; }

   public string? ConcurrencyStamp { get; set; } = null!;

}

AppService Interface as follow :Task<List<TieredLayerDto>> CreateTieredLayerToBillingItemAsync(List<TieredLayerCreateOrUpdateDto> tieredLayerCreateOrUpdateDtos);

and calling from blazor as follow await TieredLayersAppService.CreateTieredLayerToBillingItemAsync(NewTieredLayerList);

and we getting unsupported media type error message

it is solved by separating the UpdateDto and the CreateDto, however, the use case is that we need to send a list of CreateOrUpdateDto to the Appservice and the decision should be taken there based on the Id value.

in the browser is mentioned invalid value

log is below

2023-10-25 15:14:10.123 -04:00 [WRN] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "Your request is not valid!", "details": "The following errors were detected during validation.\r\n - The tieredLayerCreateOrUpdateDto field is required.\r\n - '0x0A' is invalid within a JSON string. The string should be correctly escaped. Path: $[0] | LineNumber: 8 | BytePositionInLine: 5.\r\n", "data": {}, "validationErrors": [ { "message": "The tieredLayerCreateOrUpdateDto field is required.", "members": [ "tieredLayerCreateOrUpdateDto" ] }, { "message": "'0x0A' is invalid within a JSON string. The string should be correctly escaped. Path: $[0] | LineNumber: 8 | BytePositionInLine: 5.", "members": [ "$[0]" ] }

35 kayıttan 1 ile 10 arası gösteriliyor.
Made with ❤️ on ABP v8.2.0-preview Updated on Mart 25, 2024, 15:11