Bug regarding "Return Alternate On Null/Set Null on Alternate"


Author
Message
Ben Dornis
Ben Dornis
StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)
Group: Forum Members
Posts: 40, Visits: 155
It would appear that the builders for the "Return Alternate On Null/Set Null on Alternate" as missing an "End If" in the "Set" block



'''

''' FieldName

'''


'''


BusinessFieldDisplayInEditor(), _

Description("FieldName"), _

DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _

Public Property [FieldName]() As System.Int32

Get

Dim loValue As Object

loValue = Me.CurrentRow.Item("FieldName")

If loValue Is DBNull.Value Then

Return -1

Else

Return CType(loValue, System.Int32)

End If

End Get

Set(ByVal value As System.Int32)

If value <> -1 Then

Me.CurrentRow.Item("FieldName") = value

Else

Me.CurrentRow.Item("FieldName") = DBNull.Value

End Set

End Property

StrataFrame Team
S
StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Got it fixed.  Here's the AddIns assembly you'll need to copy to the C:\Program Files\Common Files\MicroFour\StrataFrame folder and also dump into your GAC...
Attachments
MicroFour StrataFrame AddIns.zip (100 views, 281.00 KB)
Ben Dornis
Ben Dornis
StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)
Group: Forum Members
Posts: 40, Visits: 155
Thanks for the quick fix. Testing it now.



-Ben
Ben Dornis
Ben Dornis
StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)StrataFrame Novice (54 reputation)
Group: Forum Members
Posts: 40, Visits: 155
I probably should have checked it out before I posted earlier but it appears that the same problem exists in the "(value type)" as well...just thought I would let you know .
StrataFrame Team
S
StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Aha, thanks for the notice, I'll get it fixed.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search