Номер Статьи: 1079 | Рейтинг: Без рейтинга | Последнее обновление: Fri, Nov 13, 2020 10:36 AM
Для того, чтобы разместить на боковую панель навигации ссылку на профиль пользователя, создайте операцию типа Скрипт в шаблоне пользователя и введите следующее выражение:
using System; using System.Collections.Generic; using System.Linq; using Comindware.Data.Entity; using Comindware.TeamNetwork.Api.Data.UserCommands;
public class Script {
public static UserCommandResult Main(UserCommandContext userCommandContext, Comindware.Entities entities) { var result = new UserCommandResult() { Success = true, ResultType = UserCommandResultType.Navigate, NavigationResult = new UserCommandNavigationResult { ContainerId = "aa.1", ObjectId = userCommandContext.CurrentUserId, Context = ContextType.Record } }; return result; } }