04-24-2020, 06:13 PM
The versioning of files on an sobject is controlled by the "context" column. If you check two files in with the same context, they will be grouped together as versions. While the "context" can any string of characters, there are two have built-in significance, "icon" and "publish".
I will admit that the following is how I remember it ... it's been many many years since I've looked at this code specifically, so I hope I am correct.
The preview widget will cascade snapshots to find a icon until it comes across one it can use.
1) It first looks at the "icon" snapshot.
2) If no "icon" snapshot is found, it will look for "publish" snapshot
3) If no "publish" snapshot is found, use the latest snapshot for that sobject
What this means is that you can check in your image into the "icon" context and that will be the one displayed as the preview regardless of what other files are checked into the sobject (in your case task).
On the interface, if your click the right mouse button on any row, you will see two menu items (Change Preview Image and Check in new file). They check into the "icon" and "publish" context respectively. Of course you can check in any number of files with any number of contexts into an sobject.
Hope this helps.
I will admit that the following is how I remember it ... it's been many many years since I've looked at this code specifically, so I hope I am correct.
The preview widget will cascade snapshots to find a icon until it comes across one it can use.
1) It first looks at the "icon" snapshot.
2) If no "icon" snapshot is found, it will look for "publish" snapshot
3) If no "publish" snapshot is found, use the latest snapshot for that sobject
What this means is that you can check in your image into the "icon" context and that will be the one displayed as the preview regardless of what other files are checked into the sobject (in your case task).
On the interface, if your click the right mouse button on any row, you will see two menu items (Change Preview Image and Check in new file). They check into the "icon" and "publish" context respectively. Of course you can check in any number of files with any number of contexts into an sobject.
Hope this helps.