Base solution for your next web application

Activities of "ipekuni"

Question

Hi, i have 3 entities: StudentRequest, FormType, and User (abp default) StudentRequest is related to FormType through FormTypeId, and related to User through UserId.

i have one record in db and i was expecting the following linq statement to get me what i want but it returns nothing. var toReturn = this._studentRequestRepository.GetAll() .Include(p => p.FormType) .Include(p => p.User) .WhereIf(input.UserId > 0, t => t.UserId == input.UserId) .WhereIf(!string.IsNullOrEmpty(input.Manager), t => t.FormType.Manager == input.Manager) .ToList();

i looked at the produced sql and there are a lot of tenantid related extra AND OR statements. Not sure what is causing the issue. Do you see anything wrong with the statement?

thanks -ulker

Question

Hi, i am trying to create a new menu item but i get an error i cant figure out. here is my menu definition inside appnavigationprovider class:

.AddItem(new MenuItemDefinition(
                    PageNames.App.Forms.Root,
                    L("Forms"),
                    icon: "glyphicon glyphicon-wrench"
                    ).AddItem(new MenuItemDefinition(
                        PageNames.App.Forms.StudentRequest,
                        L("StudentRequest"),
                        url: "forms.studentrequest",
                        icon: "icon-briefcase",
                        requiredPermissionName: AppPermissions.Pages_Forms_StudentRequest
                        )
                    )
                )

and here is my routing in app.js

if (abp.auth.hasPermission('Pages.Forms.StudentRequest')) {
            $stateProvider.state('forms.studentrequest', {
                url: '/forms/studentrequest',
                templateUrl: '~/App/tenant/views/forms/studentrequest.cshtml',
                menu: 'Forms.StudentRequest'
            });
        }

and here is the error i get: Error: Could not resolve 'forms.studentrequest' from state ''

am i missing something here? thanks

Showing 1 to 2 of 2 entries