ng-admin icon indicating copy to clipboard operation
ng-admin copied to clipboard

listView.url override not working

Open cookingkode opened this issue 9 years ago • 4 comments

As described in the view customisation doc, I over-rode the url function for the view to hit a specific URL : mySku.listView().url(function(entityId) { return '/sku/'; });

However this is not working. I tried setting a breakpoint inside the callback; that also is never reached.. What am i doing wrong?

cookingkode avatar Dec 30 '15 10:12 cookingkode

A related issue. editionView().url() override is working, but I want the URL to be hit only for POST . Is there a way i can get operation in the view?

cookingkode avatar Dec 30 '15 10:12 cookingkode

:+1:

Got same issue. I can change url but i dont get "entityId" - undefined instead.

xx.editionView().url(function(entityId) {
    console.log(entityId);  // this shows "undefined"
    return 'route/' + entityId; 
})

daniel-rosiak avatar Mar 01 '16 12:03 daniel-rosiak

Same issue for me on editionView, identifierValue is undefined.

SebLours avatar Mar 19 '16 08:03 SebLours

Same issue with editionView and showview. entityId is undefined. http://stackoverflow.com/questions/40923604/ng-admin-identifier-not-highlighted-and-entityid-not-set

mintu19 avatar Dec 03 '16 00:12 mintu19