Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Dynamic editable table

(0) ShareShare
ReportReport
Posted on by 37

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

hackondor_0-1622108209101.png

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

 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard