Dears,
kindly we need to know if we can create/display the Tasks,Task lists in Smart UI?
if there were any instruction to follow or guide?
Regards,,
If there are Accepted Answers, those will be shown by default. You can switch to 'All Replies' by selecting the tab below.
They may appear in the Assignments widgets, if not you may have to create your own widget to show them. You can follow the appropriate SmartUI SDK package for your release to include them.
Alternatively, you can use a WebReport widget and develop in that instead.
Not OOTB. They can't be created and open in Classic UI. Implementing the support Tasks Lists in Smart UI would be rather a big task. I think that you'd better filing a FR at OT Support about it.
Clicking on a Tasks List will open a new window with Classic UI pointing to ?func=ll&objAction=BrowseTaskList. See csui/utils/classic.nodes/impl/core.classic.nodes in Smart UI SDK. If you wanted to overcome it, you could override the Classic UI preference by extending csui/utils/smart.nodes/smart.nodes and forcing the Task List to open in Smart UI:
{ equals: { type: 204 } }
But that would be only the beginning. The next step would be implementing CSNode for the subtype 204 in OScript that would represent Task List as a container to make it browsable in Smart UI. And the real work would come next - icon, object creation (both UI and REST API), custom commands and then continue with Task Group and Task.
Greg offered an alternative solution - instead of integrating Task List, Task Group and Task as new object types browsable in Smart UI, you can write WRs "Create Task List" and "Open Task List" and use them either in a new window (Classic UI) or a new perspective (Smart UI).
The Classic UI way would mean opening a new window when clicking on an a task list. The URL would be determined by extending csui/utils/classic.nodes/core.classic.nodes:
{ equals: { type: 204 }, sequence: 50, forced: true, urlQuery: function (node) { return { func: 'll', objAction: 'RunReport', objId: 12345, // the task list web report taskListId: node.get('id'), // the task list nexturl: location.href } } }
The Smart UI way would mean writing a new command using Smart UI SDK and registering it as a default action for the subtype 204 at csui/utils/defaultactionitems:
{ type: 204, signature: 'MyOpenTaskList' }
The new command would be similar to webreports/utils/commands/open.webreport, just executing a fixed web report id and taking the node id of the selected task list as a parameter. In addition, the subtype 204 would be forced to be opened in Smart UI as described in my previous comment.