10-30-2019, 09:07 AM
Here I find some codes in tactic-setup.pdf
in page 155~156
The following example illustrates a Gantt Widget that shows all tasks for a project, the schedule for all asset tasks, and the
schedule for all shot tasks.
but I can't run these code in the custom layout.
shows error:
TACTIC has encountered an error.
Reported Error: "'NoneType' object has no attribute 'get_base_search_type'"
So, How should I do?
here is the code.
in page 155~156
The following example illustrates a Gantt Widget that shows all tasks for a project, the schedule for all asset tasks, and the
schedule for all shot tasks.
but I can't run these code in the custom layout.
shows error:
TACTIC has encountered an error.
Reported Error: "'NoneType' object has no attribute 'get_base_search_type'"
So, How should I do?
here is the code.
Code:
<element name="task_schedule">
<display class="tactic.ui.table.GanttElementWdg">
<options>[
{ "start_date_expr": "@MIN(sthpw/task.bid_start_date)",
"end_date_expr": "@MAX(sthpw/task.bid_end_date)",
"color": "white",
"edit": "true",
"default": "true"
},
{ "start_date_expr": "@MIN(sthpw/task["search_type", "~", "asset"].bid_start_date)",
"end_date_expr": "@MAX(sthpw/task["search_type", "~", "asset"].bid_end_date)",
"color": "red",
"edit": "true",
"default": "false"
},
{ "start_date_expr": "@MIN(sthpw/task["search_type", "~", "shot"].bid_start_date)",
"end_date_expr": "@MAX(sthpw/task["search_type", "~", "shot"].bid_end_date)",
"color": "blue",
"edit": "true",
"default": "false" }
]</options>
</display>
<action class="tactic.ui.table.GanttCbk">
<sobjects>@SOBJECT(prod/shot.sthpw/task)</sobjects>
<options>[
{ "prefix": "bid",
"sobjects": "@SOBJECT(sthpw/task)",
"mode": "cascade"
},
{ "prefix": "bid",
"sobjects": "@SOBJECT(sthpw/task["search_type", "~", "asset"])",
"mode": "cascade"
},
{ "prefix": "bid",
"sobjects": "@SOBJECT(sthpw/task["search_type", "~", "shot"])",
"mode": "cascade" }
]</options>
</action>
</element>