abp icon indicating copy to clipboard operation
abp copied to clipboard

Old Project name working,new project names not working

Open pekeramazan opened this issue 6 years ago • 0 comments

I trained on bookstore project.After I created a new project as "Carbeque" but I cant run javascript code with this name. "Im taking an error on Chrome"

Index.js only working with "acme.bookstore.books.customerMainCategory". I never used variables from old project like "acme,book,bookstore"

`$(function () { var l = abp.localization.getResource('Carbeque');

var dataTable = $('#CustomerMainCategoryTable').DataTable(
    abp.libs.datatables.normalizeConfiguration({
        serverSide: true,
        paging: true,
        order: [[1, "asc"]],
        searching: false,
        scrollX: true,
        ajax: abp.libs.datatables.createAjax(acme.bookStore.books.customerMainCategory.getList), //this working _?
       // ajax: abp.libs.datatables.createAjax(carbeque.custmaincategory.customerMainCategory.getList), this is not working why ?

        columnDefs: [
            {
                title: l('Name'),
                data: "name"
            },

            {
                title: l('CreationTime'),
                data: "creationTime",
                render: function (data) {
                    return luxon
                        .DateTime
                        .fromISO(data, {
                            locale: abp.localization.currentCulture.name
                        }).toLocaleString(luxon.DateTime.DATETIME_SHORT);
                }
            }
        ]
    })
);

}); `

pekeramazan avatar Nov 17 '20 12:11 pekeramazan