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
0
votes
0 answers

ReferenceField and ReferenceInput

(Sorry for my English. It will be great if you correct my mistakes). I have a list of products and create product / edit product pages. Each product has a set of attributes. Each set of attributes has attributes. How to do next: When i choose a set…
Reymor
  • 1
0
votes
3 answers

Recommended way of doing parent-child related CRUD with admin-on-rest

The use case is - I wanted to do CRUD operation on a child resource of a parent. Parent: /home/:id/device/:id Child: /home/:id/device/:id/file/:id Currently I have the parent CRUD working. Was thinking to have an action button/menu (on the parent…
0
votes
0 answers

using filters cause error in admin-on-resst

this is my code import React from 'react'; import { List, Datagrid, TextField, DateField, Filter, TextInput, } from 'admin-on-rest/lib/mui'; const fsFilter = props => (
pelak
  • 70
  • 5
0
votes
1 answer

admin-on-rest: customizing Edit component

I need to customize Edit component in two ways: Add custom button, but not to the upper panel (with 'List' and 'Refresh' buttons), but at the bottom of the component (next to the default 'Save' button). Turn off redirect on default 'Save' button…
Dmytro Titov
  • 2,802
  • 6
  • 38
  • 60
0
votes
1 answer

Creating a custom rest client admin-on-rest

I'm not asking for help I just think you have something wrong with the custom json-server implementation. I'm using: "admin-on-rest": "^1.1.0" This is my App.js: ... import restClient from './restClient'; const App = () => (
llioor
  • 5,804
  • 4
  • 36
  • 44
0
votes
1 answer

Admin-on-Rest Custom button and populate page

Is there a way to make a custom button that will take you to a page, and then have it so you can show data in a DataGrid? For example, say we have a DataGrid and you click on the show button for a post with the id = John. The show button would take…
Stebermon
  • 71
  • 1
  • 8
0
votes
1 answer

Creating a custom rest client

I'm learning how to create a custom rest client in react to communicate with a restless api from flask, to use on Admin-on-rest. I'm trying to resolve the case GET_LIST but I'm not having any success, and I don't know what I can do next? I get this…
0
votes
1 answer

admin on rest Can't ReferenceArrayInput and SelectArrayInput to work

I wish to insert multiple customers to a booking using ReferenceArrayInput but when I use it the Create page won't render at all. in bookings.js: export const BookingCreate = (props) => (
ronald_94
  • 1
  • 1
0
votes
1 answer

How to transform values between store and form in AOR

I have an edit form where I require some extra fields like confirm_password, but my server doesn't accept these fields. Also there can be certain cases where I want to transform the keys of the form values to something else as required by my server.…
0
votes
2 answers

Connect Flask Restless API to Admin-on-rest (React)

I'm learnig flask and react to create a rest API (whit flask) and a rest client (whit react, Admin-on-Rest). I have create the Rest API whit Flask Restless. I'm searching for some advices to connect the API to the client, but can't found what I…
0
votes
1 answer

Reload App upon AUTH_LOGOUT or AUTH_ERROR

Is there a good way to reload the entire application upon (type === AUTH_LOGOUT) and make sure it completes reloading before we representing the Login page? Thanks!
Dragon
  • 31
  • 4
0
votes
1 answer

Repeat Password Validation

I try to implement a page for create new users with admin-on-rest. I want to add two fields for Password and Repeat Password Can you guide me. I use for Password field but what…
b24
  • 2,425
  • 6
  • 30
  • 51
0
votes
1 answer

Custom notification for AUTH_ERROR, status 403

In authClient.js if (type === AUTH_ERROR) { const { status } = params; if (status === 401) { localStorage.removeItem('token'); return Promise.reject(); } if (status === 403) { // Show custom notification here…
Dragon
  • 31
  • 4
0
votes
3 answers

Is there a way to "simulate" pressing the refresh button to refresh a List?

Is there a way to "simulate" pressing the refresh button to refresh a List? I have a list that I want it to update every 10 seconds. Is there a way to "press" the refresh button every 10 seconds? My list name is ActiveJobsList. This is what I have…
Stebermon
  • 71
  • 1
  • 8
0
votes
0 answers

Use Json Server on Admin-on-rest

I'm doing the Admin-on-rest tutorial, I have done every thing, and now i need to change the json server from json placen holder to the json server (from json place holder). I have created already the server, I only need to know how to connect the…