Page 1 of 1

obrowse:moveColumn(ncolumns,npos,lrefresh)

Posted: Fri Jan 15, 2016 8:03 am
by Cliff Wiernik
I have been using this for a while but now I want to make some changes and am having some difficulties understanding how to make it work.

Array browse 13 columns, freezeleft {1,2,3,4,5}

First step, move column 6 right 3 columns, so the first unfrozen column 6 becomes column 9 with column 7-9 becominbg 6-8.
oBrowse:moveColumn(3,6)

However, I see column 6 moving to 11.

Move that new column 9 back to its original location, from position 9 to 6 making column 6-8 becom 7-9
oBrowse:moveColumn(-3,9)

However, I see column 13 becoming column 11 and 11 and 12 becoming 12 and 13

Am I missing something here.

Cliff

Re: obrowse:moveColumn(ncolumns,npos,lrefresh)

Posted: Fri Jan 15, 2016 8:13 am
by rdonnay
It looks like the problem is because you have 5 frozen columns.

Re: obrowse:moveColumn(ncolumns,npos,lrefresh)

Posted: Fri Jan 15, 2016 8:54 am
by Cliff Wiernik
So, would this be correct. It appears to work with this example, just need to test the other instances, but I am unfreezing and refreezing the left columns to the column move works properly.

Frozen Left columns still appear to work

Code: Select all

         
oBrowSearch:setLeftFrozen({})
oBrowSearch:MoveColumn(3,6)
oBrowSearch:setLeftFrozen({1,2,3,4,5})
Thanks.