I am trying to add the file attachment module/functionality to my BO. I reviewed the tutorial and it worked fine, but in my BO it doesn't want to work.
What I have is a class called cFiles which is a stripped down version of the Portfolio class.
<DefaultClassOptions()> _
Public Class cFiles
Inherits FileAttachmentBase
Public Sub New(ByVal session As Session)
MyBase.New(session)
End Sub
Public Overrides Sub AfterConstruction()
MyBase.AfterConstruction()
fDocumentType = DocumentType.Unknown
End Sub
Private fDocumentType As DocumentType
Public Property DocumentType() As DocumentType
Get
Return fDocumentType
End Get
Set(ByVal value As DocumentType)
SetPropertyValue("DocumentType", fDocumentType, value)
End Set
End Property
End Class
Then I have my BO which has a the following property:
Private fFileList As XPCollection(Of cFiles)
Public Property FileList() As XPCollection(Of cFiles)
Get
Return fFileList
End Get
Set(ByVal value As XPCollection(Of cFiles))
SetPropertyValue("FileList", fFileList, value)
End Set
End Property
The Files list view shows up in the BO's detail view, but it (and its toolbar) are disabled. So the questions are: Am I using this correctly and why is it disabled? 
Thanks.
No trees were harmed in the sending of this message, however a large number of electrons were terribly inconvenienced.