what does the same as "getOptionLabelFromRecordUsing" in Select Input in SelectFilter ?

what does the same as "getOptionLabelFromRecordUsing" in Select Input in SelectFilter ?
Solution:
If you are not using a relationship, you can use getOptionLabelUsing() and/or getOptionLabelsUsing(). If you are using a relationship, you'd probably have to play around with using a computed attribute for the 'name' parameter on the relationship....
Jump to solution
5 Replies
Solution
cheesegrits
cheesegrits16mo ago
If you are not using a relationship, you can use getOptionLabelUsing() and/or getOptionLabelsUsing(). If you are using a relationship, you'd probably have to play around with using a computed attribute for the 'name' parameter on the relationship.
Saifallak
SaifallakOP16mo ago
i think so thats the only way to make a computed field. thanks @Hugh Messenger
cheesegrits
cheesegrits16mo ago
I may be wrong, there may be some way to do it with a relationship, but I've never managed to find a way other than a compoted name attribute.
Saifallak
SaifallakOP16mo ago
i cant find any other way to customized the relation ship record. you're solution just works. so i'm fine with it
Pocho
Pocho16mo ago
Hey @saifallak how did you solve for this, using an accessor in the model is not working for me.
Want results from more Discord servers?
Add your server