| | | 
StrataFrame Novice
       
Group: StrataFrame Users Last Login: 07/21/2008 8:17:21 AM Posts: 112, Visits: 664 |
| Hello, I testing the web stuff of Strataframe, I try with the web example (WebBindingSource) and when I edit and update a row on the gridView appears the following error:
Error de servidor en la aplicación '/Web Sample'.
--------------------------------------------------------------------------------
The business object 'Customers' could not be found on this page.
Descripción: Excepción no controlada al ejecutar la solicitud Web actual. Revise el seguimiento de la pila para obtener más información acerca del error y dónde se originó en el código.
Detalles de la excepción: System.InvalidOperationException: The business object 'Customers' could not be found on this page.
Error de código fuente:
Se ha generado una excepción no controlada durante la ejecución de la solicitud Web actual. La información sobre el origen y la ubicación de la excepción pueden identificarse utilizando la excepción del seguimiento de la pila siguiente.
Seguimiento de la pila:
[InvalidOperationException: The business object 'Customers' could not be found on this page.]
MicroFour.StrataFrame.UI.Web.BasePage.GetBusinessObject(String Name) +150
MicroFour.StrataFrame.UI.Web.WebBusinessBindingSource.GetBusinessObject() +109
MicroFour.StrataFrame.UI.Web.WebBusinessBindingSource.GetView(String viewName) +51
System.Web.UI.DataSourceControl.System.Web.UI.IDataSource.GetView(String viewName) +32
System.Web.UI.WebControls.DataBoundControl.ConnectToDataSourceView() +382
System.Web.UI.WebControls.DataBoundControl.GetData() +27
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +66
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +99
System.Web.UI.WebControls.GridView.DataBind() +24
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +92
System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +100
System.Web.UI.Control.EnsureChildControls() +134
System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +63
System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +429
System.Web.UI.Page.FindControl(String id) +57
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +282
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2548
--------------------------------------------------------------------------------
Información de versión: Versión de Microsoft .NET Framework:2.0.50727.832; Versión ASP.NET:2.0.50727.832
thanks! |
| | | | 
StrataFrame Novice
       
Group: StrataFrame Users Last Login: 07/21/2008 8:17:21 AM Posts: 112, Visits: 664 |
| Hello again, I see that if I change the gridview's viewstate property to true, it work, but I see that I update a row on the gridview, press save on the form (to save the bO) and the record don't change, I have to handle the event RowUpdated and set manually each row on the BO?
thanks!
- Fabian |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: Today @ 9:09:33 AM Posts: 2,661, Visits: 1,876 |
| Changing the viewstate property on the grid will cause it to save its data source to the viewstate (the business object), so when the grid is updated, the proper instance of the business object is not updated (the one from the viewstate, not the one from the form). So, no, you don't have to manually handle the UpdateRow event; it is handled internally to copy the data back to the business object. However, I am not sure why the Customers business object could not be located. Let me test a few things here and see if I can find a solution for you.
www.bungie.net |
| | | | StrataFrame Beginner
       
Group: Forum Members Last Login: 04/18/2008 6:08:08 PM Posts: 13, Visits: 136 |
| | Hi, I had the exact same problem with the sample ... did you find a solution to the missing Customer Object Issue. Regards jd |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: Today @ 2:43:51 PM Posts: 4,241, Visits: 4,285 |
| | |
|
|