Android Question Creating Dynamic View from a Table

hibrid0

Active Member
Licensed User
Longtime User
Hi everybody, I try to make some views loaded from a table create on Excel.

My plan is show a form with a lot of labels, editboxes and buttons. In the table I try to define the text, text size, height, width and hint.
The user put the answer and then save to a Xls file.

The excel library has RowsCount, and with it I get the number of rows, but inside a for I compare with an IF if is button, label or edittext.
Then if I set a number in rowcount on "For i=1 to RowsCount -1" my test not crash, but I dont get all views.

How can I make it better?

I upload an small project.
suggestions, comments, improvements, and teasing are welcome

I making it in base of this:

https://www.b4x.com/android/forum/t...eved-from-a-database-php-mysql.48705/#content

Libraries Requiered:
https://www.b4x.com/android/forum/threads/read-write-excel-files-on-android.25632/
http://sourceforge.net/projects/jexcelapi/files/jexcelapi/2.6.12/jexcelapi_2_6_12.zip/download

jxl.jar from the last zip and copy to your B4A libraries.
 

Attachments

  • test-dynform1.zip
    16.3 KB · Views: 158
Last edited:

hibrid0

Active Member
Licensed User
Longtime User
Solved problem, the label, button and edittext array make more bigger, no more!!

For Sorex!
 
Upvote 0
Top