How can I move or toggle the filter panel docking from the right to left side of the page using IronPython?


I'm trying to move the filter panel from the right side of the page to the left side of a page through scripting in Spotfire. I know it's possible but I can't get the code to work - I'm missing something somewhere (I find the Spotfire API documentation incredibly frustrating and confusing - I'm no python expert but I can usually figure this stuff out).

This is what I have so far:

import Spotfire.Dxp.Application.PanelCollection
from Spotfire.Dxp.Application import PanelTypeIdentifiers
from Spotfire.Dxp.Application import Panel
from Spotfire.Dxp.Application.Filters import FilterPanel
from Spotfire.Dxp.Application.Layout import PanelRegion, DockingPlacement

#This works - it shows that the current region is "Right"
print Document.ActivePageReference.FilterPanel.DockingPlacement.Region
#I get an error that "DockingPlacement" object has no attribute region. Ive tried numerous variations of this
Document.ActivePageReference.FilterPanel.DockingPlacement.Region = "Left"


I feel like the answer is probably easy and I'm just missing one or two key pieces. Thanks!

(1) Answer