Base solution for your next web application

Activities of "dev1_premierpoint"

Appreciate the help. It was challenging to find information online about this one. Quite of few examples of more standard modal usage, but no examples that worked with the boilerplate you've got going on here.

I thought there might be another file I needed to edit. There doesn't seem to be anything here for the new modal.


using System; using System.Threading.Tasks; using Abp.AspNetCore.Mvc.Authorization; using Microsoft.AspNetCore.Mvc; using Pol.Web.Areas.App.Models.SyncPoints; using Pol.Web.Controllers; using Pol.Authorization; using Pol.TermSync; using Pol.TermSync.Dtos; using Abp.Application.Services.Dto; using Abp.Extensions;

namespace Pol.Web.Areas.App.Controllers { [Area("App")] [AbpMvcAuthorize(AppPermissions.Pages_SyncPoints)] public class SyncPointsController : PolControllerBase { private readonly ISyncPointsAppService _syncPointsAppService;

    public SyncPointsController(ISyncPointsAppService syncPointsAppService)
    {
        _syncPointsAppService = syncPointsAppService;
    }

    public ActionResult Index()
    {
        var model = new SyncPointsViewModel
		{
			FilterText = ""
		};

        return View(model);
    } 
   

		 [AbpMvcAuthorize(AppPermissions.Pages_SyncPoints_Create, AppPermissions.Pages_SyncPoints_Edit)]
		public async Task<PartialViewResult> CreateOrEditModal(string id)
		{
			GetSyncPointForEditOutput getSyncPointForEditOutput;

			if (!id.IsNullOrWhiteSpace()){
				getSyncPointForEditOutput = await _syncPointsAppService.GetSyncPointForEdit(new EntityDto<string> { Id = (string) id });
			}
			else {
				getSyncPointForEditOutput = new GetSyncPointForEditOutput{
					SyncPoint = new CreateOrEditSyncPointDto()
				};
			getSyncPointForEditOutput.SyncPoint.lastRun = DateTime.Now;
			}

			var viewModel = new CreateOrEditSyncPointModalViewModel()
			{
				SyncPoint = getSyncPointForEditOutput.SyncPoint,                
			};

			return PartialView("_CreateOrEditModal", viewModel);
		}
		

    public async Task<PartialViewResult> ViewSyncPointModal(string id)
    {
		var getSyncPointForViewDto = await _syncPointsAppService.GetSyncPointForView(id);

        var model = new SyncPointViewModel()
        {
            SyncPoint = getSyncPointForViewDto.SyncPoint
        };

        return PartialView("_ViewSyncPointModal", model);
    }


}

}


I guess that I need a new task here for the new modal?

That's perfect. Thanks for the help.

While those different sizes do work (ismcagdas), the CreateAndEditModal partial pages are used, so the only part of the modal that is editable is the modal body and everything inside of that. I have found the partial for the header and footer, but I'm not sure where to find the outermost layer of the dialog is set up and how I can change that for just this create modal.

In other words, the div that I can edit the classes of is the modal with class modal-body, but when the page loads, it is wrapped inside of the div with classes modal-dialog and modal-lg. I'm not sure where to find where this is put together, and I am afraid that wouldn't resolve my issue even if I did find it since I do not want to change that for every modal that uses the same predefined code.

I don't understand why this message is not shown in the RAD Tool log file (Logs.txt)? I spent a good bit of time trying different things and then finally searched this forum and found this post. Seems like if the .NET Core 2.2 runtime is missing, that should be validated when installing the RAD tools OR, at least, should throw an error in the RAD Tool log file when trying to generate. This is all I get in the Logs.txt file:

DEBUG 2020-12-23 12:42:34,934 [1 ] lVisualStudioExtension.AspNetZeroRadTool - Menu item clicked with params > loadFromJson: False, loadFromDatabase: False, showAboutForm: False DEBUG 2020-12-23 12:46:30,063 [1 ] dioExtension.Dialogs.EntityGeneratorForm - Generate entity started. DEBUG 2020-12-23 12:46:30,813 [1 ] dioExtension.Dialogs.EntityGeneratorForm - Entity successfully generated.

Not useful at all to troubleshooting this problem.

I just got this error too and it ended up consuming about 8 hours of time until I somehow stumbled across this closed question via a google search.

The answer above is the solution - add the value "src" in the Working Directory field in the Advanced section of the Generate Migration Scripts Task:

It would be nice if Volosoft added this as a tip to this page of the documentation:

https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Setting-Up-an-Azure-Pipeline-Mvc-Core

I appreciate it. Hopefully I will come back with a definite reason for the debugger not working as I assume it would.

We are running this project locally for once to help with load times, so no we haven't tried it on another machine. I'll look into what could be wrong with my editor. Thank you.

This is a very basic page created by the rad tool. The call is made from the create button.

<div [@routerTransition]>
  <div class="kt-content  kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor">
    <div class="kt-subheader kt-grid__item">
      <div [class]="containerClass">
        <div class="kt-subheader__main">
            <h3 class="kt-subheader__title">
                <span>{{l("OdeCreds")}}</span>
            </h3>
            <span class="kt-subheader__separator kt-subheader__separator--v"></span>
            <span class="kt-subheader__desc">
                {{l("OdeCredsHeaderInfo")}}
            </span>
        </div>
        <div class="kt-subheader__toolbar">
            <div class="kt-subheader__wrapper">
            
            
            ##### The method is called on this button press #####
				<button *ngIf="isGranted('Pages.OdeCreds.Create')" (click)="createOdeCred()" 
			class="btn btn-primary blue"><i class="fa fa-plus"></i> {{l("CreateNewOdeCred")}}</button>
            
            
            
            </div>
        </div>
      </div>
    </div>
    <div [class]="containerClass + ' kt-grid__item kt-grid__item--fluid'">
        <div class="kt-portlet kt-portlet--mobile">
            <div class="kt-portlet__body">
                <form class="kt-form" autocomplete="off">
                    <div>
                        <div class="row align-items-center">
                            <div class="col-xl-12">
                                <div class="form-group m-form__group align-items-center">
                                    <div class="input-group">
                                        <input [(ngModel)]="filterText" name="filterText" autoFocus class="form-control m-input" [placeholder]="l('SearchWithThreeDot')" type="text">
                                        <span class="input-group-btn">
                                            <button (click)="getOdeCreds()" class="btn btn-primary" type="submit"><i class="flaticon-search-1"></i></button>
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>
						 <div class="row" [hidden]="!advancedFiltersAreShown">
						 	<div class="col-md-12">
						         <div class="kt-separator kt-separator--border-dashed"></div>
						     </div>

Could I get information as to why the debugging isn't working normally, rather than just forcing it to?

Showing 1 to 10 of 41 entries