Skip to main content

Notifications

Power Platform Community / Forums / Building Power Apps / First Comments are dis...
Building Power Apps
Unanswered

First Comments are displaying in empty row

Posted on by
I have here a form I want write a comments based on the data showing in the form with in two  text input boxes. 
now when I am typing first comment on opening of app it sitting in empty row of the data source that I have linked 
when ever I selected the data in the form viewer of the particular accounts in text inputs it should show comments related to the particular accounts and first comment should sit in related account as shown in form viewer 
  • Suggested answer
    Nandit Profile Picture
    Nandit 370 on at
    First Comments are displaying in empty row
     
    Do you have these Text Input boxes inside the form or outside? 
    If yes, then make sure the Item property of the form points to the Account you want to update, like this - 
    //If Account are in a Gallery
    Gallery1.Selected
    
    //Dropdown
    LookUp(YourDataSource, AccountName = Dropdown.Selected.Value)
     
    If these controls are outside the form and you're using a Patch function, then make sure you are not patching using Defaults(YourDataSource).
    Patch like this:
    Patch(DataSource, LookUp(DataSource, AccountName = AccountNameTextControl.Text), {
    
          Comments: TextInput.Text
    
    })
     
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
     

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Community Update Sept 16…

Power Platform Community Update…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 140,745

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,355

Leaderboard