StrataFrame Forum

ObjectMapper

http://forum.strataframe.net/Topic370.aspx

By Larry Caylor - 12/21/2005

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.

 

 

By StrataFrame Team - 12/21/2005

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.