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
obrowse:moveColumn(ncolumns,npos,lrefresh)
-
- Posts: 605
- Joined: Thu Jan 28, 2010 9:11 pm
- Location: Steven Point, Wisconsin USA
- Contact:
Re: obrowse:moveColumn(ncolumns,npos,lrefresh)
It looks like the problem is because you have 5 frozen columns.
The eXpress train is coming - and it has more cars.
-
- Posts: 605
- Joined: Thu Jan 28, 2010 9:11 pm
- Location: Steven Point, Wisconsin USA
- Contact:
Re: obrowse:moveColumn(ncolumns,npos,lrefresh)
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
Thanks.
Frozen Left columns still appear to work
Code: Select all
oBrowSearch:setLeftFrozen({})
oBrowSearch:MoveColumn(3,6)
oBrowSearch:setLeftFrozen({1,2,3,4,5})