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

Activities of "murphymj5209"

No I did not add the statement; I am sure it will work OK.

I am on the current aspnetzero 10.1; using angular, EF; PowerTools 2.7.6

PowerTools has generated a good Entity for what it was designed todo. I created an Entity with 2 Navigation dropdowns. In one of the dropdowns, I want to display 2 fields from the table, instead of one; a simple concatination. The below does not work on the server side, both will return correct data, please let me know where to look to change the code. I do not think the angular side needs any changes; hence my question.

public async Task<List<MorthoImplantInformationMorthoImplantLookupTableDto>> GetAllMorthoImplantForTableDropdown() { return await _lookup_morthoImplantRepository.GetAll() .Select(morthoImplant => new MorthoImplantInformationMorthoImplantLookupTableDto { Id = morthoImplant.Id, DisplayName = morthoImplant == null || morthoImplant.ImplantCreator == null ? "" : morthoImplant.ImplantCreator.ToString().Substring(0,10) + " " + morthoImplant.ImplantModel.ToString().Substring(0,10) }).ToListAsync(); }

The complete error is below but I am puzzled why this happens since the data seems OK, I am 'just' appending another field

    System.ArgumentOutOfRangeException: Index and length must refer to a location within the string. (Parameter 'length')     at System.String.Substring(Int32 startIndex, Int32 length)     at lambda_method2489(Closure , QueryContext , DbDataReader , ResultContext , SingleQueryResultCoordinator )     at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()     at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken)     at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken)     at MedicineInfoTechnlgy.Mortho.NsMorthoImplantInformation.MorthoImplantInformationsAppService.GetAllMorthoImplantForTableDropdown() in C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\aspnet-core\src\MedicineInfoTechnlgy.Mortho.Application\NsMorthoImplantInformation\MorthoImplantInformationsAppService.cs:line 245     at lambda_method2480(Closure , Object )     at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)     at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)     at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.&lt;InvokeNextActionFilterAsync&gt;g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

I have tried your solution to my problem and it did not work; the eror is shown below.

I tried the following code, Chat feature unchecked, on the admin account for Tenant #2 the content stays on the menu screen.

new AppMenuItem('MorthoApp', '', 'flaticon-interface-8', '/app/admin/demo-ui-components', [], [], null, abp.features.isEnabled('App.ChatFeature.')),

Here is the error. plz let me know how to handle.

To be brief: the 1st line works, the 2nd one does not. :) new AppMenuItem('MorthoApp', '', 'flaticon-interface-8', '/app/admin/demo-ui-components'), //new AppMenuItem('MorthoApp', '', 'flaticon-interface-8', '/app/admin/demo-ui-components', [], [], null, null, (abp.features.isEnabled("App.WebFeatue.Arthroplasty.TotalKnee"))),

I also tried (abp.features.isEnabled('App.WebFeatue.Arthroplasty.TotalKnee')); i thought the double quote vs single quote.

I am on the current release 10.1.0-rc1 and am trying to get the menu to work for my solution; I am trying to add a menu item that will display if the Tenant has a feature. When I implment the feature in the menu, the solution just keeps running and does not come back. I am supplying the code i used and various screen shots with the last 20 rows of the log file.

I am logged onto non-host tenant and in a user account. It happens in the Tenant Admin account also.

I was expecting the Menu item to go from being displayed to disappear or to stay on the left hand sidebar, assuming the Tenant had the feature. I looked at various problem reports and the documents and this looks OK.

Please let me know what is the problem and its resolution. thanks.

Question

I am on the current release of AspnetZero, 10.1-rc1 and wanted to ask about .SVG icon files. I think that the solution is using https://github.com/aspnetzero/aspnet-zero-core/tree/dev/angular/src/assets/metronic/vendors, where there is Flaticon--Font containing Flaticon.svg file. In the app--navagation-service.ts i wanted to use a different icon; instead of flaticon-interface-8, which works fine, I would use a different icon.

My question is what do i need todo to be able to use a different Vendors icons. My app is medical and I would like to use medical icons. I saw the #7193 but it seems that you are saying that I need to generate the Angular, then modify the html to use the new icon. I wanted to verify this procedure.

Can you let me know how to send? a) i would like to zip the file because of propietary work effort; I have 7-zip which can encrypt but then i would publish my password in this forum or in a seperate email b) how to 'just' send code, assuming that is what you are asking for; meaning no binaries and other dirs.Thanks.

Question: I have the current PowerTools and it shows 2.7.6 but is there a way i can look at one or more of the RadTool files to make sure this is current? When the 'new' RadTools was installed, since I am using Github, i expected my RadTool Template files to be showm in an update. I do not remember seeing this happen.

I am on the current release of AspnetZero, 10.1-rc1 and am doing programming for the new system. My questions are very general and I want a better understanding of AspnetZero 'null' TenantId field and its impact on the design and programming within Aspnet Zero. I have read the normal published doc in the a) https://aspnetboilerplate.com/Pages/Documents and b) https://docs.aspnetzero.com/en/common/latest

Here is my current understanding; 'somehow' I add a null Tenant to a AspnetZero PowerTools table. For Null TenantIds I can do a SQL Insert statenment or Seed data within the coding. If I add a table with PowerTools, go to that area and add a row, it add the row with a non-null TenantId.

If there is another way to add a Null TenantId, please let me know.

Last question / statement, if I add a Null TenantId, (in general), then this can be used for all Tenants within my application. Again, please corrent my understanding.

Prerequisites

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

  • What is your product version? 10.1.rc1
  • What is your product type (Angular or MVC)?Angular
  • What is product framework type (.net framework or .net core)?.Net Core 5
  • PowerTools version 2.7.6

If issue related with ABP Framework

  • What is ABP Framework version?6.1

If issue is about UI

  • Which theme are you using?Default - Theme 1
  • What are the theme settings?default settings

Problem Description: In using PowerTools the tool seems to put out the column name with the data. Below is the Json file and the attachment has the GreenShot.

-> MorthoArthroplastyTypesAppService.cs is being generated. -> IMorthoArthroplastyTypesAppService.cs is being generated. -> MorthoArthroplastyTypeConsts.cs is being generated. -> CreateOrEditMorthoArthroplastyTypeDto.cs is being generated. -> MorthoArthroplastyTypeDto.cs is being generated. -> GetAllMorthoArthroplastyTypesForExcelInput.cs is being generated. -> GetAllForLookupTableInput.cs is being generated. -> GetAllMorthoArthroplastyTypesInput.cs is being generated. -> GetMorthoArthroplastyTypeForViewDto.cs is being generated. -> GetMorthoArthroplastyTypeForEditOutput.cs is being generated. -> MorthoArthroplastyType.cs is being generated. -> MorthoArthroplastyTypesExcelExporter.cs is being generated. -> IMorthoArthroplastyTypesExcelExporter.cs is being generated. -> AppPermissions.cs is being modified. -> AppAuthorizationProvider.cs is being modified. -> MorthoDbContext.cs is being modified. -> CustomDtoMapper.cs is being modified. Running add-migration... Build started... Build succeeded. Done. To undo this action, use 'ef migrations remove' Running migrator... Build started... Build succeeded. Applying migration '20201226041258_Added_MorthoArthroplastyType'. Done. -> morthoArthroplastyTypes.component.ts is being generated. -> morthoArthroplastyTypes.component.html is being generated. -> create-or-edit-morthoArthroplastyType-modal.component.html is being generated. -> create-or-edit-morthoArthroplastyType-modal.component.ts is being generated. -> view-morthoArthroplastyType-modal.component.html is being generated. -> view-morthoArthroplastyType-modal.component.ts is being generated. -> admin.module.ts is being modified. -> admin-routing.module.ts is being modified. -> app-navigation.service.ts is being modified. -> service-proxy.module.ts is being modified. -> Mortho.xml is being modified. yarn run v1.22.10 $ C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\node_modules.bin\prettier --write C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\morthoArthroplastyTypes.component.ts src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\morthoArthroplastyTypes.component.ts 191ms Done in 0.47s. yarn run v1.22.10 $ C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\node_modules.bin\prettier --write C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\morthoArthroplastyTypes.component.html src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\morthoArthroplastyTypes.component.html 344ms Done in 0.61s. yarn run v1.22.10 $ C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\node_modules.bin\prettier --write C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\create-or-edit-morthoArthroplastyType-modal.component.html src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\create-or-edit-morthoArthroplastyType-modal.component.htmsrc\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\create-or-edit-morthoArthroplastyType-modal.component.html 118ms Done in 0.38s. yarn run v1.22.10 $ C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\node_modules.bin\prettier --write C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\create-or-edit-morthoArthroplastyType-modal.component.ts src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\create-or-edit-morthoArthroplastyType-modal.component.ts 178ms Done in 0.44s. yarn run v1.22.10 $ C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\node_modules.bin\prettier --write C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\view-morthoArthroplastyType-modal.component.html src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\view-morthoArthroplastyType-modal.component.html 76ms Done in 0.33s. yarn run v1.22.10 $ C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\node_modules.bin\prettier --write C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\view-morthoArthroplastyType-modal.component.ts src\app\admin\nsMorthoArthroplastyType\morthoArthroplastyTypes\view-morthoArthroplastyType-modal.component.ts 167ms Done in 0.43s.

Code generation is complete. Press ENTER to exit...

C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular>cd ns*

C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\nswag>refresh.bat

C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\nswag>"..\node_modules.bin\nswag" run NSwag NPM CLI NSwag command line tool for .NET Core NetCore21, toolchain v13.9.0.0 (NJsonSchema v10.3.0.0 (Newtonsoft.Json v11.0.0.0))Visit http://NSwag.org for more information. NSwag bin directory: C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\node_modules\nswag\bin\binaries\NetCore21

Executing file 'C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\nswag\service.config.nswag' with variables ''... Done.

Duration: 00:00:03.5821766

C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular\nswag>cd..

C:\Github\murphymj5209\MedicineInfoTechnlgy.Mortho\angular>

{ "IsRegenerate": false, "MenuPosition": "admin", "RelativeNamespace": "NsMorthoArthroplastyType", "EntityName": "MorthoArthroplastyType", "EntityNamePlural": "MorthoArthroplastyTypes", "TableName": "MorthoArthroplastyTypes", "PrimaryKeyType": "Guid", "BaseClass": "FullAuditedEntity", "EntityHistory": false, "AutoMigration": true, "UpdateDatabase": true, "CreateUserInterface": true, "CreateViewOnly": true, "CreateExcelExport": true, "IsNonModalCRUDPage": false, "IsMasterDetailPage": false, "PagePermission": { "Host": true, "Tenant": true }, "Properties": [ { "Name": "Description", "Type": "string", "MaxLength": 50, "MinLength": 1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": true, "Nullable": false, "Regex": "", "UserInterface": { "AdvancedFilter": true, "List": true, "CreateOrUpdate": true } } ], "NavigationProperties": [], "NavigationPropertyOneToManyTables": [], "EnumDefinitions": [], "DbContext": null }

i finally found in your documentation that after a entity is created, then i need to start the web.hosts --> then do nswag\refresh.bat from the command line.

This gen'd the Service Proxies and I was able to see the Person Entity in the Angular area, after I logged in.

Showing 61 to 70 of 100 entries