Comments (4)
@omohokcoj just tested it out and it works beautifully. Thank you!
from motor-admin-rails.
@dantevvp i was not able to reproduce this issue:
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:
from motor-admin-rails.
@omohokcoj I added a Match
field with an id
param name. The Teams
field still looks empty on all Match
records when editing.
This is the response of the API as seen in the Dev console when editing Match 14:
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.
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.
@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)
- Inline editing is still enabled even the edit action is disabled HOT 4
- Weird issues with polymorphic fields HOT 8
- Motor migrations fail rails_best_practices static checks HOT 1
- Define API endpoint for Form HOT 1
- Resource missing in the UI HOT 5
- Unable to set Read-Only for File column HOT 1
- Defining postgres schemas not working
- Handling authorization for non-admin users HOT 1
- Issues with Rodauth HOT 1
- found unpermitted parameters: :name, :tags when constructing new query HOT 4
- Update of json field failed HOT 1
- CanCanCan Permissions not applies! HOT 3
- Application is freezing on MUTEX.sinchronize HOT 2
- Save custom scopes in the database HOT 1
- Boolean fields submitting nil instead of false HOT 2
- MySQL blank screen - Pie Chart - percent format
- Error when creating association
- API endpoint Form submitting table data when used in action
- Breakage when copying headers from API request response to the MA app response HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from motor-admin-rails.