UserWorkFavorites

Collection elements:

UserWorkFavoritesItem
Iteration through collection using For each ... In ... Do operator is available to object. Favorites items are retrieved during iteration.
Access to favorites item is possible using [...] operator. Index (starting from 0) is passed as an argument.

Methods:

Add
Clear
Count
Delete
Get
IndexOf
Insert

Constructors:

Default

Description:

Controls (obtains and sets) the favorites for an infobase user. You can obtain and save it in the settings using SystemSettingsStorage.
The settings are stored in the system settings: Common/UserWorkFavorites.
The SaveUserData right must be available for the user in order to use this object.

Availability:

Thin client, web-client, server, thick client, external connection.

Example:

Favorites = SystemSettingsStorage.Load("Common/UserWorkFavorites");
Item = New UserWorkFavoritesItem;
Item.URL = "file://C:/Kro05.jpg";
Favorites.Add(Item);
SystemSettingsStorage.Save("Common/UserWorkFavorites", "", Favorites);


    

1C:Enterprise Developer's Community