The text discusses adding alternating colors to a gallery in a Canvas App that's sourced from a Dataverse table. It explains that this can be done by adding a new column to the data source which will store the sequential row number. This row number can then be used to calculate the fill color of the gallery row using the Mod function.
Screenshots provided to illustrate the process offer the following guidance:
This text provides a technique to enhance the visual appeal of a Canvas App gallery, giving it organizing structure. This technique involves using coding logic and the modification of properties within the app's data source. The use of the Mod function allow for systematic and patterned color application. The method involves specific steps and attention to patching the data to continue experience success in use.
Canvas App is a way to add alternating colors to a gallery that’s sourced from a Dataverse table. To do this, a new column needs to be added to the data source to store the sequential row number. This number can then be used with the Mod function to calculate the fill color of the gallery row. For example, if there is a “Demo Organizations” table, the “Item” property of the gallery can be modified and the “TemplateFill” property can be updated to make it work. However, patching the underlying data source won’t be possible since it won’t be the same data source.
Canvas App, Power Apps, Dataverse Table, Mod Function, TemplateFill