Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "AuroraBMS"

Hi @musa.demir,

No worries about the documentation as I know it is still testing phase, this an important addition for me to the template so I am a bit over eager to play around with it.

I downloaded the latest (RC) version again incase something changed.

Same scenario, I did everything the same as above and still errors.

I left out adding a navigation property on the child item (Which is something that is required) and still ended up with the same issue.

I also got a few extras that occur when regenerating entities.

  1. So first part, here is the errors from following the above steps:

ERROR in src/app/main/masterDetail/childEntities/childEntities.component.ts:60:41 - error TS2554: Expected 6 arguments, but got 5.

60 this._childEntitiesServiceProxy.getAll( ~~~~~~~ 61 this.filterText, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... 65 this.primengTableHelper.getMaxResultCount(this.paginator, event) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 66 ).subscribe(result => { ~~~~~~~~~

src/shared/service-proxies/service-proxies.ts:1536:205 1536 getAll(filter: string | null | undefined, addedAPropertyFilter: string | null | undefined, parentEntityIdFilter: number | undefined, sorting: string | null | undefined, skipCount: number | undefined, maxResultCount: number | undefined): Observable<PagedResultDtoOfGetChildEntityForViewDto> { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ An argument for 'maxResultCount' was not provided. src/app/main/masterDetail/childEntities/childEntities.component.ts:78:43 - error TS2554: Expected 1-2 arguments, but got 0.

78 this.createOrEditChildEntityModal.show(); ~~~~~~

src/app/main/masterDetail/childEntities/create-or-edit-childEntity-modal.component.ts:35:18 35 parentEntityId: any, ~~~~~~~~~~~~~~~~~~~ An argument for 'parentEntityId' was not provided.

  1. When regenerating the parent entity it creates a duplicate of the 1 * Many link Identifier in the entity.
  2. When clearing out the entity and/or regenerating it results in errors as well.
  3. When I manage to fix the errors I get an invalid value error which I assume is linked to the Child Entity Id from the parent
  4. When I then regenerate the child item and remove the duplicated variables the Master Detail works but the page of the child does not works.

I'm basically just running around in circles currently fix 1 thing, something else breaks.

Both entities only contain 1 property and when adding the link the 2nd property is added on the lines.

So there is nothing special about the entities and it is bare minimum.

Regards, AuroraBMS

Hi @ismcagdas,

Any update on this?

I assume people have gotten it to work since there are other errors logged for this so I am not sure where I am going wrong?

Regards, AuroraBMS

Hi @ismcagdas,

Master Entity: [Table("TransactionHeaders")] public class TransactionHeader : FullAuditedEntity<long> , IMayHaveTenant { public int? TenantId { get; set; }

	public virtual string CardCode { get; set; }
	
	public virtual string CardName { get; set; }
	
	public virtual string InternalId { get; set; }
	

}

Child Entity:
[Table("TransactionLines")]
public class TransactionLine : FullAuditedEntity&lt;long&gt; , IMayHaveTenant
{
	public int? TenantId { get; set; }
	
	public virtual string ItemCode { get; set; }
	
	public virtual string ItemName { get; set; }
	

	public virtual long TransactionHeaderId { get; set; }
	
    [ForeignKey("TransactionHeaderId")]
	public TransactionHeader TransactionHeaderFk { get; set; }
	
}

This field below normally gets generated a 2nd time when adding the master link to the child.: public virtual long TransactionHeaderId { get; set; }

Hi @Ismcagdas,

The problem persists even through this.

This is the original way I did it and I extracted a clean project again and redid everything again from scratch following with the above and same issue.

So basically here is the findings overall:

Scenario 1

  1. Generate Parent Table
  2. Generate Child Table
  3. Regenerate Parent Table
    1. Add Master Detail Grid to the parent
    2. Generate results in a stack overflow error

Scenario 2

  1. Generate Parent Table
  2. Generate Child Table
    1. Create Navigation Property for child table to header
  3. Regenerate Parent Table
    1. Add Master Detail
    2. This generates incorrect HTML at times with the show containing more params than required
    3. Also generates incorrect ts file data which gives off errors
    4. Adds a second propperty to DTO's where navigation property is displayed. in this case TransactionHeaderId is duplicated once for each the below
      1. Master Detail Generation
      2. Parent Link on line generation
  4. Errors in 3 appear once the following is done
    1. Run Host Application
    2. Run Nswag
    3. npm start Angular app

Another error that occurs is blank Master detail tab(No items added) results in a backend style error rather than the similar error of the properties - Atleast one property needs to be specified (Not a problem though, just mentioning it from a user perspective.)

Also, even with manual fixing the process does not work and I don't know where to start looking at the issues where this is failing so I can't really elaborate on this part further. I wish I had more time to investigate.

Overall, only part that works from a generation/functionality part is the actual UI and the individual components in the master detail but not the linking when manually fixed.

But I can say the look is nice though and the way it should work is nice as well.

Regards, AuroraBMS

So basically the params in general either do no generate or generates too many. Sometimes it gives different params issue based on how it is generated(The order in which you generate it) After manually adding everything in no relational data is displayed and also when creating a child item from the header page, it does not do anything.

Also, while pressing create new for a child it loads an existing entity in the database that is supposed to be linked to the header instead of loading a blank entity for creating.

As mentioned before, not sure if I am following incorrect steps for this but tried multiple different variations with mater detail not working correct except for the html side.

@dparizek open powershell and run this command "dotnet-runtime-2.2.0-win-x64.exe"

In visual studio, uninstall powertools then reinstall power tools.

This should resolve it for you - resolved it on my side.

It might require Ef core to be installed/upgraded as well which was also an issue on my side.

Getting same issue, no errors in Windows event viewer.

Is it possible to revert back to a lower version while this is being resovlved? Had to reimplement my environment due to crash and unfortunately it installed the latest version and now I am stuck.

Hi ANZ Team,

Just want to find out something regarding the Non-Modal pages that gets generated.

When you edit an entry it is fine how it works currently, the data gets updated when you save and the data is still available should you want to update again.

When Creating a new entry and saving afterwards, the data stays in the fields and do not clear out and also does not get linked to the just created entity. Is this how it was intended to be or should it have cleared out the data so that you can continue adding new data entries or editing the data you just added without going back and reopening?

Thanks, AuroraBMS

Hi ismcagdas,

There is no decleration for entityTypeHistoryModal.

Is there a specific decleration way/type required for this as well as where is the model located for entityTypeHistoryModal as I see there is none generated in any of the modules that I have generated so far.

Ill add the request to github for the master detail grids with a link to this topic.

Can I create the request on the same link previously previded for logging issues, is that fine or there a specific feature link?

Hi ANZ team,

Just some extra info:

There is a 500 error occuring on startup. GET https://localhost:44301/AbpUserConfiguration/GetAll?d=1588879485571 500 Not sure from what it would be.

Showing 21 to 30 of 54 entries