"visiblefor" MDO List
List provider for the VisibleFor dropdown control. Items are of type associate, usergroup or all, with a separate id space for each type. The current associate, its primary and secondary groups, and 'all' are the returned elements. MDO list sorting preferences for the UserGroup list are respected.
Associate items have positive ID's equal to the associate id, group items have negative id's equal to -usergroup id,
and the All item has the id value int.MinValue.
Implemented by the
Additional Attributes
Description | Name | Example Value |
---|---|---|
Comma separated list of associate ids | 123,234,34 |
Sample Request
GET /api/v1/MDOList/visiblefor
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: *
Sample Code
var listProvider = SuperOffice.CRM.Lists.SoListProviderFactory.Create("visiblefor", forceFlatList: true);
foreach (var item in listProvider.RootItems) {
Console.WriteLine("{0} {1} {2} {3}",
item.Id, ResourceManager.ParseInlineResources(item.Name), item.StyleHint, item.ExtraInfo);
}
Sample Output
Id | Name | StyleHint | ExtraInfo |
---|---|---|---|
17 | Sal0 | 17 | |
-2 | Salg | 2 | |
-2147483648 | All | -2147483648 |
Related MDO Lists
- "visibleforheadings"
- "visibleforheadingswithallitem"
- "visibleforheadingswithallitemwithnoselection"
- "visibleforheadingswithnoselection"
- "visibleforwithallitem"
- "visibleforwithallitemwithnoselection"
- "visibleforwithnoselection"