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

Activities of "jdavis01"

<cite>jdavis01: </cite> I agree. I would like to see some of the datatable implementations like this

<a class="postlink" href="http://keenthemes.com/preview/metronic/theme/admin_1/table_datatables_responsive.html">http://keenthemes.com/preview/metronic/ ... nsive.html</a>

I agree. I would like to see some of the datatable implementations like this

<a class="postlink" href="http://keenthemes.com/preview/metronic/theme/admin_1/table_datatables_responsive.html">http://keenthemes.com/preview/metronic/ ... nsive.html</a>

So I have the latest 4.6.1 Aspnet Core JQuery template have run into a role user permission scenario that I need to get clarified.

I have configured the application with multi - Tenancy disabled and configured AppPermissions as follows:

// AppPermissions
        public const string Pages_Tenant_Vendors = "Pages.Tenant.Vendors";
        public const string Pages_Tenant_Vendor_Create = "Pages.Tenant.Vendor.Create";
        public const string Pages_Tenant_Vendor_Edit = "Pages.Tenant.Vendor.Edit";
        public const string Pages_Tenant_Vendor_Delete = "Pages.Tenant.Vendor.Delete";


// AppAuthorizationProvider
var vendor = pages.CreateChildPermission(AppPermissions.Pages_Tenant_Vendors, L("Vendors"),multiTenancySides:MultiTenancySides.Tenant);
            vendor.CreateChildPermission(AppPermissions.Pages_Tenant_Vendor_Create, L("VendorCreate"), multiTenancySides: MultiTenancySides.Tenant);
            vendor.CreateChildPermission(AppPermissions.Pages_Tenant_Vendor_Edit, L("VendorEdit"), multiTenancySides: MultiTenancySides.Tenant);
            vendor.CreateChildPermission(AppPermissions.Pages_Tenant_Vendor_Delete, L("VendorDelete"), multiTenancySides: MultiTenancySides.Tenant);

When I assign permissions to a specific role the users in that role still need to have the permission assigned to them as well..

The expected behavior was that roles would hold the permissions and the users would be assigned permissions through roles.

Can you help to explain why I still need to assign users to permissions that are already assigned to their role?

Is there a step by step documentation for module from scratch like the phonebook example?

I think for me the best approach would be to make the abp blog sample a module..

Man I feel dumb.... Thanks for the support..

So I am having a bit of an issue when I try to save related model data. I am adding the phoneBook sample to my current project for demonstration sake and when I try to save a person phone number i get the following error....

INFO  2017-11-10 16:46:16,524 [13   ] ore.Mvc.Internal.ControllerActionInvoker - Executed action wcb.ScratchPad.Web.Areas.App.Controllers.PhoneBookController.AddPhone (wcb.ScratchPad.Web.Mvc) in 437.2537ms
ERROR 2017-11-10 16:46:16,697 [13   ] nostics.DeveloperExceptionPageMiddleware - An unhandled exception has occurred while executing the request
System.InvalidOperationException: The property 'Phones' on entity type 'Person' is being accessed using the 'Reference' method, but is defined in the model as a collection navigation property. Use the 'Collection' method to access collection navigation properties.
   at Microsoft.EntityFrameworkCore.ChangeTracking.NavigationEntry.GetNavigation(InternalEntityEntry internalEntry, String name, Boolean collection)
   at Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry`1.Reference[TProperty](Expression`1 propertyExpression)
   at Abp.EntityFrameworkCore.Repositories.EfCoreRepositoryBase`3.EnsurePropertyLoadedAsync[TProperty](TEntity entity, Expression`1 propertyExpression, CancellationToken cancellationToken)
   at Abp.Domain.Repositories.RepositoryExtensions.<EnsurePropertyLoadedAsync>d__2`3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at wcb.ScratchPad.People.PersonAppService.&lt;AddPhone&gt;d__6.MoveNext()

Not sure why ICollection of Phones in the person entity is not considered a navigation property..

Could be the end of the day has the brain tired..

Sorry for my basic question, but where would be the best object model to use for reference when writing those scripts? I dont seem to see it in the documentation..

I don't seem to get any Intellisense when working with *.js files and abp app services.

Example below..

var _personService = abp.services.app.person;

Any thoughts?

I solved this issue the following way

  1. build each individual project except Web.Public
  2. opened the Web.Public folder from the VS 2017 command prompt as an administrator
  3. execute "dotnet restore" command
  4. Return to the ide and build the Web.Public project
  5. Clean Solution and Rebuild the entire solution

Hope that helps.. Not sure why I had to do all this, but it worked for me. Honestly I think VS gets lost

@MikeyMey01,

Helped a great deal. Thanks for posting..

Showing 41 to 50 of 69 entries