Git Product home page Git Product logo

Comments (4)

dantevvp avatar dantevvp commented on June 2, 2024 1

@omohokcoj just tested it out and it works beautifully. Thank you!

from motor-admin-rails.

omohokcoj avatar omohokcoj commented on June 2, 2024

@dantevvp i was not able to reproduce this issue:
image

What is the name of your field field in the custom form?
Param name should be id because that's what you use in 'initial data' api path:

image

from motor-admin-rails.

dantevvp avatar dantevvp commented on June 2, 2024

@omohokcoj I added a Match field with an id param name. The Teams field still looks empty on all Match records when editing.

image

This is the response of the API as seen in the Dev console when editing Match 14:

image

One thing I did notice though is that if I change my Teams field to a select field with a custom query instead of a reference field, it works. But it has to be a select field with a custom query.

image

Is this expected behavior? Shouldn't the reference field also work for populating initial data without the need of creating a custom query?

from motor-admin-rails.

omohokcoj avatar omohokcoj commented on June 2, 2024

@dantevvp thanks it helped to identify the issue - i release a new 0.4.8 version with a fix - hope you can give it a try.

from motor-admin-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.