11-14-2019, 03:05 PM
Do you want a different icon for every task or do you want associate a task with a set of icons.
Both are possible. The standard "preview" column, which you can add with the column manager on any table (task table included), will show a thumbnail of a file associated with that row (in your case a task). This column will either file which explicitly set as the thumbnail or it will show an icon of a file that is checked into the task. You can check-in a file simply by dragging onto the row in the table. As well, you can use the context menu to upload a file to that row. This will associate a separate file for each task, which is what I think you are asking for.
As for associating from a list of files, you can create an stype which will contain a list of the icons and you can create a column in the task view that shows an image related in the way of your choosing. If you connect this stype to the task table in the schema, you can use the preview widget using the "redirect_expr" option. You could use a custom layout for that, however, that may not be fast if you are looking at many many rows or tasks. You could further improve that by creating a custom column in python which preassociates the icons with the sobjects in memory (this is what the preview column actually does).
Both are possible. The standard "preview" column, which you can add with the column manager on any table (task table included), will show a thumbnail of a file associated with that row (in your case a task). This column will either file which explicitly set as the thumbnail or it will show an icon of a file that is checked into the task. You can check-in a file simply by dragging onto the row in the table. As well, you can use the context menu to upload a file to that row. This will associate a separate file for each task, which is what I think you are asking for.
As for associating from a list of files, you can create an stype which will contain a list of the icons and you can create a column in the task view that shows an image related in the way of your choosing. If you connect this stype to the task table in the schema, you can use the preview widget using the "redirect_expr" option. You could use a custom layout for that, however, that may not be fast if you are looking at many many rows or tasks. You could further improve that by creating a custom column in python which preassociates the icons with the sobjects in memory (this is what the preview column actually does).