Varma has Published 68 Articles

How can I calculate full 24hour days between two specified dates in MySQL?

varma

varma

Updated on 28-Jan-2020 10:35:33

267 Views

In DATEDIFF() function only the date parts of the values are used in calculation hence we can use TIMESTAMPDIFF() function to calculate full 24 hour days between two specified dates.For example, if we want to find full 24hour days between ‘2017-05-27 11:59:00’ and 2017-05-23 12:00:00’ then following would be MySQL ... Read More

How to deal with floating point number precision in JavaScript?

varma

varma

Updated on 10-Jan-2020 07:29:46

889 Views

To handle floating point number precision in JavaScript, use the toPrecision() method. It helps to format a number to a length you can specify.ExampleLive Demo                    var num = 28.6754;          document.write(num.toPrecision(3));          document.write(""+num.toPrecision(2));          document.write(""+num.toPrecision(5));           Output28.7 29 28.675

How to call a JavaScript function from an onmouseover event?

varma

varma

Updated on 08-Jan-2020 10:36:14

2K+ Views

The onmouseover event triggers when you bring your mouse over any element.ExampleYou can try to run the following example to learn how to call a JavaScript function from onmouseover eventLive Demo                                         Bring your mouse inside the division to see the result:                 This is inside the division          

Does a real ECMAScript implementation exist, or is it just a spec?

varma

varma

Updated on 02-Jan-2020 09:03:25

289 Views

ECMAScript is a standard for JavaScript implementation. You cannot run or download ECMAScript. JavaScript 2.0 conforms to Edition 5 of the ECMAScript standard, and the difference between the two is minor.The 8th edition, known as ECMAScript 2017, came in June 2017. ECMAScript is a Standard for scripting languages such as ... Read More

Request Timeout while using Odata call to a gateway in SAPUI5 application

varma

varma

Updated on 10-Dec-2019 09:52:36

2K+ Views

As you have already tried different parameters, I would suggest to check timeout option for ICM and Web Dispatcher.In SAP, you have ICM and Web Dispatcher with different timeouts, controlled by different parameters:Timeout for opening a connection: icm/conn_timeoutTimeout for receiving a request: icm/traffic_control Keepalive timeout for the network connection: icm/server_port_ option ... Read More

How to check all objects belong to list of TR’s in SAP system

varma

varma

Updated on 10-Dec-2019 08:33:06

7K+ Views

SAP provides standard tables that you can use to get the detail about Transport objects.E070: Change & Transport System: Header of Requests/TasksE070T: Change & Transport System: Short Texts for Requests/TasksE071: Change & Transport System: Object Entries of Requests/Tasks (This table provides you details of transport objects).E070A: Change & Transport System: ... Read More

Get access or point to SAP UI5 control

varma

varma

Updated on 10-Dec-2019 07:08:07

465 Views

You are making a small mistake over here. Method addContent is a method available for UI5 controls not over normal DOM elements.If you want to gain a reference to the button then you can try with the below snippet:this.getView().byId("").addContent(new sap.m.Button({    : }));

What is the difference between single-line and multi-line comments in JavaScript?

varma

varma

Updated on 12-Sep-2019 08:19:19

630 Views

Single Line commentThe following is a single line comment in JavaScript. Any text between a // and the end of a line is treated as a comment and is ignored by JavaScript.// This is a comment. It is similar to comments in C++Multi-Line commentThe following is a multi-line comment in ... Read More

When should I use a semicolon after curly braces in JavaScript?

varma

varma

Updated on 12-Sep-2019 08:04:37

381 Views

In JavaScript, Semicolons are optional. Simple statements in JavaScript are generally followed by a semicolon character, just as they are in C, C++, and Java. JavaScript, however, allows you to omit this semicolon if each of your statements is placed on a separate line. It is a good programming practice ... Read More

How does Garbage Collector work in C#

varma

varma

Updated on 30-Jul-2019 22:30:23

2K+ Views

The garbage collector (GC) manages the allocation and release of memory. The garbage collector serves as an automatic memory manager. You do not need to know how to allocate and release memory or manage the lifetime of the objects that use that memory. An allocation is made any time ... Read More

Advertisements