by Mike.Sheen » Tue Nov 27, 2018 11:18 am
Ernst wrote:This one does not compile in 702 either.
Dim EmailLogCollection As JiwaFinancials.Jiwa.JiwaSales.SalesOrder.EmailLogCollection = Plugin.Manager.CollectionFactory.CreateCollection(Of JiwaFinancials.Jiwa.JiwaSales.SalesOrder.EmailLogCollection)
SO close... but so far.
PS the message. says. JiwaFinancials.Jiwa.JiwaSales.SalesOrder.EmailLogCollection does not inherit from JIWA.CollectionItem, even though there is no mention of item in the line??
Thx
In your case, I think you want this:
- Code: Select all
Dim EmailLogCollection As JiwaFinancials.Jiwa.JiwaSales.SalesOrder.EmailLogCollection = Plugin.Manager.CollectionFactory.CreateCollection(Of JiwaFinancials.Jiwa.JiwaSales.SalesOrder.EmailLogCollection, JiwaFinancials.Jiwa.JiwaSales.SalesOrder.EmailLog)
Perhaps the function declaration for CreateCollection in the CollectionFactory will make it clearer?
- Code: Select all
Public Overloads Function CreateCollection(Of CollectionType As {IJiwaCollection(Of CollectionItemType), New}, CollectionItemType As {IJiwaCollectionItem(Of CollectionItemType)})() As CollectionType
Mike Sheen
Chief Software Engineer
Jiwa Financials
If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution