How to Loopback Remote api response load in react admin datagridUse <List /> on React-Admin dashboardRaisedButton not working at allUsing material-ui <Hidden> API causing bugs with React Lifecycle methodHow to call an API every minute for a Dashboard in REACTTypeError: classes are undefined ReactComponent. Material-kit-reactHow to read state of `HTMLRenderer` in side a pluginreact router link with material ui button submitHow to add Material-UI form with Steppers in React-Amin Create ComponentApollo 400 error Exception: TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functionsCSS override is not working. Override overwritten by component CSS. How to fix?

tikz-3dplot: angle-placed cones in a sphere

Secure my password from unsafe servers

Would the Elder Wand have been able to destroy a Horcrux?

How do I get the =LEFT function in excel, to also take the number zero as the first number?

Why do implementations of "stdint.h" disagree on the definition of UINT8_C?

Was there ever a difference between 'volo' and 'volo'?

Can an actual attack instead of a feint be used as the distraction for a help action?

How can glass marbles naturally occur in a desert?

Why does putting a dot after the URL remove login information?

Why can I log in to my Facebook account with a misspelled email/password?

What does VB stand for?

Should I take out a personal loan to pay off credit card debt?

Independent table row spacing

Can ads on a page read my password?

What can make Linux unresponsive for minutes when browsing certain websites?

Double blind peer review when paper cites author's GitHub repo for code

Whats the name of this projection?

What is the German idiom or expression for when someone is being hypocritical against their own teachings?

What is the resistivity of copper at 3 kelvin?

polynomial, find the sum of the inverse roots of this equation.

Japanese equivalent of a brain fart

Why is there a need to prevent a racist, sexist, or otherwise bigoted vendor from discriminating who they sell to?

Why does the ultra long-end of a yield curve invert?

Why are the inside diameters of some pipe larger than the stated size?



How to Loopback Remote api response load in react admin datagrid


Use <List /> on React-Admin dashboardRaisedButton not working at allUsing material-ui <Hidden> API causing bugs with React Lifecycle methodHow to call an API every minute for a Dashboard in REACTTypeError: classes are undefined ReactComponent. Material-kit-reactHow to read state of `HTMLRenderer` in side a pluginreact router link with material ui button submitHow to add Material-UI form with Steppers in React-Amin Create ComponentApollo 400 error Exception: TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functionsCSS override is not working. Override overwritten by component CSS. How to fix?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















i am using loopback 3 developed api load into react admin using react admin loopback package.my doubt is i am write remote api id based get list of values in my response.its result how to load react admin datagrid.



This i am try to load into my react admin based on react admin loopback.this standard template id passed to my template page.this id based call the api and load into datagrid.i dont know? how to pass the api in datagrid




http://localhost:3000/api/templates/gettemplatebystandardtemplateid?standardtemplateid=5c934f75fd22e006749e4ab8




StandardTemplate.js



import React, Component from 'react';
import
List,
SimpleList,
Responsive,
Datagrid,
TextField,
EditButton,
ShowButton, Edit, SimpleForm, TextInput
from 'react-admin';
import Link from 'react-router-dom';

import Config from '../../config';
import Button from '@material-ui/core';
import withStyles from '@material-ui/core/styles';
const styles =
button:
fontWeight: 'bold',
// This is JSS syntax to target a deeper element using css selector, here the svg icon for this button
'& svg': color: 'orange'
,
;
const MyEditButton = withStyles(styles)(( classes, ...props ) => (
<Button source="id"
component=Link
to=
pathname: `/template/$props.record.id`
// state: id: props.record.id

>
Templates
</Button>

));
class StandardTemplateList extends Component
componentDidMount()
console.log(this.props);
document.title = Config.app.name + ' - StandardTemplate';

render()
return (
<List ...this.props>
<Responsive
small=
<SimpleList
primaryText=record => record.name
secondaryText=record => `$record.services views`
tertiaryText=record => new Date(record.createdAt).toLocaleDateString()
/>


medium=<Datagrid>
<TextField source="id" />
<TextField source="name" />
<TextField source="format" />
<TextField source="services" />
<TextField source="createdby" />
<MyEditButton />
<EditButton />
<ShowButton />
</Datagrid>

/>
</List>
);




export default StandardTemplateList;


Template.js



import React, Component from 'react';
import
List,
SimpleList,
Responsive,
Datagrid,
TextField,
EditButton,
ShowButton
from 'react-admin';
import Link from 'react-router-dom';
import GET_LIST,GET_ONE from 'react-admin';
import Card from '@material-ui/core/Card';
import CardHeader from '@material-ui/core/CardHeader';
import dataProvider from '../../dataProvider';
import Button from '@material-ui/core';

class TemplateList extends Component

componentDidMount()
console.log(this.props);
document.title = Config.app.name + ' - Template';

render()

return (
<List ...this.props>
<Responsive
small=
<SimpleList
primaryText=record => record.name
secondaryText=record => `$record.services views`
tertiaryText=record => new Date(record.createdAt).toLocaleDateString()
/>


medium=
<Datagrid>
<TextField source="id" />
<TextField source="name" />
<TextField source="createdby" />
<EditButton />
<ShowButton />
</Datagrid>

/>
</List>
)


export default TemplateList;









share|improve this question
































    1















    i am using loopback 3 developed api load into react admin using react admin loopback package.my doubt is i am write remote api id based get list of values in my response.its result how to load react admin datagrid.



    This i am try to load into my react admin based on react admin loopback.this standard template id passed to my template page.this id based call the api and load into datagrid.i dont know? how to pass the api in datagrid




    http://localhost:3000/api/templates/gettemplatebystandardtemplateid?standardtemplateid=5c934f75fd22e006749e4ab8




    StandardTemplate.js



    import React, Component from 'react';
    import
    List,
    SimpleList,
    Responsive,
    Datagrid,
    TextField,
    EditButton,
    ShowButton, Edit, SimpleForm, TextInput
    from 'react-admin';
    import Link from 'react-router-dom';

    import Config from '../../config';
    import Button from '@material-ui/core';
    import withStyles from '@material-ui/core/styles';
    const styles =
    button:
    fontWeight: 'bold',
    // This is JSS syntax to target a deeper element using css selector, here the svg icon for this button
    '& svg': color: 'orange'
    ,
    ;
    const MyEditButton = withStyles(styles)(( classes, ...props ) => (
    <Button source="id"
    component=Link
    to=
    pathname: `/template/$props.record.id`
    // state: id: props.record.id

    >
    Templates
    </Button>

    ));
    class StandardTemplateList extends Component
    componentDidMount()
    console.log(this.props);
    document.title = Config.app.name + ' - StandardTemplate';

    render()
    return (
    <List ...this.props>
    <Responsive
    small=
    <SimpleList
    primaryText=record => record.name
    secondaryText=record => `$record.services views`
    tertiaryText=record => new Date(record.createdAt).toLocaleDateString()
    />


    medium=<Datagrid>
    <TextField source="id" />
    <TextField source="name" />
    <TextField source="format" />
    <TextField source="services" />
    <TextField source="createdby" />
    <MyEditButton />
    <EditButton />
    <ShowButton />
    </Datagrid>

    />
    </List>
    );




    export default StandardTemplateList;


    Template.js



    import React, Component from 'react';
    import
    List,
    SimpleList,
    Responsive,
    Datagrid,
    TextField,
    EditButton,
    ShowButton
    from 'react-admin';
    import Link from 'react-router-dom';
    import GET_LIST,GET_ONE from 'react-admin';
    import Card from '@material-ui/core/Card';
    import CardHeader from '@material-ui/core/CardHeader';
    import dataProvider from '../../dataProvider';
    import Button from '@material-ui/core';

    class TemplateList extends Component

    componentDidMount()
    console.log(this.props);
    document.title = Config.app.name + ' - Template';

    render()

    return (
    <List ...this.props>
    <Responsive
    small=
    <SimpleList
    primaryText=record => record.name
    secondaryText=record => `$record.services views`
    tertiaryText=record => new Date(record.createdAt).toLocaleDateString()
    />


    medium=
    <Datagrid>
    <TextField source="id" />
    <TextField source="name" />
    <TextField source="createdby" />
    <EditButton />
    <ShowButton />
    </Datagrid>

    />
    </List>
    )


    export default TemplateList;









    share|improve this question




























      1












      1








      1








      i am using loopback 3 developed api load into react admin using react admin loopback package.my doubt is i am write remote api id based get list of values in my response.its result how to load react admin datagrid.



      This i am try to load into my react admin based on react admin loopback.this standard template id passed to my template page.this id based call the api and load into datagrid.i dont know? how to pass the api in datagrid




      http://localhost:3000/api/templates/gettemplatebystandardtemplateid?standardtemplateid=5c934f75fd22e006749e4ab8




      StandardTemplate.js



      import React, Component from 'react';
      import
      List,
      SimpleList,
      Responsive,
      Datagrid,
      TextField,
      EditButton,
      ShowButton, Edit, SimpleForm, TextInput
      from 'react-admin';
      import Link from 'react-router-dom';

      import Config from '../../config';
      import Button from '@material-ui/core';
      import withStyles from '@material-ui/core/styles';
      const styles =
      button:
      fontWeight: 'bold',
      // This is JSS syntax to target a deeper element using css selector, here the svg icon for this button
      '& svg': color: 'orange'
      ,
      ;
      const MyEditButton = withStyles(styles)(( classes, ...props ) => (
      <Button source="id"
      component=Link
      to=
      pathname: `/template/$props.record.id`
      // state: id: props.record.id

      >
      Templates
      </Button>

      ));
      class StandardTemplateList extends Component
      componentDidMount()
      console.log(this.props);
      document.title = Config.app.name + ' - StandardTemplate';

      render()
      return (
      <List ...this.props>
      <Responsive
      small=
      <SimpleList
      primaryText=record => record.name
      secondaryText=record => `$record.services views`
      tertiaryText=record => new Date(record.createdAt).toLocaleDateString()
      />


      medium=<Datagrid>
      <TextField source="id" />
      <TextField source="name" />
      <TextField source="format" />
      <TextField source="services" />
      <TextField source="createdby" />
      <MyEditButton />
      <EditButton />
      <ShowButton />
      </Datagrid>

      />
      </List>
      );




      export default StandardTemplateList;


      Template.js



      import React, Component from 'react';
      import
      List,
      SimpleList,
      Responsive,
      Datagrid,
      TextField,
      EditButton,
      ShowButton
      from 'react-admin';
      import Link from 'react-router-dom';
      import GET_LIST,GET_ONE from 'react-admin';
      import Card from '@material-ui/core/Card';
      import CardHeader from '@material-ui/core/CardHeader';
      import dataProvider from '../../dataProvider';
      import Button from '@material-ui/core';

      class TemplateList extends Component

      componentDidMount()
      console.log(this.props);
      document.title = Config.app.name + ' - Template';

      render()

      return (
      <List ...this.props>
      <Responsive
      small=
      <SimpleList
      primaryText=record => record.name
      secondaryText=record => `$record.services views`
      tertiaryText=record => new Date(record.createdAt).toLocaleDateString()
      />


      medium=
      <Datagrid>
      <TextField source="id" />
      <TextField source="name" />
      <TextField source="createdby" />
      <EditButton />
      <ShowButton />
      </Datagrid>

      />
      </List>
      )


      export default TemplateList;









      share|improve this question
















      i am using loopback 3 developed api load into react admin using react admin loopback package.my doubt is i am write remote api id based get list of values in my response.its result how to load react admin datagrid.



      This i am try to load into my react admin based on react admin loopback.this standard template id passed to my template page.this id based call the api and load into datagrid.i dont know? how to pass the api in datagrid




      http://localhost:3000/api/templates/gettemplatebystandardtemplateid?standardtemplateid=5c934f75fd22e006749e4ab8




      StandardTemplate.js



      import React, Component from 'react';
      import
      List,
      SimpleList,
      Responsive,
      Datagrid,
      TextField,
      EditButton,
      ShowButton, Edit, SimpleForm, TextInput
      from 'react-admin';
      import Link from 'react-router-dom';

      import Config from '../../config';
      import Button from '@material-ui/core';
      import withStyles from '@material-ui/core/styles';
      const styles =
      button:
      fontWeight: 'bold',
      // This is JSS syntax to target a deeper element using css selector, here the svg icon for this button
      '& svg': color: 'orange'
      ,
      ;
      const MyEditButton = withStyles(styles)(( classes, ...props ) => (
      <Button source="id"
      component=Link
      to=
      pathname: `/template/$props.record.id`
      // state: id: props.record.id

      >
      Templates
      </Button>

      ));
      class StandardTemplateList extends Component
      componentDidMount()
      console.log(this.props);
      document.title = Config.app.name + ' - StandardTemplate';

      render()
      return (
      <List ...this.props>
      <Responsive
      small=
      <SimpleList
      primaryText=record => record.name
      secondaryText=record => `$record.services views`
      tertiaryText=record => new Date(record.createdAt).toLocaleDateString()
      />


      medium=<Datagrid>
      <TextField source="id" />
      <TextField source="name" />
      <TextField source="format" />
      <TextField source="services" />
      <TextField source="createdby" />
      <MyEditButton />
      <EditButton />
      <ShowButton />
      </Datagrid>

      />
      </List>
      );




      export default StandardTemplateList;


      Template.js



      import React, Component from 'react';
      import
      List,
      SimpleList,
      Responsive,
      Datagrid,
      TextField,
      EditButton,
      ShowButton
      from 'react-admin';
      import Link from 'react-router-dom';
      import GET_LIST,GET_ONE from 'react-admin';
      import Card from '@material-ui/core/Card';
      import CardHeader from '@material-ui/core/CardHeader';
      import dataProvider from '../../dataProvider';
      import Button from '@material-ui/core';

      class TemplateList extends Component

      componentDidMount()
      console.log(this.props);
      document.title = Config.app.name + ' - Template';

      render()

      return (
      <List ...this.props>
      <Responsive
      small=
      <SimpleList
      primaryText=record => record.name
      secondaryText=record => `$record.services views`
      tertiaryText=record => new Date(record.createdAt).toLocaleDateString()
      />


      medium=
      <Datagrid>
      <TextField source="id" />
      <TextField source="name" />
      <TextField source="createdby" />
      <EditButton />
      <ShowButton />
      </Datagrid>

      />
      </List>
      )


      export default TemplateList;






      reactjs material-ui loopbackjs react-admin






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 28 at 10:55







      Sandy Santhosh

















      asked Mar 27 at 5:58









      Sandy SanthoshSandy Santhosh

      66 bronze badges




      66 bronze badges

























          0






          active

          oldest

          votes










          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%2f55370679%2fhow-to-loopback-remote-api-response-load-in-react-admin-datagrid%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes




          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















          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%2f55370679%2fhow-to-loopback-remote-api-response-load-in-react-admin-datagrid%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

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript