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;








0















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>
);









share|improve this question




























    0















    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>
    );









    share|improve this question
























      0












      0








      0








      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>
      );









      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 22 at 15:16









      Robert StrauchRobert Strauch

      3,8841258104




      3,8841258104






















          1 Answer
          1






          active

          oldest

          votes


















          1














          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






          share|improve this answer

























            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
            );



            );













            draft saved

            draft discarded


















            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









            1














            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






            share|improve this answer





























              1














              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






              share|improve this answer



























                1












                1








                1







                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






                share|improve this answer















                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







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 26 at 2:10

























                answered Mar 23 at 1:04









                Shawn KShawn K

                585313




                585313





























                    draft saved

                    draft discarded
















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현