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 / Update current item ba...
Power Apps
Answered

Update current item based on datacard text input

(0) ShareShare
ReportReport
Posted on by 22

My app allows used to handoff tools to another employee.  On the Mytools screen they can click a button in the gallery which executes the following code;

 

Navigate('Tool Handoff',ScreenTransition.Cover);
Set(Handoffview,true);
Set(HandoffDamageItem,ThisItem.DENumber)

The Tool Handoff screen as a form which filters items as below;

LookUp(EquipmentV2S,DENumber=If(Handoffview,HandoffDamageItem,"99999")) 

This displays the information for this tool and allows the user to select another employee to assign the tool to using a dropdown list.  The Update button on this form executes the code below;

Patch(EquipmentV2S,LookUp(EquipmentV2S,DENumber=DataCardValue1.Text),{FullName:DataCardValue31.Selected});
Navigate(MyTools);
Set(Handoffview,false);

You can also navigate to the Tool Handoff screen from the main menu.  I would like to allow the user to manually type a tool number into DataCardValue1 and have the Tool Handoff screen update to display the data for this tool and allow the user to select another employee to hand off the tool too.

 

I cant figure out how to update the displayed item based on the input from the datacard.

 

Any advice would be appreciated.

Categories:
  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Dsull 

     

    On the main screen, I believe you have text control to user enter and a button to navigate to the handoff screen.

     

    So Set the Onselect property of the button click to

     

    Set(Handoffview,true);
    Set(HandoffDamageItem,TextcontrolName.Text)
    Navigate('Tool Handoff',ScreenTransition.Cover);

     

    Note: Update the TextControlName to your control

  • Dsull Profile Picture
    22 on at

    @StalinPonnusamy Thanks for the response.  The navigation from the main screen is through a menu only.  There is no Textcontrol from the main page to utilise.

     

    I would like the user to enter the DENumber on the Tool handoff page then update the item to filter for that DENumber.  I have since tried adding a button for the user to select to process the input, however i cant get it to execute the filter at form level.

  • Dsull Profile Picture
    22 on at

    @StalinPonnusamy 

    Update on my progress, i got it to work by using your code suggestion inserted in the ONSelect function of a button that is hosted on the Tool Handoff page parent form.

     

    Thanks for the help.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard