Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Default Value on New
Message
From
28/04/2013 18:11:42
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Setting Default Value on New
Miscellaneous
Thread ID:
01572104
Message ID:
01572104
Views:
46
Hi,

I have a Receipt BO which has code to set the default date of the BO to the current date. Works fine. The client has now asked me to default the Receipt date to the last Receipt date entered on my form.

I've created a property of the window called lastDate and set it initially to the current date.

Then in my New button's click method I:

this.Receipt.Entity.rct_date = lastDate;

In my window's HookPostSave I do this:

lastDate = this.Receipt.Entity.rct_date;

But whenever I add a new Receipt it still shows up as today's date.

Any ideas where I am going wrong?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Next
Reply
Map
View

Click here to load this message in the networking platform