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

[Feature request]
Sticky header row

found this:

but requires a th row.

Tried with tr:nth-child(1) but nothing happened

1 Like

Some blocks for table styling (there are 8columns, 5 to scroll to....

image

2 Likes

Thank you Tim, solved with

1 Like

With these blocks I can set the selected cell background color, how can I restore the previous color after selecting another cell? I can save row and col but the color ?

would the original colour be known, e.g. the one you set when drawing the table ?

v2 is coming, pls check first post.

now is possible. it looks like th is not necessary, but thead is.
I have add a sample at 1st post.

now it's possible to remove the style you already setup last time, just to set the value to "" (empty string) using SetStyle block, then ShowTable.

2 Likes

i can't show my table in the table viewer


@KhuBann

now "Index: 7, Size: 7
Note: You will not see another error reported for 5 seconds."

show your blocks pls,and the data to display, and are you using v2?

Opera Captura de pantalla_2022-10-11_022250_ai2.appinventor.mit.edu

and this text

and yes, i'm using v2

a picture of data can not help me a lot to debug.
please copy the data to a txt file and upload.
Have you tested other data?

yep, i try with another table but nothing, and idk how save my data in txt, but my data is...

"id,usuario,clave,nombre,apellido,correo,telefono
1,juan,123456,Juan,García,juanitogarcia@gmail.com,5555555", in my new try

Tested this data, it's working at my side.
image
image

Proyecto_N2.aia (146,7 KB)
please, look at my project, I can't find where the error can originate from

OK I think I know where is the problem.
it's your data. not all row have the same length.
image
you need to change your data with same length of every row.
for example,

11,,,,,,
12,,,,,,
13,admin2004,esteban1,Esteban,Morales,khubann01@gmail.com,938832884

These blocks run well with version 1, but with version 2 the table does not appear.

You need to use the ShowTable method block !

runtime error

Check your data, your csv rows are not all the same length, or something similar

or you do not set the table to have a header row?

1 Like