Community
Showing results for 
Search instead for 
Do you mean 
Reply

Retrieve a picklists's attributes

Nickel Super Contributor
Posts: 441
Country: UK

Retrieve a picklists's attributes

does anyone know how you retrieve a picklist's attributes eg. Is Multi Select etc.?
 
TIA
 
Tom
 
 
Copper Contributor
Posts: 98
Country: United States

Re: Retrieve a picklists's attributes

[ Edited ]
//Example 2
//This example displays the items in the City field picklist.

ContactFieldDescriptor cField;
PickList               pl;
PickListItemCollection plic;
PickListItem           pli;
cField = ActFwk.Contacts.GetContactFieldDescriptor("TBL_CONTACT.BUSINESS_CITY");
pl     = ActFwk.PickLists.GetPickList(cField);
//Example Modified....

pl.XXXXXXXXX

Public Properties

  Name Description
Public PropertyCreateDate Gets the creation date of the Act.Framework.PickLists.PickList object.  
Public PropertyDescription Gets or sets the description of the Act.Framework.PickLists.PickList.  
Public PropertyEditDate Gets the edit date of the Act.Framework.PickLists.PickList object.  
Public PropertyHasChanges Gets whether or not the Act.Framework.PickLists.PickList has any changes.  
Public PropertyID Gets the unique identifier of the Act.Framework.PickLists.PickList object.  
Public PropertyIsAutoInsert Gets or sets whether the Act.Framework.PickLists.PickList should allow selection of multiple items.  
Public PropertyIsEditable Gets or sets whether the Act.Framework.PickLists.PickList should allow editing.  
Public PropertyName Gets or sets the name of the Act.Framework.PickLists.PickList.  
Public PropertyState Gets the state of the Act.Framework.PickLists.PickList object.  
 
 

I think you're looking for IsAutoInsert.
 
Hope this helps!



Message Edited by Carlton_Jones on 02-29-2008 01:35 PM
Carlton Jones
Sage Software
Nickel Super Contributor
Posts: 441
Country: UK

Re: Retrieve a picklists's attributes

Hi Carlton,
IsEditable is the only one I can access.  I need to be able to retrieve a picklist (which i can do), then find out if it is multi select and then create a new pick list with the same attribute.  I have found the IsMultiSelect attribute in the SDK documentation but I don't know how to access it.
 
PickListAttribute Class Members

PickListAttribute overview

PickListAttribute Constructor Overloaded.   Public Properties

Public Property IsBound Gets if is bound.
 Public Property IsLimitToList Gets if is limited to the list.
 Public Property IsMultiSelect Gets if the list is multi-select.
Public Property IsTypeAhead Gets if is type ahead.
Public Property PickListID Gets the ID.
 Public Property PickListType Gets the PickListType.
Public Property ShowDescription Gets if the description should be shown.
Public Property TypeId (Inherited from System.Attribute)