function moveColumn(oColumn, bNext) {
		var oTable = oColumn.getParent();
		var aVisibleColumns = oTable._getVisibleColumns();
		var iIndexInVisibleColumns = aVisibleColumns.indexOf(oColumn);
		var iTargetIndex;

		if (bNext && iIndexInVisibleColumns < aVisibleColumns.length - 1) {
			iTargetIndex = oTable.indexOfColumn(aVisibleColumns[iIndexInVisibleColumns + 1]) + 1;
		} else if (!bNext && iIndexInVisibleColumns > 0) {
			iTargetIndex = oTable.indexOfColumn(aVisibleColumns[iIndexInVisibleColumns - 1]);
		}

		if (iTargetIndex != null) {
			TableUtils.Column.moveColumnTo(oColumn, iTargetIndex);
		}
	}
/**
	 * Moves the given column to the next or previous position (based on the visible columns).
	 *
	 * @param {sap.ui.table.Column} oColumn The column to move to another position.
	 * @param {boolean} bNext If <code>true</code>, the column is moved one position to the right, otherwise one position to the left.
	 */
Moves the given column to the next or previous position (based on the visible columns).
@param {sap.ui.table.Column} oColumn The column to move to another position.
@param {boolean} bNext If true, the column is moved one position to the right, otherwise one position to the left.
Moves the given column to the next or previous position ( based on the visible columns ) . @param { sap . ui . table . Column } oColumn The column to move to another position . @param { boolean } bNext If true the column is moved one position to the right otherwise one position to the left .
function moveColumn(oColumn, bNext) {
		var oTable = oColumn.getParent();
		var aVisibleColumns = oTable._getVisibleColumns();
		var iIndexInVisibleColumns = aVisibleColumns.indexOf(oColumn);
		var iTargetIndex;
		if (bNext && iIndexInVisibleColumns < aVisibleColumns.length - 1) {
			iTargetIndex = oTable.indexOfColumn(aVisibleColumns[iIndexInVisibleColumns + 1]) + 1;
		} else if (!bNext && iIndexInVisibleColumns > 0) {
			iTargetIndex = oTable.indexOfColumn(aVisibleColumns[iIndexInVisibleColumns - 1]);
		}
		if (iTargetIndex != null) {
			TableUtils.Column.moveColumnTo(oColumn, iTargetIndex);
		}
	}
function moveColumn ( oColumn , bNext ) { var oTable = oColumn . getParent ( ) ; var aVisibleColumns = oTable . _getVisibleColumns ( ) ; var iIndexInVisibleColumns = aVisibleColumns . indexOf ( oColumn ) ; var iTargetIndex ; if ( bNext && iIndexInVisibleColumns < aVisibleColumns . length - 1 ) { iTargetIndex = oTable . indexOfColumn ( aVisibleColumns [ iIndexInVisibleColumns + 1 ] ) + 1 ; } else if ( ! bNext && iIndexInVisibleColumns > 0 ) { iTargetIndex = oTable . indexOfColumn ( aVisibleColumns [ iIndexInVisibleColumns - 1 ] ) ; } if ( iTargetIndex != null ) { TableUtils . Column . moveColumnTo ( oColumn , iTargetIndex ) ; } }
Moves the given column to the next or previous position (based on the visible columns).
Moves the given column to the next or previous position ( based on the visible columns ) .