Hi Everyone,
Does anyone encounter errors on a custom component using a table/record custom property as input and output?
To explain my situation simply, I have a custom component with a table/record custom property (input) with lots of columns with different data types. But once I use the component on my main screen, the values of some columns get mixed up.
For example:
I created a custom component called Component1 with a input record property Record1 - (column names: Column1(text), Column2(text), Column3(text), Column4(text) and Column5(text)).
After creating, I inserted Component1 on my main screen and assigned values to the Record1 property as seen below:
{Column1: "one", Column2: "two", Column3: "three", Column4: "four", Column5: "five"}
So the problem begins when I tried to access this property on other components.
When getting the value of Component1.Record1, it returns something like this:
ColumnName | Column1 | Column2 | Column3 | Column4 | Column5 |
Value | "two" | "two" | "three" | "four" | "three" |
Am I doing something wrong?
I will really appreciate it if someone knows the solution to this problem since I want to use custom components as much as possible to make my app clean and efficient.
Thank you!
Solved! Go to Solution.
Your problem is that you are setting the signature of the Input record in your component with a column called "ColumnName".
I am not sure of your exact definition in the input property for your component, but based on what you look like you are trying to do, your input property on the component (and I am referring to the default property value that you assign IN the component design) should be:
Table({Column1: "one", Column2: "two", Column3: "three", Column4: "four", Column5: "five"})
When you provide a value for that property IN the app itself, you should use that same schema, or else you will get results like you are seeing.
I hope this is helpful for you.
Your problem is that you are setting the signature of the Input record in your component with a column called "ColumnName".
I am not sure of your exact definition in the input property for your component, but based on what you look like you are trying to do, your input property on the component (and I am referring to the default property value that you assign IN the component design) should be:
Table({Column1: "one", Column2: "two", Column3: "three", Column4: "four", Column5: "five"})
When you provide a value for that property IN the app itself, you should use that same schema, or else you will get results like you are seeing.
I hope this is helpful for you.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
187 | |
70 | |
49 | |
36 | |
25 |
User | Count |
---|---|
239 | |
111 | |
89 | |
88 | |
66 |