Moving CATEGORY tiles in CANVAS view. HELP!

2.23K viewsScripting
0

Hello,
Working with a matrix table where I move category tiles via a script. The code works great… BUT I have been trying to change it to where i move category tiles in a CANVAS and have had ZERO LUCK. Is that even possible?

Thank you in advance,
Andy

Canvas Name = Canvas1
Table Name = Table View 1

[code:3eu6fulw]set = |FCST_SETTINGS|

catA = |FCST_SETTINGS::DATE|
catB = |FCST_SETTINGS::WEEK|
catC = |FCST_SETTINGS::MONTH|
catD = |FCST_SETTINGS::GEOGRAPHY|
catE = |FCST_SETTINGS::ITEMS|

def String setbuild = |MASTER_MENU::Calendar Build:Select|.value

if (setbuild == "DAILY")
{
set.getFilterTrayCategories().addAt(0,catB)
set.getFilterTrayCategories().addAt(1,catC)
set.getColumnTrayCategories().addAt(0,catA)
set.getRowTrayCategories().addAt(0,catD)
set.getRowTrayCategories().addAt(1,catE)

//|FCST_SETTINGS|.bringToFront()
}
else
if (setbuild == "WEEKLY")
{
set.getFilterTrayCategories().addAt(0,catA)
set.getFilterTrayCategories().addAt(1,catC)
set.getColumnTrayCategories().addAt(0,catB)
set.getRowTrayCategories().addAt(0,catD)
set.getRowTrayCategories().addAt(1,catE)

//|FCST_SETTINGS|.bringToFront()
}
else
if (setbuild == "MONTHLY")
{
set.getFilterTrayCategories().addAt(0,catA)
set.getFilterTrayCategories().addAt(1,catB)
set.getColumnTrayCategories().addAt(0,catC)
set.getRowTrayCategories().addAt(0,catD)
set.getRowTrayCategories().addAt(1,catE)

//|FCST_SETTINGS|.bringToFront()
}[/code:3eu6fulw]