Hi community,
I want to create a component that creates a table for me and returns it. I've created a new property with the Type output and the data type table. In this I try to create a new table with the patch function.
e.g
Hi @tbeimel ,
Please enable Enhanced Component Properties from settings of your Power App.
If this is the answer for your question, please mark the post as Solved.
If this answer helps you in any way, please give it a like.
Thanks!
Hi @gcmfaizan,
Thanks for your reply. However, I get the following message on Patch():
Behavioral function in a non-behavioral property. This property can't be used to change values elsewhere in the app.
Hi @tbeimel ,
Try to pass the Datasource name by using the input property type table.
for example:
Component Name is: AlfaComponent
Input Property Name: IP_newRessourcename (Type text)
Input Property Name is: IP_TableName (Type is table)
Output Property Name: Op_TablePatch
Create a sample table in IP_TableName don't forget to add your column name "Ressourcenname"
Now write your Patch query like this:
Patch(
AlfaComponent.IP_TableName,
Defaults(AlfaComponent.IP_TableName),
{Ressourcenname: AlfaComponent.IP_newRessourcename}
)
When you add this component to your screen in IP_TableName property pass your actual table name and in IP_newRessourcename pass the dynamic value. Please make sure Ressourcenname column name must exist in your actual table.
If this is the answer for your question, please mark the post as Solved.
If this answer helps you in any way, please give it a like.
WarrenBelz
85
Most Valuable Professional
Michael E. Gernaey
65
Super User 2025 Season 1
mmbr1606
55
Super User 2025 Season 1