Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BizObject.NewRo() w w/ default values
Message
From
22/06/2010 15:36:26
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01470167
Message ID:
01470226
Views:
26
>Hey all,
>
>It's been a while since I rapped at ya, but things have been busy. I upgraded to VS2010 and MM 4.0 and things are working pretty well, but here's my current issue. I'm trying to create an object w/ a default value so I've created my bizObject and my defaultValues object and calling the bizObject.newRow(ds, "TableName", oDefaultValues) method but the default values aren't going in. (see attached pics for debug info).
>
>
> protected void FeeAdd(object sender, EventArgs e)
>    {
>        // Retrieve the previous Order Detail DataSet
>        DataSet ds = (DataSet)Session["dsFeeSchedule"];
>
>        // Add a new row to the DataSet
>        GolfFeeDefaultValues oDefaults = new GolfFeeDefaultValues(iEventId);
>
>        oFee.NewRow(ds, oFee.TableName, oDefaults);
>
>        // Store the DataSet back into the session
>        Session["dsFeeSchedule"] = ds;
>
>        // Set the new row for editing
>        this.grdFeeSchedule.EditIndex =
>           ds.Tables[this.oFee.TableName].Rows.Count - 1;
>
>        // Rebind the GridView
>        this.BindControl(this.grdFeeSchedule);
>    }
>
>
>Thanks,
>
>Eric

Hi Eric,

Try putting a break point in the business object within the HookSetDefaultValues method to verify you are getting a valid DefaultValues object when that method runs.
Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform