Built-In functions OnInitialize event
Question

Hi,
Is it problematic to use built-in functions on the OnInitialize event?
I don't know if built-in functions do server calls when executed.
I provided an example of what I mean.

___
Mobile application.
Service studio version 11.11.8.  

3.png

Solution

Hi Luis,

Checkout this article, because the behaviour is different in the place where you call the function: 

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Logic/Built-in_Functions/Date_and_Time 

CurrDate()In client-side calls, it returns the device date.
In server-side calls, it returns the platform server date.
In query calls, it returns the platform server date.

For the DateTimeToDate i believe this is executed on the client side in client actions. 

DateTimeToDate

Converts Date Time 'dt' to a Date value dropping the Time component.

Available in:

  • Server-side logic: Yes
  • Client-side logic: Yes
  • Database: Can be used with attributes in aggregates.
  • Local Storage: Can be used with attributes in aggregates.

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Logic/Built-in_Functions/Data_Conversion#DateTimeToDate 

Thanks for the reply! :)

So basically it depends based on where I am calling this built-in function?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.