Hi,
I'm trying to achieve a dynamic inline table in Powerappps:
I have one list in SP and my goal is to show to users this list in Powerapps that they can edit, the challenge is: in this list sometimes some columns are empty so users want to see only columns with values, so to do that:
1- I extract "!Blank" columns headers from this list
2- I store the result in collection varColumnNames
// collect the table values
ClearCollect(
colTable1,
ShowColumns(
Filter(
'TDS-Source-Properties', 'TDS-Source-ID'.Value=SelectedTemplateID
),
"Title",
"Value",
"Unit",
"Standard",
"afterT_x00b0_",
"FiringT_x00b0_",
"T_x00b0_",
"Aa_Properties"
));
// get the column headers
ClearCollect(
varColumnNames,
Distinct(
Ungroup(
MatchAll(
JSON(
colTable1,
JSONFormat.IgnoreBinaryData
),
"([^""]+?)""\s*:"
).SubMatches,
"SubMatches"
), Value)
)
3- i get values of this list in a collection SelectedTDSSourceProperties
//Collection Properties for Selected Template
ClearCollect(SelectedTDSSourceProperties, Filter('TDS-Source-Properties', 'TDS-Source-ID'.Value=SelectedTemplateID))
4- Insert 2 nested gallery vertical and horizontal as you can see below
4- so I stuck here because I have no idea which formula to use to match the two collections depending on the current item I've tested lookup with filter but didn't work
Does someone have an idea? Or maybe another workaround
Thank's