@jon replace this with the below. it'll solve that.
$(function () {
var l = abp.localization.getResource("%%only-project-name%%");
%%<if:IsTieredArchitecture>%%var %%entity-name-camelcase%%Service = window.%%solution-namespace-camelcase%%.controllers.%%entity-namespace-camelcase%%.%%entity-name-camelcase%%;%%</if:IsTieredArchitecture>%%
%%<if:IsNonTieredArchitecture>%%var %%entity-name-camelcase%%Service = window.%%solution-namespace-camelcase%%.%%entity-namespace-camelcase%%.%%entity-name-camelcase%%;%%</if:IsNonTieredArchitecture>%%
%%navigation-property-lookup-common-methods%%
%%navigation-property-lookup-methods%%
var createModal = new abp.ModalManager({
viewUrl: abp.appPath + "%%module-name-slash-postfix%%%%entity-name-plural%%/CreateModal",
scriptUrl: "/Pages/%%module-name-slash-postfix%%%%entity-name-plural%%/createModal.js",
modalClass: "%%entity-name-camelcase%%Create"
});
var editModal = new abp.ModalManager({
viewUrl: abp.appPath + "%%module-name-slash-postfix%%%%entity-name-plural%%/EditModal",
scriptUrl: "/Pages/%%module-name-slash-postfix%%%%entity-name-plural%%/editModal.js",
modalClass: "%%entity-name-camelcase%%Edit"
});
var getFilter = function() {
return {
filterText: $("#FilterText").val(),
%%index-js-filtering-fields%%
};
};
var dataTable = $("#%%entity-name-plural%%Table").DataTable(abp.libs.datatables.normalizeConfiguration({
processing: true,
serverSide: true,
paging: true,
searching: false,
scrollX: true,
autoWidth: false,
scrollCollapse: true,
order: [%%order-%%],
ajax: abp.libs.datatables.createAjax(%%entity-name-camelcase%%Service.getList, getFilter),
columnDefs: [
{
rowAction: {
items:
[
{
text: l("Edit"),
visible: abp.auth.isGranted('%%only-project-name%%.%%entity-name-plural%%.Edit'),
action: function (data) {
editModal.open({
id: data.record%%add-entity-name-camelcase%%.id
});
}
},
{
text: l("Delete"),
visible: abp.auth.isGranted('%%only-project-name%%.%%entity-name-plural%%.Delete'),
confirmMessage: function () {
return l("DeleteConfirmationMessage");
},
action: function (data) {
%%entity-name-camelcase%%Service.delete(data.record%%add-entity-name-camelcase%%.id)
.then(function () {
abp.notify.info(l("SuccessfullyDeleted"));
dataTable.ajax.reload();
});
}
}
]
}
},
%%index-js-TableProperties%%%%table-navigation-property-fields%%
]
}));
createModal.onResult(function () {
dataTable.ajax.reload();
});
editModal.onResult(function () {
dataTable.ajax.reload();
});
$("#New%%entity-name%%Button").click(function (e) {
e.preventDefault();
createModal.open();
});
$("#SearchForm").submit(function (e) {
e.preventDefault();
dataTable.ajax.reload();
});
$('#AdvancedFilterSectionToggler').on('click', function (e) {
$('#AdvancedFilterSection').toggle();
});
$('#AdvancedFilterSection').on('keypress', function (e) {
if (e.which === 13) {
dataTable.ajax.reload();
}
});
$('#AdvancedFilterSection select').change(function() {
dataTable.ajax.reload();
});
});
hi jon, yes it would be great if Suite will keep your changes. this is a task on our milestone. this is hard to implement because it's not always replacing a file with a newer one but sometimes modifying an existing class. (Forexample Suite changes some information in DbContext classes.) So this is a known drawback and we'll try to cover this gap.
@bhyatz can you create a new solution and test this issue on the new solution (v4.2.1) so we'll understand if you miss a migration step while upgrading from v3x to v4x
Sorry but my devart trial license has been expired. I need to find a license to check this issue.
When an entity has an AppUser navigation property, angular does not generate AppUserDto
I reproduced it. AppUserDto
doesn't exist in the Angular template (out of box).
But if you run generate-proxy AppUserDto will be generated in your Angular code. Anyway I created an issue for that.
You confused AbpLicenseCode and NuGet addresses. I also see that you are sending email about this issue. Please go with 1 channel.
You can find your AbpLicenseCode in your existing appsettings.json files. You can find your NuGet source in your existing NuGet.config files.
so copy them from your existing project into this new project. that's it.
did you add your private NuGet source to the NuGet.config file? you can find your private NuGet address from your existing project.