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 / Dataset control: Prope...
Power Apps
Unanswered

Dataset control: Property bound to form attribute is not populated

(0) ShareShare
ReportReport
Posted on by 113 Most Valuable Professional
I have created a dataset control. I would like to filter the content of this control based on a form property.
So I created a new property of type input and in the form designer, I bound this property to an attribute.
When the control code is executing, this property is always undefined.
Is that expected?
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    HI @TanguyT 

     

    Can you please share more details about your edit form and the value you are expecting in the newly added text input control?
  • Tanguy TOUZARD Profile Picture
    113 Most Valuable Professional on at
    What I want in the end is my dataset control displays only related records that respect a condition based on a form attribute value.
    So I created a property of type “input” (not in the dataset, but in the control) and was expecting that I can bind it to a form attribute. I can actually but the value is never set in the property.
    For example, I have bound this property with attribute “name” on Account form. I am expecting that this property contains the name of the account when it is rendered. Unfortunately, the name of the account is never available and the property is always undefined
    So I cannot filter my dataset display
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    HI @TanguyT 

     

    I carried a simple test on my side and I am able to filter out the results based on the item selected in Edit Form. Please refer to below expression and the screenshot.
     
    Expression: 
    Filter(TestList,Title = DataCardValue3.Text)
    Here, TestList is my SP list with a column Title and I have mapped it to value inside the edit form.
     
    Please make sure you are referring to correct control inside the form. 
    MicrosoftTeams-image (138).png

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Tanguy TOUZARD Profile Picture
    113 Most Valuable Professional on at
    I guess you did not notice that I’m talking about Powerapps Components Framework.
    Nothing to do with canvas apps
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Oh Yeah! My bad. Apologies for the confusion.

  • Tanguy TOUZARD Profile Picture
    113 Most Valuable Professional on at

    Anyone from PCF team?

  • Ben Thompson Profile Picture
    1,400 on at

    I'm not the PCF team but I can say that I've not been able to get a field value bound to a dataset control. 

     

    What I've ended up doing was using a webapi request to retrieve the value from the form that way ( you need to read the dataset to get the entity and (context.mode as any).contextInfo to get the guid of the record the grid is on.

  • Tanguy TOUZARD Profile Picture
    113 Most Valuable Professional on at
    That might do it but the contextinfo.entitytype gives me the name of the related entity instead of the parent entity. So I can’t use web api since i don’t know what entity to query
  • AnqiChen Profile Picture
    Microsoft Employee on at

    hi Tanguy,

     

    For functionally realize what u need, the dataset results will be updated based on an attribute(lookup attribute) change, it's more like the quick view form scenario and Dynamics do have a OOB way for this

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/customize/create-edit-quick-view-forms

    You could create a quick view form and have the subgrid on it. Then the subgrid should listen to the quick view form's bound lookup value update.

     

    Regarding PowerApps Component Framework solution,

    Please note, a control with a bound property and a <data-set> is treated as a field control, not a data-set control.

    But even it's a field control, I guess you could have <data-set> as 2nd propery and do request and render. Visually it should be similar to a traditional data-set control

  • Tanguy TOUZARD Profile Picture
    113 Most Valuable Professional on at

    It does not have to be a lookup. It could be any type of attribute eventually.

     

    Let's say I want to display only records that have the same optionset, boolean or string value on both entities.

     

    For example, display only records that have the optionset category set to 'Business' if the parent record is set to 'Business' too.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard