Hi,
Can we set to show view based on selection of fields such as attached screenshot below. Based on the field type Input Product as : Measurable or Ready Product I want the below table view to change. For ok instance if the Input Product as Measurable Product then I want view showing only following columns : Item Name,Qty,Pricelist Rate,Amount.
I have created the views accordingly.but not sure where to add the expression. Have tried link to view but it didn’t work.
Hi @Boa_Casa
You can.
I suggest you create slices with the columns you wish to display.
let’s say:
Then, let’s get back to your main table columns.
You must have a column, that you decided to rename “window blinds” and that probably was named first: “Related windowBlinds”.
For explanation purpose, let’s call it “related Children”.
Assuming its expression is:
REF_ROWS("yourChildrenTable", "yourRelationIDColumn")
your workaround will use its expression.
Please add a virtual column, let’s name it “childrenCriteria1”, and its expression will be:
REF_ROWS("yourSliceWithColumnsDependingOnCriteria1", "yourRelationIDColumn")
another one, same idea:
REF_ROWS("yourSliceWithColumnsDependingOnCriteria2", "yourRelationIDColumn")
Finally, you will use a show_if condition on these “list of ref” virtual columns.
And you will set your show_if expression for the column “childrenCriteria1” this way:
[columnCriteria]="criteria1"
the same for the “childrenCriteria2” column:
[columnCriteria]="criteria2"
and please remember to untick the “related Children” show option.
This way, the columns of the expected slices that you set for your criteria will be displayed, and the other will be hidden
Let us know if that works for you !
User | Count |
---|---|
35 | |
31 | |
30 | |
18 | |
17 |