M micro Well-Known Member Licensed User Longtime User Apr 3, 2016 #1 Hi ScrollTo in a table It seems not to work Example: Code: Copy dim l as list = Array as String("a", "b", "c", "d", "e", "f", "g") dim i as int For i = 0 To l.Size - 1 'tlb3 is a ABMTable tlb3.AddRow(i, Array As String(l.Get(i))) Next tlb3.ScrollTo(l.Size - 1, True) This the error: "java.lang.NullPointerException at com.ab.abmaterial.ABMTable.ScrollTo(Unknown Source)"
Hi ScrollTo in a table It seems not to work Example: Code: Copy dim l as list = Array as String("a", "b", "c", "d", "e", "f", "g") dim i as int For i = 0 To l.Size - 1 'tlb3 is a ABMTable tlb3.AddRow(i, Array As String(l.Get(i))) Next tlb3.ScrollTo(l.Size - 1, True) This the error: "java.lang.NullPointerException at com.ab.abmaterial.ABMTable.ScrollTo(Unknown Source)"
alwaysbusy Expert Licensed User Longtime User Apr 3, 2016 #2 That's true. It does not work that way. In html you can scroll to a certain tag, so you have to use uniqueIDs for each row and then scroll to that ID (tags in html are strings, not starting with a number) tbl1.AddRow("uid" & i, r) And you have to refresh the table before you do a scroll (maybe even using a cellsubdelayed to the scroll?), as this works directly on the html in the browser so the html code must exist. Then you can do something like this tbl1.ScrollTo("uid" & lastNumber, true) Upvote 0
That's true. It does not work that way. In html you can scroll to a certain tag, so you have to use uniqueIDs for each row and then scroll to that ID (tags in html are strings, not starting with a number) tbl1.AddRow("uid" & i, r) And you have to refresh the table before you do a scroll (maybe even using a cellsubdelayed to the scroll?), as this works directly on the html in the browser so the html code must exist. Then you can do something like this tbl1.ScrollTo("uid" & lastNumber, true)
alwaysbusy Expert Licensed User Longtime User Apr 3, 2016 #3 Oh, and don't do ScrollTo() in BuildPage() as this is certainly impossible as the webpage is not even open in the browser. Do it in the WebSocket_Connected(). Upvote 0
Oh, and don't do ScrollTo() in BuildPage() as this is certainly impossible as the webpage is not even open in the browser. Do it in the WebSocket_Connected().
M micro Well-Known Member Licensed User Longtime User Apr 3, 2016 #4 alwaysbusy said: That's true. It does not work that way. In html you can scroll to a certain tag, so you have to use uniqueIDs for each row and then scroll to that ID (tags in html are strings, not starting with a number) tbl1.AddRow("uid" & i, r) Click to expand... I had already tried, but not work the same Upvote 0
alwaysbusy said: That's true. It does not work that way. In html you can scroll to a certain tag, so you have to use uniqueIDs for each row and then scroll to that ID (tags in html are strings, not starting with a number) tbl1.AddRow("uid" & i, r) Click to expand... I had already tried, but not work the same
alwaysbusy Expert Licensed User Longtime User Apr 3, 2016 #5 You did read my second post, yes? Just tried it in the demo app with tbl3 and it does work this way. Upvote 0
M micro Well-Known Member Licensed User Longtime User Apr 8, 2016 #7 Strange Alain in release mode not work, in debug it's ok. Why? Upvote 0
alwaysbusy Expert Licensed User Longtime User Apr 10, 2016 #8 You will need to provide me with something more (e.g. some code) because just tried it in the demo app and it made no difference if it was in debug or release mode. Both worked. So you must be doing something different. Upvote 0
You will need to provide me with something more (e.g. some code) because just tried it in the demo app and it made no difference if it was in debug or release mode. Both worked. So you must be doing something different.
M micro Well-Known Member Licensed User Longtime User Apr 10, 2016 #9 alwaysbusy said: You will need to provide me with something more (e.g. some code) because just tried it in the demo app and it made no difference if it was in debug or release mode. Both worked. So you must be doing something different. Click to expand... Ok work, my error. I started the not correrct version of release version. Thanks Upvote 0
alwaysbusy said: You will need to provide me with something more (e.g. some code) because just tried it in the demo app and it made no difference if it was in debug or release mode. Both worked. So you must be doing something different. Click to expand... Ok work, my error. I started the not correrct version of release version. Thanks