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

How to derive an editable input value of one field from another in AOR

I've a use case where Field B value is derived from Field A value, and Field B value can be changed by user inputs as well. Is there a way to fire Field B's input.onChange action when Field A changes? I checked redux-form documentation (and am a bit…
2
votes
0 answers

How to create 'My Account Form' in Admin on Rest

I'm using Admin on Rest 1.2 and I want to create a custom 'My Account Page' for the dashboard. So I created a custom route for that and I prepared a custom query to API which works perfectly. But when I want to get the values from this.state to Edit…
updater
  • 967
  • 1
  • 12
  • 23
2
votes
2 answers

Pagination with "cursors" using Admin-on-rest

My back-end API supports cursor based pagination for the GET_LIST operations. API: {apiUrl}/{resource}?fltr={limit:100} Response: { data: [], next: {reference_url_to_the_next_paginated_data_set} } What is the best way to supported this sort of…
Sundaram Ravi
  • 1,185
  • 1
  • 8
  • 11
2
votes
2 answers

Admin on rest custom button

I would like to make a custom button that would be used to fetch. I want the button to be usable like this: export const LogList = (props) => ( }>
Stebermon
  • 71
  • 1
  • 8
2
votes
2 answers

How to setup dynamic URLs for Resources in admin-on-rest?

I've a requirement where the below resources are accessed based on the type of user logged in. R1: /mit/oss/12345/peers R2: /mit/md/6879/ngrp R1 should be accessible by an user with id: 12345. And R2 should be accessible by an user with id -…
2
votes
0 answers

Having trouble mocking ajax request with jest

I'm trying to unit test a module required by admin-on-rest. What I want to do is to mock the implementation of getToken as it makes an request. I am mocking the response of getToken to return a token so that when the "default" is being called, it…
2
votes
3 answers

Adding multiple list views to same resource - Admin-On-Rest

I have a tale Resource that I want to display in different ways for the same user, depending on the tale status Tale with status = NEW should be shown with List1 Tales with status = APPROVED etc need to be shown as List2 (I need to display different…
kunal pareek
  • 1,285
  • 10
  • 21
2
votes
1 answer

admin-on-rest how to implement a custom saga for auto-refresh

In the example provided in the aor-realtime readme import realtimeSaga from 'aor-realtime'; const observeRequest = (fetchType, resource, params) => { // Use your apollo client methods here or sockets or whatever else including the following…
MhdSyrwan
  • 1,613
  • 3
  • 19
  • 26
2
votes
0 answers

disable cache mechanism in admin-on-rest

is it possible to disable your cache system? I have an error when I have different object in my Edit page for example I have this as my list in my API: domain.com/api/products list = [ {id: 1 , value: 'foo'}, {id: 2 , value: 'bar'}, ] and this…
pelak
  • 70
  • 5
2
votes
1 answer

Authentication and OAuth2 implementation in admin-on-rest

First of all I would like to thank you for the awesome work in admin-or-rest that you have done for this template. I would like to ask if there is an easy workaround in order to implement oauth2 authentication. There is an example on how we can…
stelioschar
  • 115
  • 1
  • 2
  • 10
2
votes
1 answer

Access the model from the Edit component

I have the following edit component const UserEdit = (props) => (
2
votes
1 answer

Affecting the whole record value from a CustomField in admin-on-rest

I have a Edit component in an admin-on-rest's app which internally uses ReduxForm and the code looks like this: I am wondering how is it possible to change title from…
omid.n
  • 491
  • 5
  • 22
2
votes
0 answers

Error on Edit and Create: uncaught at handleFetch addRecords/newRecordsById

I'm using admin-on-rest. When I press the EditButton in the List (no matter for what resource) I immediatly get the following error in the Firefox console: uncaught at handleFetch …
Thotti
  • 21
  • 2
2
votes
2 answers

Use browser history admin-on-rest

can we use browser history in admin-on-rest (React JS) instead on hashhistory? do i need change something in admin-on-rest or just set the server to handle the URL ?
kazuyahiko
  • 343
  • 2
  • 13
1
vote
1 answer

HATEOAS backend?

I would like to use react-admin with my Restful HATEOAS inspired server. Has anyone ever tried that? Unfortunately, react-admin wants to work with id's and does not hand objects to the dataprovider. Especially in getManyReference it does not supply…
Blafasel42
  • 187
  • 7