Show SQLite data in a WebView HTML table - java

I'm writing an Android app (4.2 and above) to return the details of an item from a location on a warehouse shelf.
The locations are fixed as an id for each cell of a HTML table. For example, the centre location has id="0,0". The HTML table is called from a WebView and will act as the GUI for the app. As such, I have three questions:
How can I get the HTML table to dynamically show the item for the corresponding record from the SQLite database?
How can I show the items on different shelves?
How would I make the cells selectable so that I can see further information about an item?
After a lot of searching, I've found posts on how to do this in Python, PHP and C, but nothing much in the way of doing it using Java/JavaScript.
As this is my first question, please let me know if you require any additional information. Cheers!

Related

How to add the data from each field to Text views?

How can I read a single row from a sqlite database in android studio and put the data from each field in separate TextViews? E.G: Name in one text view, last name in another and so on.... So far the tutorials I have seen used recycler views and such because they are viewing multiple rows of the database, not just one....
I am quite new to this so please be as detailed as possible...Thanks!

Java ADF "showPrintablePageBehavior"

I currently have many rows on a table that load as a user scrolls down the page.
There is a showPrintablePageBehavior tag added to create a printable layout page upon clicking that will show the contents on the table. Currently, it only shows 25 or so rows at a time.
I am trying to figure out how to display every row on the new page once the button is clicked.
Is there anything I can add to the <af:showPrintablePageBehavior/> tag or the af:commandToolbarButton tag that could help transfer all the rows over? I know fetchSize may be an option, but I'm not sure how to implement that in.
Thank you!
To my knowledge, the showPrintablePageBehavior will not trigger a server go around. This means that you need to build another page where you fetch all data (set the fetchsize to -1) and print this. This blog https://myadfnotebook.blogspot.com/2011/01/adf-printable-pages-fetching-more-data.html shows how to do this.

Is there another FXML element that acts like TableView?

I'm trying to make a shopping cart Program using Javafx, however when using a database to display things such as name, price, picture, etc, I get stuck because there is certainly a very easy way to do this using TableView.
But in a real world application, items are displayed in a sort of Block that has a thumbnail, price, and other information about the product.
What can I use to take data from a database, and be able to add/display that information?
I know I can simply take make an anchor pane, with an imageView, a label that will take information queried from a DB, and I can do it that way, but with a tableView it's a simple ObservableList that can iterate through every item in a DB and display it, how can I do that with something other than TableView?

Android autosized Table with autofilled cells?

I'm currently working on an App which should display a table of data. The data shown depends on the user's choices. I want to implement this table which should be autosized and scrollable, but I can't figure out how I could do that using a loop. Maybe you guys can help me by just giving me an example of how to implement such a table, maybe even with the specified data which the user chose in the first place.
PS: The things the user can choose are e.g. date, subject and teacher, so the table has 3 columns (subject, teacher, date). I have implemented this choice already using the jexcelAPI and an xls document, the only thing I need to do now is to implement the table to show the results.
Thanks in advance :)
you can actually complete your task using listview in andriod.And you will load the list of items displayed using baseadapter.

Android - How to show list data without scrolling

This is my application require :
- Get data from a server (JSON)
- Show all data report like image above. Data will display as multi page ( do not scroll), use next and previous button to switch
See how I want:
I can get data from server and show data as listview. But I have some problem and need help.
1. How to display data like image I attached. I found some way but seem it is not good
2. How to display data as multi page. I do not know exactly how much data because it depend data on Server, i have to show all data on server. Pages should auto generate depend on data.
Thanks you.
Simplest way to do it would be to create three datasets (let's say arraylists) and keep previous page data in one and current and future in the next one.
Then put an onClickListener that changes the data in listviews and then notify adapter using .notifyDatasetChanged().
This is not an default Android Behavior, So Please do not follow this design. Better to use Load More Functionality :)
You can refer links for that.
ListView to load more items when reached to an end
LoadMore library
Infinite Scroll ListView

Categories

Resources