Base solution for your next web application

Activities of "gbadenhorst"

Hi,

Is there a specific or detailed guide that can be followed when deploying a ASP.NET Core & Angular application?

I have been struggling to deploy the API side for a while now and i know it is probably a stupid mistake on my side but i am out of ideas as from what i can see, it is not the basic deployment style of a normal MVC web app.

It keeps complaining about the webconfig not being in the correct format. Error provided by IIS: HTTP Error 500.19 - Internal Server Error

File attached with more details.

I don't know where i went wrong with the deployment as it was handle like any other.

Any help would be greatly appreciated.

Regards, Gideon Badenhorst.

Hi,

Is it possible and if yes how can i get a list of data without logging in and displaying it on a custom page or on the public web page project?

I am busy with creating an online store and the only thing i am struggling with at the moment is displaying the products catalog on the main page before login/registration.

I hope this is not a too unreasonable question to ask as i am kind of not very informed regarding security and the works of this templates authorizations.

Thank you in advance.

Regard, Gideon Badenhorst

Hi,

I have been busy with trying to redevelop a system i created with Jtables and the PrimeNg tables are giving me nightmares through and through.

I have now tried to implement a basic table with 2 columns and a query based on both GetEditions & GetUsers and with both concepts and table designs which range from having pagination and only display data with a record count i have yet to be able to get the PrimeNg grids to work.

So far based on the posts that i have read everything is in place and there should not be any problems with dropping in the html structure and linking the correct method/function to the pagination or just the loading.

the error i received is this: ERROR Error: Uncaught (in promise): Error: Template parse errors: Can't bind to 'value' since it isn't a known property of 'p-dataTable'.

  1. If 'p-dataTable' is an Angular component and it has 'value' input, then verify that it is part of this module.
  2. If 'p-dataTable' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the <a href="mailto:'@NgModule.schemas">'@NgModule.schemas</a>' of this component to suppress this message.
  3. To allow any property add 'NO_ERRORS_SCHEMA' to the <a href="mailto:'@NgModule.schemas">'@NgModule.schemas</a>' of this component. ("le #dataTable (onLazyLoad)="getItems()" [ERROR ->][value]="primengDatatableHelper.records" rows="{{primengDatatableHelper"): ng:///MainModule/ItemComponent.html@41:29 Can't bind to 'rows' since it isn't a known property of 'p-dataTable'.
  4. If 'p-dataTable' is an Angular component and it has 'rows' input, then verify that it is part of this module.
  5. If 'p-dataTable' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the <a href="mailto:'@NgModule.schemas">'@NgModule.schemas</a>' of this component to suppress this message.
  6. To allow any property add 'NO_ERRORS_SCHEMA' to the <a href="mailto:'@NgModule.schemas">'@NgModule.schemas</a>' of this component. (" [value]="primengDatatableHelper.records" [ERROR ->]rows="{{primengDatatableHelper.defaultRecordsCountPerPage}}" [paginator"): ng:///MainModule/ItemComponent.html@42:29 Can't bind to 'paginator' since it isn't a known property of 'p-dataTable'.
  7. If 'p-dataTable' is an Angular component and it has 'paginator' input, then verify that it is part of this module.
  8. If 'p-dataTable' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the <a href="mailto:'@NgModule.schemas">'@NgModule.schemas</a>' of this component to suppress this message.
  9. To allow any property add 'NO_ERRORS_SCHEMA' to the <a href="mailto:'@NgModule.schemas">'@NgModule.schemas</a>' of this component. (" rows="{{primengDatatableHelper.defaultRecordsCountPerPage}}" [ERROR ->][paginator]="false" [lazy]="true" emptyMe"): ng:///MainModule/ItemComponent.html@43:29

I have no idea how to get around this and this is a rather urgent problem that i am struggling with.

Is there any one that might know if i am missing something or that i have done wrong?

Regards, Gideon Badenhorst.

Hi,

I have been experiencing a rather big problem at the moment when publishing the new angular side of 4.5.1. The error in the description is what i am currently receiving when i try to publish to azure.

The Testing site can be found here: <a class="postlink" href="https://aurora-bms.azurewebsites.net/">https://aurora-bms.azurewebsites.net/</a>

I have followed the steps on the site for publishing the angular side.

Any help would be greately appreciated!

Regards, Gideon Badenhorst

Hi,

I have a few questions regarding data & Submission.

I have beeen looking at different examples and posts that i could find that deals with data retrieval and submission in this project but so far alot of things you can normally do with entity seems to either require a strange way to complete or can not be done.

<ins>1) Submitting a collection of data:</ins> Is there a way to submit data through the repository based on a list/collection example. i am creating a sales order and would like to only submit the lines ones the user is done adding them and minipulating it. Sales Order Header Sales Order Lines (Multiple lines of data) <-- Bulk submit without requiring to loop through the lines

<ins>2) Retrieving Data with Sub Objects/Collections:</ins> I am currently trying to retrieve data from a header table: Business Partners This header table has 3 Lines Tables -Transactions -PriceLists -Cart

As soon as i pull the query and start with the Pagination/Orderby it does not want to order the Business Partners Table and throws and error: Message = "Argument types do not match"

This only occurs as a problem when i map the Lines Tables to the Object:

var query = _BusinessEntityRepository //.GetAll() .GetAllIncluding(x => x.AddressBook, x => x.Transactions, x => x.Carts) .WhereIf(!input.Filter.IsNullOrWhiteSpace(), c => c.Code.Contains(input.Filter)).Select(x => new BusinessEntityListDto { Code = x.Code, Name = x.Name, Description = x.Description, <ins>AddressBook = x.AddressBook, Carts = x.Carts, Transactions = x.Transactions,</ins> });

        var BusinessEntityCount = query.Count();
     **&lt;ins&gt;var BusinessEntitiesOrderBy =  query.OrderBy(x => x.Id);&lt;/ins&gt;**
        var BusinessEntitiesPageBy = BusinessEntitiesOrderBy.PageBy(input);

Is there something i am doing wrong in handling Header/Line style Tables?

  1. Submit Entries with Sub Object Data:

If i have a table Business Partner and i link a PriceList to it. The price List object is causing the Insert to fail when i include it in the add (This with Entity framework would add the Object as a new object if Id field is empty or 0. This is not the case with current inserts. current inserts you have to first Add the object without linked objects before you can link a price lists when you get and update the Business Partner object. You also have to seperately add the pricelist object and get it and link it to the business partners with an update.

Is there another way to handle this as in a large business setting this might cause too many transaction to be processed to the backend/database.

I might be doing something wrong with the above 3 points but the documentation does not help in teaching people the best way to handle more in depth data objects insert and updates. This is my view as i am used to things that entity allowed when submitting objects.

Any information/help regarding the above topics would be greatly appreciated as i am trying to use the template to the max currently.

Regards, Gideon Badenhorst

Hi

There seems to be a problem with downloading the latest version of Angular + Core: 5.0.2 as it just never downloads and just keeps loading.

Also, Previously there was an option for Editions(From which I understand the subscriptions were set up?) Is this option not available in 5.0.1? Will it be added later or where do we manage the subscription now? Should we create a custom page for it now?

Another thing, just a heads up. When you change the header to dark, the profile drop-down does not change the text to black and keeps it white. It is an easy enough fix to make it display correctly but just giving a heads-up in case it needs to be changed for later releases.

One more thing, Is the template completely upgraded to v5 now or is there still things that need to be changed or added? For example bootstrap style textboxes etc (Just wondering as the previous version had a very good visual look and now it is kind of back to standard old school style).

Thank you Gideon Badenhorst

Hi,

Can't download the last stable version at the moment. It results in a 500 error when project creation is initiated: 500 ERROR! An internal error occurred during your request!

Hi,

Can anyone actually log in with the latest version?

When I started the project up, unlike 5.0.2 the scenario is reversed for me. 5.0.2: Here the UI worked with errors on the Backend side. 5.0.3: Now the UI does not work and the backend seems to be working.

I am not sure if I am handling something different from how it is supposed to be done.

Currently when I start the UI project the following errors:

This is a new segment to 5.0.3 and I could not find something relating to it in 5.0.2 and lower. I imported lodash (This is the part that I am not sure if it is the correct item to import for this.

Besides for that, I can't log in after I run the UI project:

<a class="postlink" href="http://localhost:22742/api/services/app/Session/GetCurrentLoginInformations">http://localhost:22742/api/services/app ... formations</a> {"result":null,"targetUrl":null,"success":false,"error":{"code":0,"message":"An internal error occurred during your request!","details":null,"validationErrors":null},"unAuthorizedRequest":false,"__abp":true}

Anyone maybe knows how to get out of this situation with 5.0.3 or if I am just doing something wrong?

Regards, Gideon Badenhorst

Hi,

I have been getting a very strange interaction with creating users. In 5.0.3 the first time I started the project up, I could not create users and after refreshing the page once I could create users. Now on 5.0.4, it does not allow me to create users at all for some reason. The save just never goes from disabled to enabled. I would like to be able to provide an error but I have zero errors to work on for this post.

In 4.6.1 there was a form of validation on popups of existing functionality which is currently in 5+ not available.

Another thing that I just want to point out is a visual overlay of menus that is a bit buggy. When you have the menu on top and you are on a screen with a filter bar it does not stay topmost but rather goes underneath the filter box:

Here is a nother interesting scenario which kind of trips me out a bit: I opened the project up in Chrome and in Firefox. I have 1 User and 1 tenant in the system both of them are created by default on project start up with the seeding as provided with the template. Tenant: Default or .
User: ADMIN

<a class="postlink" href="http://localhost:4200/app/admin/hostDashboard">http://localhost:4200/app/admin/hostDashboard</a> In Firefox it opens as it should, as an admin user.

In Chrome, it handles the user as a non admin user. <a class="postlink" href="http://localhost:4200/app/main/dashboard">http://localhost:4200/app/main/dashboard</a>

I have no idea how to handle this and quite frankly i don't know how this is possible.

The only difference between the 2 is the sign in style i think: Chrome: Default\Admin Firefox: .\Admin

Thank you in advance and sorry for not being able to provide more details on the Create user issue, I will try and have a look when I have more time available.

Regards, Gideon Badenhorst

Hi,

How do I go about updating a package like PrimeNG? Everything I tried so far has ended up with the project breaking and endless amounts of errors when I run the angular project.

Any help will be greatly appreciated.

Regards, Gideon Badenhorst

Showing 1 to 10 of 16 entries