https://avo.cool logo
Computed fields
# general
t
Hey guys, how can I display a panel in the edit view? Editing a specific record here, I need some information about other models... @User @User Is there a way to show computed fields in the edit view?
l
Hey @thousands-battery-19530 computed fields only render on show and index views
You can achieve something similar that apply on all views using the
format_using
option
t
But I need to show information about other models in the edit screen A panel with computed fields would be nice for that
I can't think another way to do that
l
Resource tool can be useful on that scenario
t
This is my edit view... In the panel named "Informações úteis" or "Useful information" I need to fill with other models information, like
Copy code
record.supplier.name
record.supplier.buyer.name
https://cdn.discordapp.com/attachments/1184222219619012679/1184225415749959803/image.png?ex=658b32dc&is=6578bddc&hm=2898d4afc3770fa0c36de82ac9da4a43e547ee994bd7787166e141ce6891ae1f&
Resource tool? Let me search about it
l
t
hm...... interesting !!!
l
that and native field components should do it https://docs.avohq.io/3.0/native-field-components.html
you could render the field components like on the show view
let me read about native field components
all right. I will fix it with ResourceTools, thanks a lot !!!
l
Anytime! It's a powerful feature that open infinite possibilities 😉
2 Views