Community
Showing results for 
Search instead for 
Do you mean 
Reply

Detecting Multi-Select Fields

Accepted Solution Solved
Copper Contributor
Posts: 31
Country: USA
Accepted Solution

Detecting Multi-Select Fields

Hello,

 

Is there a way to detect which ACT! fields are set as multi-select? I don't see this anywhere in the metadata tables in the new 2010 OLEDB Provider, and I imagine this is accessible somewhere in the SDK, but I wasn't able to find it today.

 

Thanks,

 

- Rob


Accepted Solutions
Solution
Accepted by topic author RobEisler
‎09-25-2015 03:20 AM
Nickel Super Contributor
Posts: 441
Country: UK

Re: Detecting Multi-Select Fields

For Each field As Act.Framework.Database.FieldDescriptor In ActFwk.Fields.GetFields(Act.Framework.RecordType.Contact)
                        Dim attrib As Act.Framework.Database.PickListAttribute = field.Attributes(Act.Framework.Database.FieldProperty.PickList)
                        If Not attrib Is Nothing Then
                            MsgBox(attrib.IsMultiSelect)
                        End If
                    Next

 

Hope it helps.

 

Tom

View solution in original post


All Replies
Solution
Accepted by topic author RobEisler
‎09-25-2015 03:20 AM
Nickel Super Contributor
Posts: 441
Country: UK

Re: Detecting Multi-Select Fields

For Each field As Act.Framework.Database.FieldDescriptor In ActFwk.Fields.GetFields(Act.Framework.RecordType.Contact)
                        Dim attrib As Act.Framework.Database.PickListAttribute = field.Attributes(Act.Framework.Database.FieldProperty.PickList)
                        If Not attrib Is Nothing Then
                            MsgBox(attrib.IsMultiSelect)
                        End If
                    Next

 

Hope it helps.

 

Tom

Copper Contributor
Posts: 31
Country: USA

Re: Detecting Multi-Select Fields

Thanks for the help! This got me pointed in the right direction.