Is this property not working correctly?
As a work around we use the rule of code below.
Dim bIsMaster As Boolean = myProduct.VariantGroupCnt > 0 AndAlso myProduct.VariantID = ""
Rob
Dim bIsMaster As Boolean = myProduct.VariantGroupCnt > 0 AndAlso myProduct.VariantID = ""
Public ReadOnly Property IsVariantMaster() As Boolean Get Return Me.VariantID = "" AndAlso Me.VariantCnt > 0 AndAlso Me.VariantGroupCnt > 0 End Get End Property
So, the only difference is the myProduct.VariantCnt part that is missing. This property gets it value from column ProductVariantCounter on table EcomProducts.
I don't know if this information answers your question, as to why it returns false?
Regards /Snedker
You must be logged in to post in the forum