Кнопка «Мой профиль»


Для того, чтобы разместить на боковую панель навигации ссылку на профиль пользователя, создайте операцию типа Скрипт в шаблоне пользователя и введите следующее выражение:

 

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;
    }
}

где:

aa.1  = ИД шаблона пользователя


Настраиваемые Поля

Номер Статьи: 1079
Размещено: Wed, Feb 26, 2020
Последнее обновление: Thu, Nov 7, 2024

Online URL: https://kb.comindware.ru/article/knopka-moj-profil-1079.html