ecl-logo Documentation

AddFavoriteObject

AddFavoriteObject[targetObjects, folder]Null

creates a favorite object for the object or model specified by the user inside provided folder.

Details

  • This is used in the Command Center to keep track of objects marked as favorites by user.
  • If folder already contains the target object then it appends authors list if it is a different user than from existing authors list.
  • If folder does not contain the target object, then it create a favorite object and adds to the folder.
  • This information will be used to display information in favorite dashboard.
  • Input

Examples

Basic Examples  (1)

Add object to an empty folder as favorite:

Additional Examples  (5)

Add object to a folder where authors list on the favorite object already has the user:

Add object to a folder where there exists some favorite objects with different target object:

Add object to a folder which already has that object but by a different author:

Add object to an empty folder as favorite and verify that Lab Notebook is propagated:

Make sure objects of type Object.Favorite are not marked favorite: