* @param wbh WorkBookHandle
	 * @param sId Stream or cachid Id -- links back to SxStream set of records
	 * @return
	 */
	public Sxview addPivotTable( String ref, WorkBookHandle wbh, int sId, String tablename )
	{
		wkbook.addPivotCache( ref, wbh, sId );    // create the directory/storage for a pivot cache, if not already created
		// ensure the proper directory/storage and pivot cache record is created
		int zz = win2.getRecordIndex() - 1;
		while( zz > 0 )
		{
			if( ((BiffRec) SheetRecs.get( zz )).getOpcode() == NOTE )
			{
				break;
			}
			if( ((BiffRec) SheetRecs.get( zz )).getOpcode() == OBJ )
			{
				break;
			}
			if( ((BiffRec) SheetRecs.get( zz )).getOpcode() == DIMENSIONS )
			{
				break;
			}
			zz--;
		}
		zz++;
		// minimal configuration
		Sxview sx = (Sxview) Sxview.getPrototype();
		SheetRecs.add( zz++, sx );
		SheetRecs.addAll( zz, sx.addInitialRecords( this ) );
		sx.setTableName( tablename );
		wkbook.addPivotTable( sx );    // add to lookup
		return sx;
	}