Extracting data from a DataTable in Flutter - flutter

I've been experimenting with Flutter DataTables and everything works fine displaying a table.
However, I'm also looking to allow users to edit the table. I'm populating the table with textfields but am at a complete loss as to how to get tabular data back out of the table. Getting individual cell values isn't a problem, it's trying to get its row and column positioning that I'm unable to do.
Any suggestions?

Related

How to view data from specific column in postgresql

Hi I'm super new to postgresql and I am trying to view data from just one column of my table. However, all the things I've found online so far are about viewing all the content available in the table. Is there any way to view the entries of just one column?

How to programmatically create ListView based off SQLite query?

I have some code that allows the user to perform a search by selecting a few checkboxes. A sql query is then created based on what checkboxes are checked. (Up to 5 checkboxes)
The data is then queried against a sqlite data.
The issue is now how do i populate the data into a listview (not knowing how many columns there will be ahead of time (Could be anywhere from 1 to 5)
All the examples I"ve seen is where the listView is created and you know exactly how many colummns are going to be returned.
A previous posted suggested to query all the records and then use if statements to determine if the value is null then hide column.

Google Chart - DataTable inside a form

I have a table created with DataTable of Google Chart, which has a column with a drop-down list. In this way the user can set the proper value of a row.
I am working in Python and Flask and I can retrieve the request data correctly. The problem is that the table, given the amount of data, is showed in pages, each one with 20 rows. When I retrieve the request I get only those 20 rows, so I have no way to know what the user set in the other pages.
How can I get the values of all pages?
Moreover, I noticed that when I change page and then I go back, the table forgets the user changes, so I think I should be careful also to this fact.
Finally, I solved the problem by using a dictionary containing all the changes made to the table and updating the html string inside the table to keep the content updated.

Inserting rows in form datasource, insert is OK, rows are not visible

Basically, I want to insert rows in the form InventJournalTransfer. I added a menuitem button that calls a class which opens a dialog where I fill a WMSLocationId, then I loop on Inventsum table to get all ItemIds with Available qty for this WMSLocationId and insert them into InventJournalTrans Table.
The code I wrote seems to be working as I have correct records inserted in my table(visible in Table browser, correct journalId, linenum itemId, qty etc...) BUT the records inserted do not appear in my form. I tried to refresh my form with or without code, but my grid's still empty.
I had a look at the class InventCountCreate that does what I want to do in a different journal type, but as I'm quite a newbie it is difficult for me to understand exactly how this class works.
Could anyone explain to me how to display my inserted rows in my form or give other leads?
The InventJournalTrans is table is inner joined to two InventDim, one related via the InventDimId field, the other via ToInventDimId.
Both fields must be filled with a valid InventDimId to an existing InventDim record for the form to show the record.
Have you tried right-clicking on your form's node in the AOT and clicking "Restore"? Perhaps your form is still using cached data.

Regarding ADO.Net

I have fetched some 1000 records using data adaptor and displayed in the UI(DataGrid).
Now whenever user is changing the value in anyone of the row in the data grid, that
particular value has to be updated into database table. Currently i am dumping the entire
table again using adaptor.update. i dont want to do that...i just want to update only that
row..how can i achieve this .?? can anybody help regarding this ?
You can get and pass to adapter only changed rows by calling DataSet.GetChanges() or DataTable.GetChanges methods