Hi,
could anybody give me some advices, how could I make dynamic view browse gallery?
What I imagine under dynamic browse gallery (columns). I need to make sure that based on the user's application selection (which columns the user wants to see in the gallery), those columns will be displayed to him.
Example:
I have an SP list that contains column A, column B, column C, column D.
somewhere on the screen, will be e.g. ComboBox or Check box (I don't care). Based on the user's choice to view column A and column D. These columns will appear in the browse gallery.
Have anybody experience with this? Could give me any advice to solve this problem?
Thanks.
Solved! Go to Solution.
If You hide a Label in the horizontal container, the total width will be automatically occupied width visible elements and the controls inside the Gallery will positioned the same as the "columns" are.
To manage visibily, You can use a Combobox with property items:
Table(
{Col: "A"},
{Col: "B"},
{Col: "C"},
{Col: "D"}
)
Then, configure property visibility of each column header (labels inside the horizontal container) as:
If(
CountRows(
Filter(
ComboBox.SelectedItems,
Col = Self.Text
)
) > 0,
true,
false
)
In the label where you want to display the column info put a switch function.
Switch(
ComboBox1.Selected.Value;
"Column1";
ThisItem.Column1;
"Column2";
ThisItem.Column2
)
Note that depending on the type of column you might need to add a ThisItem.ColumnX.Value to access the data.
If You hide a Label in the horizontal container, the total width will be automatically occupied width visible elements and the controls inside the Gallery will positioned the same as the "columns" are.
To manage visibily, You can use a Combobox with property items:
Table(
{Col: "A"},
{Col: "B"},
{Col: "C"},
{Col: "D"}
)
Then, configure property visibility of each column header (labels inside the horizontal container) as:
If(
CountRows(
Filter(
ComboBox.SelectedItems,
Col = Self.Text
)
) > 0,
true,
false
)
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
191 | |
95 | |
65 | |
63 | |
58 |
User | Count |
---|---|
243 | |
164 | |
91 | |
79 | |
78 |