ObjectMapper


Author
Message
Larry Caylor
Larry Caylor
StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)
Group: Awaiting Activation
Posts: 592, Visits: 3.7K

After performing a fresh install of the framework and database using the latest version (2005-12-21) I’m having the following issues with ObjectMapper and the sample WinForms application. I’m able to open ObjectMapper and configure the project. When I go to configure the business objects everything appears to work okay except the Property Accessing/Changing/Changed Events are appearing as text boxes instead of drop down lists. I’m not able to select individual or group events.

 

When I go to run the sample application it fails to compile with

“Value of type’1-Dimensional array of Byte’ cannot be converted to ‘System.Drawing.Image”. This happens in ProductsInfoPanel.vb, OrderItemEntry.vb, ProductMaintenance.vb. 

 

One example:

 

Private Sub ProductsInfoPanel_RowChanged(ByVal e As MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialogRowChangedEventArgs) Handles MyBase.RowChanged

        '-- Strong-type the business object

        With CType(e.BusinessObject, ProductsBO)

            '-- Set the picture

            Me.PictureBox1.Image = .prod_image <- This statement fails

 

            '-- Set the product description

            Me.Textbox1.Text = .prod_desc

        End With

    End Sub

 

 I’m running on WindowsXP and SQL Server 2000.

 

 

StrataFrame Team
S
StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
I'll check on the text boxes in the business object mapper... that's weird. As for the sample, it looks like in some of our testing, we rebuild the partial class for the products without the serialized setting to true. That prod_image property is suppoed to return a System.Drawing.Bitmap. I'll zip a code file and post it so you can replace it.
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