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
14
votes
5 answers

babel JS file can't resolve "@babel/runtime/helpers/builtin/classCallCheck"

on-rest my project was working great untill I delete my node_modules file and try to re-install npm package. I am getting this error ./node_modules/react-event-listener/dist/react-event-listener.cjs.js Module not found: Can't resolve…
Suat Karabacak
  • 643
  • 2
  • 7
  • 24
12
votes
4 answers

Date picker: timezone shift

Problem If I select a date in a , the datetime is in the user's timezone (e.g. 2017-07-01T00:00:00.000+02:00) but when it's sent to the server, it's transformed to UTC and thus ends up as 2017-06-30T22:00:00.000Z, one day behind. The…
tmt
  • 7,611
  • 4
  • 32
  • 46
9
votes
2 answers

React Admin: Can I use another field for , other than "id"?

Is there any way to use a different reference field (other than id) for a ReferenceInput? For example: I have a languages resource, which I want to populate using a language_code field.Note, I don't want to use the id field of languages, I want to…
Ross
  • 135
  • 1
  • 8
7
votes
2 answers

Nested menu (sub-menu)

I'm trying to implement Sub-menu (nested menu). It's worth to mention that I'm using hydra component and don't have previous experience with redux (started learning it a few days ago because of this specific problem). I've followed the example…
Dejan Belic
  • 101
  • 1
  • 1
  • 4
7
votes
6 answers

How to get index of SimpleFormIterator

I want to access index of simpleFormIterator. How can I do that? I have a code something like that I'm trying to access it in the SelectInput component
Cansel Muti
  • 598
  • 2
  • 9
  • 22
7
votes
2 answers

React Admin - how to call dataProvider with nested path like abc/def

React-admin's Resource component maps name prop value to an endpoint. E.g. to access data from . http://example.com/abc, your Resource component looks like this: What i want to access resource at…
Sebastian
  • 1,225
  • 1
  • 16
  • 27
7
votes
1 answer

How to create an searchable add-reference-button/action in admin-on-rest?

Consider a case where I have a functional JSON backend, and the admin-on-rest resources company, user and company_user. The data is as follows company id name address ...etc. user id name phone address ...etc. company_user id company_id…
mangroovie
  • 96
  • 4
7
votes
4 answers

Error: The Content-Range header is missing in the HTTP Response

I am setting up admin on rest, and now I am getting this error when I try to fetch data, even though I receive all the data needed from the server: The Content-Range header is missing in the HTTP Response. The simple REST client expects responses…
7
votes
1 answer

Show server-side validation errors after failed form submit

How can I show validation messages after failed form submit? API request returns HTTP 400 'application/problem+json' response and contains violations as a list with field path. https://www.rfc-editor.org/rfc/rfc7807#section-3 { "type":…
Ismail Baskin
  • 374
  • 6
  • 9
7
votes
7 answers

How to refresh a List View in admin on rest

I am trying to get a list to refresh after a custom action was successfully executed. i used the saga from the admin on rest tutorial function * actionApproveSuccess () { yield put(showNotification('Executed')) yield put(push('/comments')) //…
Jan Johannes
  • 93
  • 1
  • 7
6
votes
4 answers

React-admin: how to hide refresh button from AppBar?

I'm creating admin ui based on react-admin and currently searching for a solution to hide the refresh button from the AppBar. Disabling export button was trivial (exporter={false}). Is there anything equally simple for RefreshButton? I couldn't…
Nis
  • 83
  • 1
  • 7
6
votes
1 answer

In Custom App with embedded Admin, adminSaga doesn't work

I am trying to embed React Admin (RA) into an existing React-Redux application and following the documentation here: https://marmelab.com/react-admin/CustomApp.html While I have managed to successfully set up RA to use the root store, I am having…
charlesj
  • 81
  • 1
  • 5
6
votes
0 answers

How to pass enctype to simpleform in admin-on-rest?

I am using admin-on-rest. I want to build file upload functionality using simpleform component of admin-on-rest framework. For this, I want to pass enctype="multipart/form-data" to form. I am not able find any documentation or forums to understand,…
6
votes
1 answer

Change input value in admin-on-rest from another component

I am using admin-on-rest as the admin interface for an app I'm building. In a create form, there are 3 inputs. I need to change the values of these 3 inputs based on events generated from antoher component. export const OfficialPetitionCreate = (…
bliss_terra
  • 119
  • 2
  • 9
5
votes
2 answers

disabling autocomplete for admin-on-rest SimpleForm

Is there a possibility to disable autocomplete for AOR SimpleForm component? I tried various combinations of the following: But nothing seems to work. Can it be customized in such a manner or does it require creating…
1
2 3
33 34