web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

How to get the businessdate?

(0) ShareShare
ReportReport
Posted on by

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)
  • Verified answer
    Barry Flynn Profile Picture
    3,090 on at

    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)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans