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

How to use pretty URLs (BrowserRouter) with react-admin

Is there a way to use BrowserRouter with react-admin to have URLs without the # character?
vascoFG
  • 129
  • 1
  • 11
1
vote
1 answer

React-admin Searchable multi select fetching from database(other table)

I am using react-admin for my application. I want to create a searchable(suggesting with possible values) multi-select field input which fetches data(feature name in my case from table features) which can be selected from a table at the backend. My…
Anirudh Sharma
  • 129
  • 1
  • 3
  • 9
1
vote
1 answer

How to populate choices with already fetched data

In my App component I have a subscriptions Resource with an edit component: SubscriptionEdit looks something like this: export const SubscriptionEdit = props => ( …
RamiroP
  • 360
  • 1
  • 8
1
vote
1 answer

Using react-admin , How to create a comment from a post

I am using react-admin for a new project . One of the challenge that I have right is to create something like a comment from a post . Here is the way I try to do it . The…
thecassion
  • 506
  • 1
  • 7
  • 19
1
vote
0 answers

admin-on-rest toggle menu (show / hide)

I'm using admin-on-rest in my react application as admin interface. My problem is the menu, I'm add a DashboardMenuItem to toggle (show/hide) the menu. But I have no idea what the onClick function should look like and I find no example of this in…
Marvin J.
  • 11
  • 1
1
vote
4 answers

admin on rest hide resource component in sidebar

I need a resource with all its configuration, but I don't want it to be showed in sidebar
4knort
  • 67
  • 1
  • 9
1
vote
1 answer

How to provide a custom redirect to a SimpleForm inside Edit?

After an edit, I follow the convention to redirect on the list. However, I am in a case where I need to provide additional parameters in the list URL. Is there a way to "cheat" on SimpleForm/Edit to customize the redirect ? Here is the relevant part…
Christophe Blin
  • 1,687
  • 1
  • 22
  • 40
1
vote
1 answer

Pass existing record record/value to Create Component

we wanted to know how you could pass an existing/selected record from a List to a create view in react admin. We have a situation where each entry in our list view has both an Edit and Create button. We want to be able to click on Create for said…
user3786798
  • 93
  • 1
  • 1
  • 5
1
vote
0 answers

Admin-on-rest (React) - How to handle browser caching of JS files

I have recently put an admin-on-rest app into production and it works great. However, when I update the app, the updated files within my project src directory are cached. For example I made a change to the restClient.js file, but this only gets…
Marcel
  • 105
  • 6
1
vote
1 answer

Content-Range missing header

I'm facing this error and I don't really understand why. Other ask don't contains usefully information so I try to ask again providing more details Content range missing header Response detail
1
vote
2 answers

admin-on-rest "Translate is not a function" after following example in documentation

After following the i18n example in the documentation, I tried to insert that example in my code, like this: import React, { Component } from 'react'; import { List, Datagrid, TextField, NumberField, DateField, Create, …
1
vote
2 answers

How to dynamically change the "title" of "app", based on login info (i.e. after login succeeds or logout)?

I have this code, please see the title prop: const App = () => (
user2078023
  • 1,137
  • 1
  • 10
  • 28
1
vote
1 answer

Getting started with aor-permissions (admin-on-rest permissions)

I have read almost all the documentation aor-permissions available on internet. I am not starting a new project. I already have a project setup. This is my login method right now: function getRoutes(store) { function hasAuth(nextState, replace,…
EdG
  • 2,243
  • 6
  • 48
  • 103
1
vote
0 answers

Admin on rest - How to use DependentInput with ReferenceInput

For example, I have two endpoints: /level/ { "id": 1, "type": 1 "field": 2 } /level_type/ { "id": 1, "value": "test1" } { "id": 2, "value": "test2" } I created component: export const LevelEdit = (props) => { …
anton
  • 31
  • 1
1
vote
2 answers

DeleteButton triggers "Incorrect Element"

I'm implementing an asp.net core API with admin-on-rest. A custom REST client communicates to the API endpoints, but the mapping is fairly standard. When I try to implement a into the interface, the deletion of elements works fine. Still, I get an…
Luffi
  • 11
  • 5