KeripikKentanx New Member Apr 2, 2024 #1 Hi everyone, is there any example to insert AnotherProgressBar in b4xTable I've tried to modified this sample scripts and change it with AnotherProgressBar but it still doesn't work error logs : java.lang.ClassCastException: anywheresoftware.b4a.BALayout cannot be cast to android.widget.ProgressBar Thanks In Advance
Hi everyone, is there any example to insert AnotherProgressBar in b4xTable I've tried to modified this sample scripts and change it with AnotherProgressBar but it still doesn't work error logs : java.lang.ClassCastException: anywheresoftware.b4a.BALayout cannot be cast to android.widget.ProgressBar Thanks In Advance
Andrew (Digitwell) Well-Known Member Licensed User Longtime User Apr 2, 2024 #2 Can you provide the code that is not working? Upvote 0
KeripikKentanx New Member Apr 3, 2024 #3 Sorry for the mistake, this is the sample code, please help Attachments test.zip test.zip 12.1 KB · Views: 248 Upvote 0
Andrew (Digitwell) Well-Known Member Licensed User Longtime User Apr 3, 2024 #4 Ok, here is a solution. 2 changes. check for size of panel when creating the progress columns. You only have 15 rows of data and 20 rows in your table the last rows are empty and hence have 0 size. You need to be careful when accessing custom views using designer utils. as described here: https://www.b4x.com/android/forum/threads/b4x-dse-designer-script-extensions.141312/post-895744 , the actual object is contained in the tag. Attachments solution.zip solution.zip 11.8 KB · Views: 239 Upvote 1
Ok, here is a solution. 2 changes. check for size of panel when creating the progress columns. You only have 15 rows of data and 20 rows in your table the last rows are empty and hence have 0 size. You need to be careful when accessing custom views using designer utils. as described here: https://www.b4x.com/android/forum/threads/b4x-dse-designer-script-extensions.141312/post-895744 , the actual object is contained in the tag.