Moving CATEGORY tiles in CANVAS view. HELP!

2.94K 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]

jeffc Answered question October 30, 2023
0

I’ve been able to change Category positions on a canvas using:

|CANVAS_NAME::Table View 1|.rowTrayCategories.add(|MATRIX_1::Category_1|)
|CANVAS_NAME::Table View 1|.rowTrayCategories.add(|MATRIX_1::Category_2|)

|CANVAS_NAME::Table View 1|.filterTrayCategories.add(|MATRIX_1::Category_3|)
|CANVAS_NAME::Table View 1|.filterTrayCategories.add(|MATRIX_1::Category_4|)

|CANVAS_NAME::Table View 1|.columnTrayCategories.add(|MATRIX_1::Category_7|)
jeffc Answered question October 30, 2023
You are viewing 1 out of 1 answers, click here to view all answers.

Latest Questions