Use path parameter for ReferenceInput instead of query parameter for react-adminReact-Admin, Empty the ArrayInput according to ReferenceInputReact-admin no edit on listHow to uniquely identify ReferenceInput and Filter in react-admin for acceptance testing?React-Admin ReferenceInput issuesDjango-rest-framework + React-Admin : URL Backslash issueBinding React-Admin ReferenceInput with SelectInput to render on DOMHow to access fetched data from ReferenceInput to fill ReferenceArrayInput choices in react admin?react-admin referenceInput nextPageCustom path for resource route in react-adminReact Admin with OpenID Connect
When an imagined world resembles or has similarities with a famous world
Can there be a single technologically advanced nation, in a continent full of non-technologically advanced nations?
How does summation index shifting work?
How to pass hash as password to ssh server
Is an HNN extension of a virtually torsion-free group virtually torsion-free?
Start job from another SQL server instance
How do I calculate how many of an item I'll have in this inventory system?
Is there precedent or are there procedures for a US president refusing to concede to an electoral defeat?
Should I simplify my writing in a foreign country?
Using Im[] and Re[] Correctly
Why would a military not separate its forces into different branches?
Formatting Datetime.now()
Why am I receiving the identity insert error even after explicitly setting IDENTITY_INSERT ON and using a column list?
Latex & Markdown files
As a GM, is it bad form to ask for a moment to think when improvising?
How long would it take for people to notice a mass disappearance?
Agena docking and RCS Brakes in First Man
Prove that a definite integral is an infinite sum
Why didn't this character get a funeral at the end of Avengers: Endgame?
Has the United States ever had a non-Christian President?
How can internet speed be 10 times slower without a router than when using the same connection with a router?
Python 3 - simple temperature program
Is 'contemporary' ambiguous and if so is there a better word?
Can muons decay into quarks?
Use path parameter for ReferenceInput instead of query parameter for react-admin
React-Admin, Empty the ArrayInput according to ReferenceInputReact-admin no edit on listHow to uniquely identify ReferenceInput and Filter in react-admin for acceptance testing?React-Admin ReferenceInput issuesDjango-rest-framework + React-Admin : URL Backslash issueBinding React-Admin ReferenceInput with SelectInput to render on DOMHow to access fetched data from ReferenceInput to fill ReferenceArrayInput choices in react admin?react-admin referenceInput nextPageCustom path for resource route in react-adminReact Admin with OpenID Connect
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
In my react-admin app I have an Edit
view which uses a ReferenceInput
.
When I select one entry from the <AutocompleteInput>
element then react-admin calls the following URL for getting the requested resource:
http://localhost:8090/api/entities/institution?id=84246
The API however needs this:
http://localhost:8090/api/entities/institution/84246
Is there a way telling react-admin to use path parameter instead of the query parameter?
export const CustomInstitutionEdit = props => (
<EditTemplate ...props>
<SimpleFormTemplate>
<TextInput source="name" />
<TextInput source="nameShort" />
<ReferenceInput
source="institution.id"
reference="institution"
perPage=0
sort= field: "name", order: "ASC"
filterToQuery=searchText => ( _filter_name: searchText )
>
<AutocompleteInput optionText="name" />
</ReferenceInput>
</SimpleFormTemplate>
</EditTemplate>
);
react-admin
add a comment |
In my react-admin app I have an Edit
view which uses a ReferenceInput
.
When I select one entry from the <AutocompleteInput>
element then react-admin calls the following URL for getting the requested resource:
http://localhost:8090/api/entities/institution?id=84246
The API however needs this:
http://localhost:8090/api/entities/institution/84246
Is there a way telling react-admin to use path parameter instead of the query parameter?
export const CustomInstitutionEdit = props => (
<EditTemplate ...props>
<SimpleFormTemplate>
<TextInput source="name" />
<TextInput source="nameShort" />
<ReferenceInput
source="institution.id"
reference="institution"
perPage=0
sort= field: "name", order: "ASC"
filterToQuery=searchText => ( _filter_name: searchText )
>
<AutocompleteInput optionText="name" />
</ReferenceInput>
</SimpleFormTemplate>
</EditTemplate>
);
react-admin
add a comment |
In my react-admin app I have an Edit
view which uses a ReferenceInput
.
When I select one entry from the <AutocompleteInput>
element then react-admin calls the following URL for getting the requested resource:
http://localhost:8090/api/entities/institution?id=84246
The API however needs this:
http://localhost:8090/api/entities/institution/84246
Is there a way telling react-admin to use path parameter instead of the query parameter?
export const CustomInstitutionEdit = props => (
<EditTemplate ...props>
<SimpleFormTemplate>
<TextInput source="name" />
<TextInput source="nameShort" />
<ReferenceInput
source="institution.id"
reference="institution"
perPage=0
sort= field: "name", order: "ASC"
filterToQuery=searchText => ( _filter_name: searchText )
>
<AutocompleteInput optionText="name" />
</ReferenceInput>
</SimpleFormTemplate>
</EditTemplate>
);
react-admin
In my react-admin app I have an Edit
view which uses a ReferenceInput
.
When I select one entry from the <AutocompleteInput>
element then react-admin calls the following URL for getting the requested resource:
http://localhost:8090/api/entities/institution?id=84246
The API however needs this:
http://localhost:8090/api/entities/institution/84246
Is there a way telling react-admin to use path parameter instead of the query parameter?
export const CustomInstitutionEdit = props => (
<EditTemplate ...props>
<SimpleFormTemplate>
<TextInput source="name" />
<TextInput source="nameShort" />
<ReferenceInput
source="institution.id"
reference="institution"
perPage=0
sort= field: "name", order: "ASC"
filterToQuery=searchText => ( _filter_name: searchText )
>
<AutocompleteInput optionText="name" />
</ReferenceInput>
</SimpleFormTemplate>
</EditTemplate>
);
react-admin
react-admin
asked Mar 22 at 15:16
Robert StrauchRobert Strauch
3,8841258104
3,8841258104
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
React Admin isn't responsible for making API calls directly, it uses a Data Provider. If an existing Data Provider doesn't fit your needs you can easily write your own.
The data provider is what's responsible for translating react-admin CRUD operations into API calls.
See this for more info: https://marmelab.com/react-admin/DataProviders.html
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55302745%2fuse-path-parameter-for-referenceinput-instead-of-query-parameter-for-react-admin%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
React Admin isn't responsible for making API calls directly, it uses a Data Provider. If an existing Data Provider doesn't fit your needs you can easily write your own.
The data provider is what's responsible for translating react-admin CRUD operations into API calls.
See this for more info: https://marmelab.com/react-admin/DataProviders.html
add a comment |
React Admin isn't responsible for making API calls directly, it uses a Data Provider. If an existing Data Provider doesn't fit your needs you can easily write your own.
The data provider is what's responsible for translating react-admin CRUD operations into API calls.
See this for more info: https://marmelab.com/react-admin/DataProviders.html
add a comment |
React Admin isn't responsible for making API calls directly, it uses a Data Provider. If an existing Data Provider doesn't fit your needs you can easily write your own.
The data provider is what's responsible for translating react-admin CRUD operations into API calls.
See this for more info: https://marmelab.com/react-admin/DataProviders.html
React Admin isn't responsible for making API calls directly, it uses a Data Provider. If an existing Data Provider doesn't fit your needs you can easily write your own.
The data provider is what's responsible for translating react-admin CRUD operations into API calls.
See this for more info: https://marmelab.com/react-admin/DataProviders.html
edited Mar 26 at 2:10
answered Mar 23 at 1:04
Shawn KShawn K
585313
585313
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55302745%2fuse-path-parameter-for-referenceinput-instead-of-query-parameter-for-react-admin%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown