Questions tagged [ng-admin]

An AngularJS admin GUI for any RESTful API

An AngularJS admin GUI for any RESTful API: https://github.com/marmelab/ng-admin

110 questions
0
votes
1 answer

Referencing nested ids with ng-admin

I am trying to reference the orders object with nested ids (using the amazing ng-admin): {"user": "id": 1, "orders": [ {"order_id": 100}, {"order_id": 101} ]} This is the view definition: user.showView().fields([ …
nak
  • 690
  • 6
  • 15
0
votes
1 answer

Foreign key on reference entity in ng-admin

I'm trying to build an admin interface using ng-admin. I'm using a reference field to link one main entity (Post, for example) to a different entity (Comment) that has a many-to-one relationship (one Post has many Comments). On a listView() of Posts…
0
votes
1 answer

Is there any way to have to app next to with ng-admin?

I've like running application on this https://github.com/swiip/generator-gulp-angular#readme Is there any way to implement ng-admin next to my running application? Because if I have mine ui-view in my index.html, ng-admin just overrides everything…
Tomasz Skorupka
  • 174
  • 1
  • 14
0
votes
1 answer

ng-admin , t.choice is not a function when trying to do some autocomplete

I try to do an autocomplete field in ng-admin got : Error: t.choices is not a function r/<.compile/<.pre@http://admin.dev:81/bower_components/ng-admin/build/ng-admin.min.js:15:2543 etc ... here is my code 45 var ingredientName =…
user2626210
  • 115
  • 5
  • 13
0
votes
1 answer

How do I remove these custom query parameters from my RESTANGULAR HTTP Request?

I'm trying to remove custom parameters from the following HTTP request on my REST API: I want to turn http://localhost:3000/users?_page=1&_perPage=30&_sortDir=DESC&_sortField=id into http://localhost:3000/users I am using ng-admin, which is an…
Django
  • 343
  • 1
  • 4
  • 23
0
votes
1 answer

ng-admin: Can editionView only update the changed fields

I want to update only the changed fields of entity,but the editionView of ng-admin transport all fields,even unchanged.How can I only transport the changed fields or get the changed fields?
jenksding
  • 3
  • 3
0
votes
2 answers

ng-admin - Displaying form validation errors from the server

Sorry if this is documented somewhere but I haven't been able to find it. Is there a way to specify field errors after a create/update fails validation on the server? Does ng-admin have any features to highlight the fields with errors? Should I…
pixelmike
  • 1,973
  • 1
  • 19
  • 31
0
votes
1 answer

AngularJS Issue with custom directive to upload excel

I am using ng-admin and I created a custom directive(following this example http://plnkr.co/edit/rYC3nd7undqJz2mr8Old) to upload a excel sheet, when I upload the file, I get the following TypeError: Cannot set property 'columnDefs' of undefined, …
Armi Ortiz
  • 21
  • 1
  • 3
0
votes
0 answers

Reference many fields [ng-admin]

I want to display two target fields in a reference-many nga.field('pm', 'reference_many') .targetEntity(worker) .targetField(nga.field('name')) .filters(function(search) { if (!search) { return; } return { q:…
Fr4ncx
  • 356
  • 6
  • 22
0
votes
0 answers

Building a multipart form with ng-admin to post an attribute and file data to the server

Using ng-admin, how can you build a creation view form with two fields: a name, and a file? The file field type lets you easily select a file as part of a form, but it immediately posts it to an endpoint that you configure. That endpoint returns…
Gabe Hollombe
  • 7,847
  • 4
  • 39
  • 44
0
votes
1 answer

Using angular.js routing inside ng-admin

I have the following problem: I am using ng-admin to build an administration page. There is a custom page added to the ng-admin interface. The standard ng-admin pages are routed by ng-admin and there is no problem with the list/edit views. Now I…
mmargo
  • 31
  • 1
  • 5
0
votes
1 answer

Reference type field with derived display field

In ng-admin I am able to add a field of type reference and display the name of the referenced entity by nga.field('schedule', 'reference') .targetEntity(schedule) .targetField(nga.field('name')) .label('Schedule'), Is it possible to display a…
Madhura Jayaratne
  • 2,204
  • 1
  • 15
  • 20
0
votes
1 answer

Reload ng-admin entity after save

I got an entity with 2 properties x and y, y is calculated on server side after every save, the problem is in ui, when editing x and click save, y value is changed on server, but change is not reflecting in client side. Is there a way to tell…
Chen Kinnrot
  • 20,609
  • 17
  • 79
  • 141
0
votes
2 answers

ng-admin add a 'Create' button with default value based on filter

I have a list view, and a filter. Let's say the user filter by a reference object. and he see no records found, I'd like to offer him to create a new record, but to use the picked value from the filter as an initial value for the new record. I can't…
Chen Kinnrot
  • 20,609
  • 17
  • 79
  • 141
0
votes
1 answer

How to override routes in ng-admin?

I want to change url in ng-admin state. For example, I need to add a trailing / at the URL for getting a list of users. (http://localhost/api/v1/users/ instead of http://localhost/api/v1/users)
Ildar
  • 3,808
  • 7
  • 45
  • 81