No I need a version that specifically targets .NET Core 1.0. The hosting environment we have to deploy to only supports .NET Core 1.0 right now. We cannot use .csproj files. They have to be project.json files.
Is it possible to get an ABP template download based on .net core 1.0? I don't see the option on the download page?
I did some further research. It looks like EF has most of the work done for us on the save changes event.
<a class="postlink" href="https://msdn.microsoft.com/en-us/data/jj556205">https://msdn.microsoft.com/en-us/data/jj556205</a>
<a class="postlink" href="https://stackoverflow.com/questions/11635451/implementing-oncontextcreated-for-auditing-by-assigning-savechanges-an-eventhand">https://stackoverflow.com/questions/116 ... -eventhand</a>
<a class="postlink" href="https://www.codeproject.com/Articles/34491/Implementing-Audit-Trail-using-Entity-Framework-Pa">https://www.codeproject.com/Articles/34 ... amework-Pa</a>
Since the actual "save changes" in the ABP template solution is done by the ABP classes. Can you guide me on how I can use the above examples with ABP template?
@alper - Thanks for the answers!
I kept working on the issue yesterday and I ended up exactly with what u suggested. I have separate app service calls firing from the one SAVE button on the modal. I am able to perform the validation on each one separately and stop the modal closure too. I should be all set now! Thanks again!
I am still working on this same issue! I did some more debugging today. I replaced the person entity app service call on the this.Save function with the address app service and CreateAddress method, it worked just fine! So it clearly does not like using other buttons from the modal to save other entities.
Question 1) Are multiple app service calls permitted by the ABP template from a modal? Question 2) Do i need to wrap all the sections, address, personal and contact into one view model and then use the single save button for the modal to post the data back to each respective app service for each section?
<cite>marble68: </cite>
<cite>exlnt: </cite> ... I have implemented a DataTables GRID in my edit modal to hold all the addresses for the company entity...
Was this with Angular 2.x?
DataTables is awesome but I'm having trouble getting it to work in a Core+Angular2 project.
I implemented datatables with MVC 5 Template, not angular.
Ok, so I decided to keep with ABP template pattern and placed the entire profile page into a large modal. So i can use the normal convention as with all other modals.
On this modal though, I will have several "Submit" buttons for each logical section of the profile. I have separate form tags around the "Address", "Contact" and "Personal" sections. The personal form tag uses the modal manger this.save function.
For the other sections I am using a button click event within the modal.js file to capture the data and call the app service.
For example, the address section, once the user clicks the button I am able to call the app service for "CreateAddress". However, I keep getting validation errors returned from the app service. I have triple checked and all the required values are being passed to the app service. Yet it keeps reporting the same validation errors over and over again!
When I debug it via Google chrome console, all values are correctly formatted and being sent to the address app service, yet it sill fails!
When I debug using VS2017 the code will NOT hit the breakpoint I have placed in the address app service. Yet the exact same error keeps getting returned! The log file also does not show any additional information!
BEFORE the POST event: <a class="postlink" href="https://drive.google.com/file/d/0B5HAoiVVXzY7OXNOWURLbjE0RHc/view?usp=sharing">https://drive.google.com/file/d/0B5HAoi ... sp=sharing</a>
AFTER the post event: <a class="postlink" href="https://drive.google.com/file/d/0B5HAoiVVXzY7V0FqTnJYU2UtZXc/view?usp=sharing">https://drive.google.com/file/d/0B5HAoi ... sp=sharing</a>
Here is my EditModal.js code: <a class="postlink" href="https://drive.google.com/file/d/0B5HAoiVVXzY7ai04SmZkTUQxdzg/view?usp=sharing">https://drive.google.com/file/d/0B5HAoi ... sp=sharing</a>
One additional question/issue. I cannot get the modal to stay open after the validation errors sweet alert is displayed. The modal gets closed. How can I keep the modal open when app service returns an error?
Package Abp.Zero.Ldap 2.0.1 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package Abp.Zero.Ldap 2.0.1 supports: net46 (.NETFramework,Version=v4.6)
One or more packages are incompatible with .NETCoreApp,Version=v1.1.
I downloaded a brand new .Net Core 1.1 solution from ABP yesterday with module zero. I am getting the above error when I try to add LDAP NuGet pkg to my solution (.Core project). The fix mentioned seems to have already been applied in the solution I downloaded.
I tried multiple downloads yesterday and I did not get the .Web.MVC project in the zip file.
I tried again last night and it worked and the .Web.MVC project was in the zip file.
<cite>ismcagdas: </cite> Hi,
I think you need to put your
<script> .... </script>
block into below scripts section.
@section Scripts { //Here..... }
Thanks!
I have several other questions on this process. I went through docs and could not find anything about building a non-modal page. Are there any docs on how to do this in the ASPNETZERO template?
I keep getting the below error when the form does a post back to the controller. As per the ABP docs, this is handled by ABP framework, correct?
AntiForgery.AbpAntiForgeryMvcFilter - Empty or invalid anti forgery header token.