What I do not understand is the difference in the way a tableview behaves in the web client vs the smart client.
In the smart client the table is presented and the first record in the table (the top one of the first page). In the rowBgColorCalculation method the selected argument is "true" and the conditional code is entered which sets the colour to my highlight colour. For all the other rows the rowBgColorCalculation has the selected argument as false and the else part of my conditional block is entered which sets the row colour to some other colour than the high lighted colour. This is what I expected.
IN the web client only the else part of the conditional is entered (because the selected argument is false) therefore the row colour is set to the non-highlight colour (as I expected). The selected argument NEVER becomes true in the web client.
If this is the expected behaviour then please please put it in the documentation.
If, however, one has to programmatically set the selected record to the first one on the first page - how does one do that (e.g. during onShow event?).
I tried an experiment where I have a button in a footer area that gets the current selected record index, increments it and then sets the current selected record to this new value. I also have the icon showing the current record (as in the tip in a previous email). When in the web client I click on this I do get the icon to move to the next row, starting with the first row of the first page. However the selected argument never gets set true when the rowBgColorCalculation is called (BTW is there a way to debug a calculation as in single step?).
IN conclusion, it appears that I should set the "selected" row in web client to a highlight colour within the same method that I use to show the icon because there is no other way in the web client. Is this the way the web client should behave? Or is it this way due to a defect? (Sorry, that should read unimplemented feature ).
I think that what I want to do is to show the current selected record as if it were the same as the smart client "selected" behaviour. And know I need to know how to programmatically go to the next page when I move the current row icon down one past the page limit! (It never ends...).