
Hi everyone,
I need to get the business date and set to my field called "caDate"
something like this.
a = SetObjectValue("caDate", I_need_a_Function_To_Get_BusinessDate())
I am using SL 7 and I am trying to create a customization
I don't know how to use SIVToolbar in a customization. (I think the business date is accesible from sivToolbar) but I don't know how to access to SIVToolbar from customization mode.
Thanks in advance.
*This post is locked for comments
I have the same question (0)Alfredo
Here's some code I've tested in the AR Invoice screen (08.010).
I added a button & put the following code in its Clicj event.
Pressing the button re-sets the DocDate field to the Solomon Business Date.
The code is
Dim ldDate As Sdate
Dim lsdate As String
Call GetBufferValue("bpes.today", ldDate.val)
lsdate = DateToStr(ldDate)
serr1 = SetObjectValue("cDocDate", lsdate)