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 / Change datatable using...
Power Apps
Answered

Change datatable using a Text Input

(0) ShareShare
ReportReport
Posted on by 28

I am trying to create a dashboard/screen whatever is called using PowerApps where I need to have a text input where the user will punch in a number and that number will be written and update a DataTable also existing in the dashboard/screen.

 

Could someone help as I am still new with PowerApps and couldn't find much about this?

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @stavrinio85,

    You do not have enough information here to provide an answer to your question.  Every PA must have a data source provided through a connector.  Are you using a sql table, a Sharepoint list, a CDS entity or some other connector for your PA.  Once you have identified a data source, are you attempting to add a new item to the data source on the Dashboard screen?  Are you attempting to supply a password to open the datasource? Are you limiting the items to be shown by the individual signing in?  Finally, have you reviewed the templates provided by Powerapps and does one of them suit your needs?

  • stavrinio85 Profile Picture
    28 on at

    Currently, I am just using an excel file with the data inside as I am trying to still learn the tool.

    The table includes a single column and a single row with one value which I want to update every time I enter a value in the text input I created on the screen.

     

    Sorry if I didn't provide all the necessary details.

    As I mentioned earlier I am new with Powerapps.

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @stavrinio85,

    As an experiment and to let Powerapps do all the work for you, I suggest that you save your Excel file in either OneDrive or Dropbox.  Make sure that the spreadsheet is formatted as a table. It is not required but it is also good practice to have an ID column that is a series of consecutive integers for every table. It is likely at some point that you will use this in another table to reference your data. Then , please go to web.powerapps.com and sign in, select the Start from Data option -  Make this App.  Then if it is in Onedrive, pick that option and find Excel file, Choose the table.  If it is Dropbox, click on the > sign and Add a new Connector, then choose DropBox, find your Excel file and choose the table.  Powerapps will do the rest.  Play around with the app and if you have further questions, please come back. 

  • stavrinio85 Profile Picture
    28 on at

    @Drrickryp,

     

    We cannot use OneDrive or Dropbox to save the files as it is restricted by our policy.

    I am currently just using the excels with tables which I have included the ID column but still the same behavior.

    I tried using updatecontext , patch, set functions unsuccessfully.

     

    It seems that the dataset doesn't see the textinput value and thus its not changing.

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @stavrinio85,

    Could you please share a bit more about your app?

    Further, could you please share more details about the formula you provided within your app?

    Based on the needs that you mentioned, I think it is not necessary to add extra columns within your Excel table. I think a Timer control could achieve your needs.

    You could consider take a try to put your Excel file within a File system on your local machine, then create a connection to your File System (File system on your local machine) from your app.

    More details about creating a connection to a File System connector, please check the following article:

    https://docs.microsoft.com/en-us/connectors/filesystem/

    I have made a test on my side, please take a try with the following workaround:12.JPG

     

    13.JPG

    Set the Repeat property of the Timer control to following:

    true

    Set the AutoStart property of the Timer control to following:

    true

    Set the Duration property of the Timer control to following:

    1000

    Set the OnTimerEnd property of the Timer control to following:

    Patch(
    Table1,
    First(Table1),
    {
    ColumnValue: TextInput1.Text
    }
    )

    In order to invisible the Timer control, please set the Visible proeprty of the Timer control to following:

    false

    Set the Items proeprt of the Data Table control to following:

    Table1

    The GIF screenshot as below:Test1.gif

     

     

     

    Best regards,

    Kris

  • stavrinio85 Profile Picture
    28 on at

    That is great thank you very much, just a question before starting to test this scenario presented above.

    You mentioned to setup the folder i have the files in as:

     

    You could consider take a try to put your Excel file within a File system on your local machine, then create a connection to your File System (File system on your local machine) from your app.

    More details about creating a connection to a File System connector, please check the following article:

    https://docs.microsoft.com/en-us/connectors/filesystem/

     

    Can you please advise why and how this is done in essence.

    Tried to follow the steps from your url but don't really have a link with Powerapps and how this will be therefore used.

    Do i need to do anything more with the textinput element?

  • stavrinio85 Profile Picture
    28 on at

    Also the first parameter for the Patch gives back an error saying that it should be a collection

  • stavrinio85 Profile Picture
    28 on at

    I have included the table2 as it is on my screen to be included into a collection1 and i have placed collection1 in the formula you provided.

    The formula still doesn't work though.

  • stavrinio85 Profile Picture
    28 on at

    I can see in the Collection1 though that the value i enter in the textinput1 is captured multiple times (based on how many times the timer has run) .

    How do i move that collection into the datatable and update its value?

  • stavrinio85 Profile Picture
    28 on at

    Untitled.png

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 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard