8.03.4XX Customization Questions

I have used the following to populate a date and a time in the past.



myUD01.dataView(myUD01.Row)("Date01") =
System.DateTime.Now.ToShortDateString()

myUD01.dataView(myUD01.Row)("ShortChar02") =
System.DateTime.Now.ToShortTimeString()



Hope this helps

Dale Schuerman
Senior Consultant

RAM Software Systems, Inc.
1701 North Collins Suite 200
Richardson, Texas 75080
Phone: (972) 669-0763
Fax: (972) 669-9603
Web Site: www.ramsys.com <blocked::http://www.ramsys.com/>

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of melissa hietala
Sent: Friday, October 10, 2008 4:17 PM
To: vantage@yahoogroups.com
Subject: [Vantage] 8.03.4XX Customization Questions



Is there any way to have a custom field populate with the time an action
occured? For instance, I created a textbox and I want the textbox to
populate with the current time once a particular checkbox is checked.
I'm currently using an "After Field Change" event in the Form Event
Wizard. Whats the syntax needed to populate a field with the current
time?

Thanks,

Dustin Biniek
UMC, Inc.
DustinB@... <mailto:DustinB%40ultramc.com>

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]
Is there any way to have a custom field populate with the time an action occured? For instance, I created a textbox and I want the textbox to populate with the current time once a particular checkbox is checked. I'm currently using an "After Field Change" event in the Form Event Wizard. Whats the syntax needed to populate a field with the current time?

Thanks,
Â
Dustin Biniek
UMC, Inc.
DustinB@...




[Non-text portions of this message have been removed]
Not sure about the Vantage flavor of VB, but in regular VB (.NET 2.5+, i think), "TimeString" will return the current time in String format. If you need to log changes to a record in vantage, I would suggest using the change log BAM. It is great for logging pretty much any user action on any field, so long it exists in a table somewhere and not a view.

Thanks,
Kunal



----- Original Message ----
From: melissa hietala <kevmel822@...>
To: vantage@yahoogroups.com
Sent: Friday, October 10, 2008 4:16:41 PM
Subject: [Vantage] 8.03.4XX Customization Questions


Is there any way to have a custom field populate with the time an action occured? For instance, I created a textbox and I want the textbox to populate with the current time once a particular checkbox is checked. I'm currently using an "After Field Change" event in the Form Event Wizard. Whats the syntax needed to populate a field with the current time?

Thanks,

Dustin Biniek
UMC, Inc.
DustinB@ultramc. com

[Non-text portions of this message have been removed]






[Non-text portions of this message have been removed]
forgot to include code that will return the date, this is how I did it so that I could match the same format as it is stored in our sql server. This actually returns the date and time, hence I remove the last 12 chars which is the time. I am sure there is a easier way to get only the date in .NET 3.0. If "TimeString"does not work for you, can you can play with the returned value to get just the time (strip everything except the last 12 chars).

Dim myDateStr as String = System.datetime.today.ToString.Remove(System.datetime.today.ToString.Length - 12, 12)



Thanks,
Kunal



----- Original Message ----
From: melissa hietala <kevmel822@...>
To: vantage@yahoogroups.com
Sent: Friday, October 10, 2008 4:16:41 PM
Subject: [Vantage] 8.03.4XX Customization Questions


Is there any way to have a custom field populate with the time an action occured? For instance, I created a textbox and I want the textbox to populate with the current time once a particular checkbox is checked. I'm currently using an "After Field Change" event in the Form Event Wizard. Whats the syntax needed to populate a field with the current time?

Thanks,

Dustin Biniek
UMC, Inc.
DustinB@ultramc. com

[Non-text portions of this message have been removed]






[Non-text portions of this message have been removed]