web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Component Action Issues
Power Apps
Answered

Component Action Issues

(0) ShareShare
ReportReport
Posted on by 763 Super User 2024 Season 1

I am working on the creation of a component to help manage my application. The component is initialized with a table of items:

 

Table(
 // Amenities
 { // Nav Control Properties
 ItemKey: "amenity", ItemDisplayName: "Amenities", ItemIconName: "GiftBox",
 // Custom app management properties
 SortColumn: "AmenityName",
 SortDirection: SortOrder.Ascending
 },
 // Inventory Items (Header)
 {
 // Nav Control Properties
 ItemKey: "inspection", ItemDisplayName: "Inspection Items", ItemExpanded: true,
 // Custom app management properties
 ItemHeader: false
 },
 // Categories
 {
 // Nav Control Properties
 ItemKey: "category", ItemDisplayName: "Categories", ItemParentKey: "inspection", ItemIconName: "WebAppBuilderModule",
 // Custom app management properties
 SortColumn: "Title",
 SortDirection: SortOrder.Ascending
 },
 // Category Items
 {
 // Nav Control Properties
 ItemKey: "catItem", ItemDisplayName: "Category Items", ItemParentKey: "inspection", ItemIconName: "WebAppBuilderFragment",
 // Custom app management properties
 SortColumn: "AmenityName",
 SortDirection: SortOrder.Ascending
 },
...
) // Table

The above "Items" property for the component forces a Reset when changed.  The reset copies the table into a collection.

ClearCollect(
 ccolItems,
 Self.Items
);

 

The properties under Nav control properties are read-only. The properties under Custom app management properties can be updated as needed.

 

To perform the update I added a Custom Property defined as follows:

sperry1625_0-1691075788408.png

The GridSortColumn has the following code in it:

With(
 {
 curItem: LookUp(
 ccolItems,
 ItemKey = Key
 )
 },
 If(
 Not( IsBlank( curItem ) ),
 If(
 // Error: on '<>' in next line
 curItem.GridSortColumn <> SortColumn,
 UpdateIf(
 ccolItems,
 ItemKey = Key,
 {
 GridSortColumn: SortColumn
 }
 )
 );
 SortColumn, // Return passed in Sort Column
 "" // Return nothing if key not found
 )
)

I am getting an error in the above code. I put a comment above the line where I am getting the error.

sperry1625_1-1691076245701.png

I do not understand what '_Min' is in the above error.

I tried to setup GridSortColumn_SortColumn (passed property) with a default value, since it is optional. That code is:

LookUp( ccolItems, ItemKey = cgblItemKey, GridSortColumn )

I get an error here to that is just as helpful:

sperry1625_2-1691076511569.png

I have no idea what that means.

 

This was working at one point. It broke when I changed the Key parameter from Optional to Required. Even if I switch it back it still gives me the error.

 

Any thoughts or ideas would be helpful.

 

Thank you.

 

 

Categories:
I have the same question (0)
  • Verified answer
    sperry1625 Profile Picture
    763 Super User 2024 Season 1 on at

    I resolved this. I deleted the SortColumn parameter and recreated it for the property. The error went away and not everything is working.

     

    Thank you.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard