[QGIS-Developer] Question on current_value() expression in the context of filtering relation reference combo boxes

2022-12-06 Thread Andreas Neumann via QGIS-Developer
Hi, In one of my form setups, I would like to filter one relation reference widget combo box with a filter expression based on the selected entry of another relation reference value. A static filter like: szenario_art = 'Brand' works as expected and it returns the filtered values - but as

Re: [QGIS-Developer] Question on current_value() expression in the context of filtering relation reference combo boxes

2022-12-06 Thread Alessandro Pasotti via QGIS-Developer
On Tue, Dec 6, 2022 at 3:59 PM Andreas Neumann via QGIS-Developer wrote: > > Hi, > > In one of my form setups, I would like to filter one relation reference > widget combo box with a filter expression based on the selected entry of > another relation reference value. > > A static filter like: >

Re: [QGIS-Developer] Question on current_value() expression in the context of filtering relation reference combo boxes

2022-12-06 Thread Andreas Neumann via QGIS-Developer
Hi Ale, Thanks for your information. What if both tables have the same column names? Would that also work? In my case the related table contains a field called "szenario_art" and the parent table also has the same field name. Can one assume that a field left of the operator will be in the re

Re: [QGIS-Developer] Question on current_value() expression in the context of filtering relation reference combo boxes

2022-12-06 Thread Alessandro Pasotti via QGIS-Developer
You probably need to use current_parent_value() to get the value of the "parent" form in case of embedded sub-forms. On Tue, Dec 6, 2022 at 4:34 PM Andreas Neumann wrote: > > Hi Ale, > > Thanks for your information. > > What if both tables have the same column names? Would that also work? > > In

Re: [QGIS-Developer] Question on current_value() expression in the context of filtering relation reference combo boxes

2022-12-06 Thread Alessandro Pasotti via QGIS-Developer
Sorry, I just realized that you are using relation-reference widgets and not value-relation widgets. I don't think that the current_(parent)_value will work in that case, it wasn't implemented. Cheers On Tue, Dec 6, 2022 at 3:59 PM Andreas Neumann via QGIS-Developer wrote: > > Hi, > > In one of

Re: [QGIS-Developer] [Qgis-psc] QGIS budget 2023 RFC

2022-12-06 Thread Marco Bernasocchi via QGIS-Developer
Dear all, thanks a lot for all the feedback, As you might remember, the aim of the thread was indeed to discuss the proposed budget, so I'll to try to address most of the mentioned points in all emails without a specific order, trying to convey how things came to this proposal and why the PSC beli

Re: [QGIS-Developer] Question on current_value() expression in the context of filtering relation reference combo boxes

2022-12-06 Thread Andreas Neumann via QGIS-Developer
Hi Ale, That would explain it ;-) I also tried various other combinations, like with @current_parent_feature, @feature, etc. - but haven't found a working version ... I might try with a variable ;-) I got the variable filter version working in another project. But that involved Python ...