Hello good day, I ask you a question, is it possible to define a two-color for a gallery of records, that is, I have 4 records and I would like to have a white color and another medium gray so that the user can detect the difference between the two records and what be so that white is interspersed with gray depending on whether the records grow or not.
I would appreciate it if you could help me
Solved! Go to Solution.
Do you mean like banded rows, where one row is one color, and the next row is another color, alternating?
Assuming the rows have sequential IDs (i.e. nothing has been deleted from the data source), you can use this on the TemplateFill property of a gallery:
If(Mod(ThisItem.ID,2)=0,White,GhostWhite)
I have a sql view that brings back logs.
if I meant a band of rows with a different color
In the TemplateFill property of the gallery, If(ThisItem.IsSelected, LightGrey, White)
You can also have different colors depending on a field in the records, something like
Switch(ThisItem.Status, "Active", Red,"Inactive", Grey, "Pending", Coral)
ok this works, but I would like to have the stripes that do not depend on a record, I want the first record to be loaded to be white and the second to be light gray and from then on continue interspersed one white and one gray
See http://powerapps.co.nz/auckland/index.php/our-blog/41-add-alternating-row-colours-to-power-apps-gall... to stripe your gallery.
could you help me to integrate
SortByColumns(
Search(
[@'[dbo].[APP_Nipon]'];
TextSearchBox1.Text;
"BodegaEntrada";
"BodegaSalida";
"DescItem"
);
"Numero";
If(
SortDescending1;
Ascending;
Descending
)
)
this code with this new
With(
{
records:'[dbo].[APP_Nipon]'
};
ForAll(
Sequence(CountRows(records));
Patch(
Last(
FirstN(records;Value));
{rowNumber: Value}
)
)
)
User | Count |
---|---|
121 | |
88 | |
88 | |
75 | |
66 |
User | Count |
---|---|
215 | |
180 | |
138 | |
96 | |
82 |