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
1 answer

React-admin implementation

I am very new to react-admin and having trouble to get the data on to the screen. After i read the documentation, this was how i implemented my code. I am able to get the data in the console.log of useEffect which is array of objects having object…
md shoaib
  • 125
  • 1
  • 10
1
vote
3 answers

React admin access datagrid row value

Is there some way how to access Datagrid row value in react admin. I have code: const OrdersDatagrid = function() { let fakeProps = { basePath: "/api/orders", hasCreate: false, hasEdit: false, …
SpartanRA
  • 11
  • 3
1
vote
1 answer

Something went wrong page after after pressing on DeleteButton

Everytime I click on a delete button in a List component, the page shows this error page. The deletion works though. The error page export const MaterialList = props => (
1
vote
0 answers

React-Admin component doesn't trigger the "UPDATE" action in the data provider

So I'm using the ra-data-json-server as a data provider and the bult in component as a form for the view, and I'm facing a pretty strange issue, as it says in documentation, when submitted, the forces data provider…
Eric B.P.
  • 11
  • 3
1
vote
0 answers

react-admin: How to suppress multiple 401 notifications?

I'm using react-admin and I have a page that makes api calls via the dataProvider to /posts, but there is also a custom UserMenu that fetches /user, and the authProvider also runs an AUTH_CHECK that fetches /session. On the first page load, all…
Jesse Shieh
  • 4,660
  • 5
  • 34
  • 49
1
vote
1 answer

How to add a "reset values" button to a react-admin edit form

Is there a way to have a button in a react-admin form so that when I click the button, the values are reset to the edited record's initial values? I don't mean a Cancel button (that would close the form and redirect). I mean a…
Thanasis Ioannidis
  • 2,981
  • 1
  • 30
  • 50
1
vote
0 answers

Disable autoComplete in AutocompleteInput at react-admin

In general question: How to add custom autocomplete value to the AutocompleteInput ? Problem started when you will try to add options to the AutocompleteInput:
Dmytro
  • 321
  • 1
  • 10
1
vote
2 answers

Admin-on-rest 'Edit Page - Incorrect Element Error // Create Page - element does not exist Error'

I'm using admin on rest with express/mongodb, every things works correctly (CRUD), but I have some errors that have appeared and I have no explanation for that, when I create an object a notification is displayed "element does not exist" but the…
mariem
  • 56
  • 1
  • 8
1
vote
2 answers

Modify what Text Field is displaying

I have my where I get some data to work with. In this case, I get attribute odata.type from my API. I want my to display this attribute but I want to slightly modify the output that is displayed. Right now the attribute…
Adam Šulc
  • 526
  • 6
  • 24
1
vote
0 answers

Build a two-level resource using react-admin

If I have an API endpoint called apps which will retrieve a list a different apps. And I also have an API endpoint called apps/{app_id}/app-versions which will retrieve a list of release versions that is under a specific app from above. Both above…
Arel Lin
  • 908
  • 2
  • 13
  • 24
1
vote
1 answer

How can I access the data in custom toolbar for admin-on-rest?

I use admin-on-rest. I made a custom toolbar for the user data edit page. How inside this toolbar to get access to user data?
1
vote
1 answer

Charts on Admin-on-rest

I need to do a webpage to finish my uni, and im about 90% done with it, however, im struggling with getting custom Iterators and Charts to work. Im trying to use Recharts, but i have no idea on how to make it gather the info i want (I need it to get…
1
vote
2 answers

authProvider is finishing its Promise after the Dashboard being mounted

Using [react-admin] I have a customDashboard that verifies a parameter and redirect to the a page called pages: class DashBoard extends Component { componentDidMount() { const { push } = this.props; if…
Aldo
  • 1,199
  • 12
  • 19
1
vote
2 answers

How To Disable Clear Button In The Preview Of ImageInput, FileInput, ImageField, or FileField

I have ImageInput and ImageField for preview in my Create form. There is clear button on image preview in right top corner, as you can see on screenshot Is there a way to disable this button? Or to handle click event on it?
1
vote
3 answers

React-admin | How to concat source inside ReferenceField

I have a table "fos_user" and "version", I would like to display "9.0.1.A" instead of "/ version / 1". =>fos_user https://i.stack.imgur.com/8z9LG.png =>version https://i.stack.imgur.com/vCu9v.png Is it possible to concatenate the fields of the…
Peacefull
  • 546
  • 6
  • 24