yfktn
November 21, 2024, 3:00am
#1
I discovered that the property to add my model scope to a RecordFinder
widget is not modelScope
but scope
. However, the documentation states (link ) to use modelScope
instead of scope
.
Please update the documentation, as I spent about two hours scratching my head over this issue .
daft
November 21, 2024, 3:08am
#2
Hi @yfktn
The documentation is correct; it should be modelScope
in the latest version.
yfktn
November 21, 2024, 3:41am
#3
Hi @daft
I’m using version 3.6.27, and when I use the following configuration in my RecordFinder
:
parent:
modelScope: onlyShowValidated
list: $/yfktn/asetbkad/models/prog/columns.yaml
useRelation: true
structure: true
nameFrom: name
descriptionFrom: description
span: full
type: recordfinder
my scope
isn’t called.
However, when I replace modelScope
with scope
, it works perfectly.
daft
November 21, 2024, 3:58am
#4
Ah, yes. Well, the latest version is v3.7…
It may be different if you upgrade to v3.7. It’s very possible this was unlucky timing, and it worked that way in v3.6.
yfktn
November 21, 2024, 7:10am
#5
Yes, It works after I upgraded to the latest version 3.7.5.
Thank you.