Creating selection with NetServer - RowVisibleForHelper no longer exists

lock
push_pin
done
Answered
1

I have had this code for years now, but now with version 11.13 the RowVisibleForHelper no longer exists. What can I do now?

SelectionRow selc = SelectionRow.CreateNew();
selc.SetDefaultsAsync();
selc.Name = details.SelectionName;
selc.Seltype = 0; //static 
selc.TargetTableNumber = details.TargetTableNumber;
selc.SaveAsync();
int group = SoContext.CurrentPrincipal.GetGroupId();
if (details.GroupId != 0)
    group = details.GroupId;
switch (details.Visibility)
{
    case VisibilityMode.All:
        RowVisibleForHelper.SetVisibleFor(selc, RowVisibleForHelper.VisibleFor.All);
        break;
    case VisibilityMode.Group:
        RowVisibleForHelper.SetVisibleFor(selc, RowVisibleForHelper.VisibleFor.Group, group);
        break;
    case VisibilityMode.Private:
        RowVisibleForHelper.SetVisibleFor(selc, RowVisibleForHelper.VisibleFor.Private);
        break;
}

4 h, 21 m ago | 10:28 AM

All Replies (1)

EntityVisibleForHelper inside namespace SuperOffice.CRM.Entities seems like the logical replacement?

2 h, 45 m ago | 12:04 PM

Add reply