Open dc198689 opened 5 years ago
Have you tried to do this filters: { group: 'filtersValue ' }
the colon should do the trick. I see some whitespace in your last filter filters: { type: 'entertainment ' }
might there be whitespace in the type
of the models? That might be the reason why they don't match? Maybe type
isn't a solid key to use, since type
means a lot in fields?
Have you tried to do this filters: { group: 'filtersValue ' }
Hi @akopcz2 , The 'group' should need to change to 'type', because it is point to related model specific field property.
the colon should do the trick. I see some whitespace in your last filter
filters: { type: 'entertainment ' }
might there be whitespace in thetype
of the models? That might be the reason why they don't match? Maybetype
isn't a solid key to use, sincetype
means a lot in fields?
Hi @laurenskling , For whitespace you see, it is my example type here, But now in my case, I rename the relationship model to avoid property name conflict,
AnchorLink Models ( Relationship )
linkType: { type: Types.Select, options: 'broadband, mobile, entertainment' },
Main Models ( Main )
filtersValue: { type: Types.Select, options: 'broadband, mobile, entertainment' }, filtersValueByRelationship: { type: Types.Relationship, label: 'Section Value By Relationship', ref: 'AnchorLink', filters: { linkType: ':filtersValue' } },
Still not work ... Seems like no wrong typo error, e.g whitespace...
Any solutions ?
I have also faced the issue
Any fixes or workarounds?
Seems like no any fixes or response ?
Any fixes to this? I have kind of a very similar issue.
Hi, I have a issue which is a filters with colon not work in Types.Relationship, need help.
I have a AnchorLink Models and stored arround 4 documents which is below
{ _id: 1234, name: xxxxx, type: entertainment } { _id: 2345, name: xxxxx, type: broadband } { _id: 3456, name: xxxxx, type: mobile } { _id: 6775, name: xxxxx, type: entertainment }
In a FilterType Models
filtersValue: { type: Types.Select, options: 'broadband, mobile, entertainment' }, filtersValueByRelationship: { type: Types.Relationship, label: 'Section Value By Relationship', ref: 'AnchorLink', filters: { type: ':filtersValue' } },
The result is colon not work, UI is SHOW ALL of AnchorLink Model data.
If I remove the colon and hardcode value in the filters of Relationship, just like
filtersValueByRelationship: { type: Types.Relationship, label: 'Section Value By Relationship', ref: 'AnchorLink', filters: { type: 'entertainment ' } },
It work right.How should I fix this issue ?
Environment