Questions tagged [admin-on-rest]

Use it for questions about the admin-on-rest admin framework for React.js

Usage questions about the admin-on-rest framework.

501 questions
1
vote
0 answers

Admin-on-Rest Data Grids not loading pagination with Typescript/React

I am putting together an admin-on-rest dashboard, and I have the resource talking to a back-end MongoDB database, the appropriate data shows up on my front end, and everything looks fine. There's just one problem: pagination isn't working. I made…
tmesser
  • 7,558
  • 2
  • 26
  • 38
1
vote
1 answer

How can all CRUD actions of a resource by linked to a particular foreign key?

Version: Next (react-admin) Resources Classes and Students. "Students" has a foreign key to "Classes": class_id. So, in the List of Classes we have for each row (class) a button "View/Edit Students of Class". When we click on this button, we have…
user2078023
  • 1,137
  • 1
  • 10
  • 28
1
vote
1 answer

How to create a link to another resource in a datagrid?

In the tutorial (https://marmelab.com/admin-on-rest//Tutorial.html), you can see how to reference another entity (i.e post references a user) This lead to the fact that another XHR is required to display the user name. If my REST API returns…
Christophe Blin
  • 1,687
  • 1
  • 22
  • 40
1
vote
0 answers

Pass variable from class into admin-on-rest datagrid

I'm displaying a users list from an api using admin-on-rest. I can't figure out how to pass a variable from the class in src/Progress.js to the datagrid component in src/Users.js Here is Users.js. I've included the whole file because I may be…
Mark
  • 151
  • 1
  • 12
1
vote
0 answers

Trying to encapsulate TextInput, getting the addField error

I'm trying to encapsulate a TextInput such that when the value changes it does a serverside lookup and based on the result shows a notification to the user: "That group name already exists". I've been using this as my example to start from:…
HiveMind118
  • 77
  • 1
  • 6
1
vote
2 answers

Admin on Rest graphql client returns empty resources

Im am trying to get to grips with admin on rest with graphql client. I am using 'aor-graphql-client-graphcool' and an endpoint on launch pad. Debugging the app shows a zero length array assigned to the resource key. The types/queries look ok so I…
shoggs
  • 31
  • 5
1
vote
0 answers

Admin-on-rest: Show/hide Form Tab Based On Input Selection

Not sure if this is the best approach but I'm attempting to use dependsOn: [github.com/marmelab/aor-dependent-input] to hide/show form tabs. It sort of works, but the problem is when the form re-renders based on the correct DependentInput value…
tcook
  • 11
  • 1
1
vote
0 answers

AutocompleteInput with ReferenceInput not clearing underlying state on erase

I'm trying to set a ReferenceInput with an Autocomplete input and I'm getting a bit of a weird behaviour that I'm not sure if it's intended or not. If I confirm the autocomplete option on the field, and then erase the field for any reason, the id…
brunoban
  • 177
  • 3
  • 12
1
vote
1 answer

Issue with ra-data-graphql with react-admin 2.0.0 and apolloclient 2.0

I'm using react-admin/aor 2.0.0-beta2 with ra-data-graphql with the instructions here and I see TypeError: Cannot read property 'link' of undefined import React, { Component } from 'react'; import buildGraphQLProvider from 'ra-data-graphql'; import…
1
vote
1 answer

different versions of admin-on-rest confusing

Most likely this question is to maintainers. I work with stable version of admin on rest. (https://www.npmjs.com/package/admin-on-rest) Now the latest is 1.3.4. The main branch of project-repository is updating only with fixes last time. As I…
Alexander Knyazev
  • 2,692
  • 4
  • 15
  • 25
1
vote
0 answers

Admin on rest show state data in List

I am using admin on rest in my current project and facing problem in order to show result in the listView. So currently i am uploading a csv file using create form and storing the response of the api in the state using action and reducer which is…
Jasmin Virdi
  • 101
  • 1
  • 6
1
vote
0 answers

Does admin on rest support *has_many_through* relationship with Component?

In the below model, Appointment, has two foreign key properties, physicianId and patientId, that reference the primary keys in the declaring model, Physician, and the target model, Patient. Can we modify in such a way that it shows all the…
Jayesh
  • 15
  • 8
1
vote
2 answers

How to exclude fields from SimpleForm

I know is using redux-form. I want to exclude specific fields from being sent when I submit the form. When I edit my entity "User" the RestClient send a GET_ONE request and my API response this: { name: "Lior", age: "100", type:…
llioor
  • 5,804
  • 4
  • 36
  • 44
1
vote
1 answer

admin on rest: display default value in create form

Here I used react-material-responsive-grid to display form in multiple row structure. But this is not issue.. I want to display the default value in text field. I gave default value also, but it is not displaying. Here is my code: import React from…
sandy
  • 103
  • 12
1
vote
0 answers

Uploading multiple images on different fields

I'm using the code that appears on https://marmelab.com/admin-on-rest/RestClients.html#decorating-your-rest-client-example-of-file-upload to upload an image to the server. But this code only returns multiple images on the same field. How can I…
arkanoid
  • 81
  • 7