[FREE] TableViewer - fully style customized to show table data

I clean all the assets but no results. I lunch companion whit V4 and no screen on the phone is visible, then i update the extension to V8 an magically the sceen shows the app without reconnect the companion. So i think is necessary to update all.

Ok i clear all the folder \edu.mit.appinventor.aicompanion3 and reinstalled the companion and everything goes fine. The V4 works too.
Sorry for the waste of time. tanks

1 Like

Hi All,

Here I am again, with a question: How to show an image within a TIMAI2' TableViewer? I mean, how to show an image converted this way:

which is saved in a SQLite table. The field in table is TEXT.

Thanks in advance,

  1. It is not my Tableviewer, it is @Kevinkun s.

  2. Can you confirm the value coming out of your sqlite database is a base64 string of an image ?

  3. The method for displaying images in Tableviewer is documented here:
    [FREE] TableViewer - fully style customized to show table data - #59 by TIMAI2

  4. Not tested but it should be possible to construct a datauri to display the base64string without having to convert it back to a file.

  5. Do you know the mimetype/filetype of the image in the base64 String (e.g. gif/jpg/png/webp) ?

Had a chance for a quick test on this, unfortunately, not working....

ref

Example datauri for a green square

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAABHNCSVQICAgIfAhkiAAAAQJJREFUeJzt0TENACEAwEB4AVhGOj+jgA53Cpp0jr3OION7HcDNkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYgyJMSTGkBhDYn4nEAJUHYu7ZQAAAABJRU5ErkJggg==

Image datauris work ok in a webviewer, so you could use a dynamic html table instead.

Meanwhile @Kevinkun might be able to fix this ?

[EDIT - aah - spotted the problem, will hopefully fix and report back soon]

Not a tableviewer issue at all (apologies @Kevinkun), but a bug in the list from csv table block (incorrect handling of single quotes and commas inside them). You have to directly build a table:

:smiley:

2 Likes

I am doing this:

But the table does not show the record. What am I doing wrong?

It looks like you are trying to reshape a table row by row, but you aren't accumulating the new rows in a fresh table.

By the way, there is a new advanced list block to wrap that kind of transformation.

1 Like

You are not making a list of lists, which is required.

1 Like

Ah ok, thanks!!

Yes, that's right!! I had to do this row by row because of two fields that I need to show as an image, as you can see in my blocks.

Great. Where do I find this?

Do you see a table with a single column of one record displayed now?

I see a table with headers only. But in the SQLite table, there are two records.

Now I've done the changes needed and it's ok!!! Thank you for all your help!!

3 posts were merged into an existing topic: About Base64Convertor with TableViewer

Companion does not load when I install any version of the extension. I tried cleaning the files in the main folder, uninstalling the application and reinstalling it, I tried all versions and nothing. What could be the problem? Is there any other Table View free extension that you recommend?

are you using other extensions? make an app with only this extension and test. and is it's working in apk?

I used several versions of your extension. It works in apk but not in Companion. When I remove the extension from the project, the Companion does load. I use Android 14, the update of August 5, 2024, in case that information is of any use to you. You can contact me by PV if you wish.

image
this is not my extension.
Check the first post and download the extension.

Ok brother