I am following the solutions provided on this thread: <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/issues/96">https://github.com/aspnetzero/aspnet-zero/issues/96</a> to upgrade my existing ASPNETZERO project to V4.1. I am using the .NET 4.6.1 MVC template.
- I downloaded a fresh copy of my solution and placed that into new "ABPMaster" branch.
- Then I took my working copy of my dev branch into new "staging" branch.
- Then I copy/paste all the projects and files from "ABPMaster" into "staging" branch, with replace YES option.
- I manually enable/copy all the custom changes I have implemented. Get a clean build of all projects.
- I then scaffold one EF migration for ALL ABP changes.
- I then scaffold one EF migration for ALL Custom changes for my app.
- I then applied both migrations to new DB instances.
- I run the app and login to host using default admin account. All of the pages in the host solution where JTable is used, do not render the "Actions" cell. Google console shows no errors and the HTML for that cell is completely empty. I cannot check or grant any permissions to admin account, as the buttons wont render! Screenshot: <a class="postlink" href="https://drive.google.com/file/d/0B5HAoiVVXzY7QlEyRkN4dHQzQnM/view?usp=sharing">https://drive.google.com/file/d/0B5HAoi ... sp=sharing</a>
33 Answer(s)
-
0
hi
You can track the Datatables issue from the below link <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/367">https://github.com/aspnetzero/aspnet-ze ... issues/367</a>
If we determine any bug, it'll be fixed in the next release.
-
0
For initializing a basic datatable you can read the related jquery library documents.
<a class="postlink" href="https://datatables.net/">https://datatables.net/</a>
-
0
The code I showed above is how to initialize a basic datatables. I have done this many times and it was working fine. It is not working inside the aspnetzero solution.
Please read my recent posts on this thread. The validation issue is happening across all variations of the aspnetzero templates. I feel like I am just talking to myself on this thread lately. I'm not really getting any support!
-
0
Hello,
It's not true that you are not really getting any support! Below are some quotes by you from this topic;
_<span style="color:#A7AAB1">By exlnt : Thank you very much! That script was missing from the BundleConfig.cs file! Its working now!
By exlnt : One more question/issue. Is there some breaking change for how the Index view app services work in v4.1? All but one of my existing app services for index views is breaking. It seems to happen, mainly, on the index views where I have filters. It keeps failing with validation error messages?
By exlnt : @ismcagdas - Thanks very much! Better late than never
By exlnt : One further question/help needed. I am still getting this validation error on some of my modal actions. Is there a way where I can debug the built-in ABP automatic validation that happens? </span>_
Forum topics are designed one topic for one issue. As I can see you got support from the team on different issues on this topic.
And for initializing datatables; there are several pages you can use as template. but basically below is the min code to show datatables data. if it still doesn't work for you, you may check your own modifications and you believe there's a problem in the template, share your solution with <a href="mailto:[email protected]">[email protected]</a> to have us understand your issue.
<table id="MyBasicDatatable" class="display table table-striped table-bordered table-hover dt-responsive nowrap"> <thead> <tr> <th>My Field</th> </tr> </thead> </table>
$('#MyBasicDatatable').DataTable({ paging: false, listAction: { ajaxFunction: _yourApiService.yourApiMethod }, columnDefs: [ { targets: 0, data: "myField" } ] });
Response from app service should be similar to this => [{myField:'test-1'}, {myField:'test-2'}];
-
0
I was referring to my last few posts on this thread. I was not getting any response to my issues. In general you do provide support.
I did not open new thread as issue was somewhat related.
I still don't have an answer on my validation issue I posted here. Let me know if you want me to post new thread for it?
-
0
Hi @exlnt,
Sorry for the late response. Can you share input dto for UpdateCountry method ? We will check it.
Thanks.
-
0
<cite>ismcagdas: </cite> Hi @exlnt,
Sorry for the late response. Can you share input dto for UpdateCountry method ? We will check it.
Thanks.
@ismcagdas - Thanks very much for following up on this thread, I really do appreciate it! I was able to find errors in my log files that helped me find root cause of the validation errors. There was a conversion failure happening in JSON.Net.
-
0
@exlnt good to know :)
Thanks.