Handle Mouse Right Click Event Using jQuery

David Meador
Updated on 14-Feb-2020 10:28:21

4K+ Views

To handle a mouse right click event, use the mousedown() jQuery method. Mouse left, right and middle click can also be captured using the same method. You can try to run the following code to learn how to handle a mouse right click event:ExampleLive Demo $(document).ready(function(){    $('.myclass').mousedown(function(event) {     switch (event.which) {         case 1:             alert('Left mouse button is pressed');             break;         case 2:             alert('Middle mouse button is pressed');             break;         case 3:             alert('Right mouse button is pressed');             break;         default:             alert('Nothing');     } }); }); Click me

Handle Double Click Event using jQuery

David Meador
Updated on 14-Feb-2020 10:27:25

1K+ Views

To handle a double click event using jQuery, use the dblclick() event. When an element is double clicked, this event occurs.ExampleYou can try to run the following code to learn how to handle double click event using jQuery −Live Demo $(document).ready(function(){    $("p").dblclick(function(){      alert("You have clicked this twice.");    }); }); Double click

Binding Model to SAP UI Core in SAP UI5 Application

Johar Ali
Updated on 14-Feb-2020 10:26:20

288 Views

Please try below where you need to prefix propertyBinding with models name −var oItemTemplate = new sap.m.ActionListItem({    title : "{checks>title}",    ... });

Handle Link Click Event Using jQuery

David Meador
Updated on 14-Feb-2020 10:25:09

5K+ Views

To handle a click event using jQuery, use the click() method. You can try to run the following code to handle a link click event using jQuery −ExampleLive Demo  $(document).ready(function(){     $("a").click(function(){         alert("You've clicked the link.");     });  }); Click below link. Click

Update a MySQL Table with Java

AmitDiwan
Updated on 14-Feb-2020 10:24:53

4K+ Views

For this, you need to use PreparedStatement in Java for update. Let us first create a table −mysql> create table DemoTable(    Id int,    FirstName varchar(40) ); Query OK, 0 rows affected (0.62 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values(100, 'Chris'); Query OK, 1 row affected (0.13 sec) mysql> insert into DemoTable values(111, 'Mike'); Query OK, 1 row affected (0.18 sec) mysql> insert into DemoTable values(121, 'Sam'); Query OK, 1 row affected (0.09 sec)Display all records from the table using select statement −mysql> select * from DemoTable;This will produce the following output ... Read More

Using sy-datum-low and sy-datum-high in ABAP Program

Rahul Sharma
Updated on 14-Feb-2020 10:24:16

3K+ Views

In this code, you have used ‘BT’ i.e. between so select option will hit any date between today and YYYYMMDD ‘99991231’.You should declare high dates at INITIALIZATION so that it is visible on the selection screen and you can change it if required.select-OPTIONS: so_date FOR sy-datum. INITIALIZATION.    so_date-sign = 'I'.    so_date-option = 'BT'.    so_date-low = sy-datum.    so_date-high = '99991231'. APPEND so_date.

Parsing SAP Logon Ticket with .NET

Johar Ali
Updated on 14-Feb-2020 10:23:49

284 Views

SAP provides SAP SSO EXT Lib for parsing SAP Logon ticket. SAP SSO EXT library supports SAP logon tickets as a part of the java based application.You can download SAP SSO EXT library from SAP service marketplace http://service.sap.com/swdc and then search here for SAPSSOEXT.

Insert Date into MySQL Column using Java

AmitDiwan
Updated on 14-Feb-2020 10:23:16

3K+ Views

For this, you can use PreparedStatement from Java. Let us first create a table wherein one of the columns is ArrivalDate with DATE type −mysql> create table DemoTable(    PassengerId int,    PassengerName varchar(40),    ArrivalDate date ); Query OK, 0 rows affected (0.82 sec)The JAVA code is as follows to insert date −import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; public class InsertDateFromJava {    public static void main(String[] args) {       Connection con = null;       PreparedStatement ps = null;       try {          java.util.Date javaDate = new java.util.Date();     ... Read More

In SAP UI5: Render Calling Two Times in Custom Control

Rahul Sharma
Updated on 14-Feb-2020 10:22:32

421 Views

In your custom control, there are two aggregation updates- setAggregation and addContent. When you use Aggregation mutators, it uses 3rd parameter to suppress invalidation.It will insert the aggregation but suppress the invalidation since whole control will be rendered at the end it.oControl.setAggregation("layout", oSavedButtonHLyt, true); // suppress invalidateYou should think that It should work same for “addContent”.oSavedButtonHLyt.addAggregation("content", manageSavedSearch[index], true);However, it doesn’t work as UI5 cannot determine automatically for the previous parent's suppress cos its aggregation will be moved. You have to note that property, aggregation or an association invalidates control when control does not overwrite its mutator method.Read More

Convert OData to JSON Format Using SAPUI5 Libraries

Ali
Ali
Updated on 14-Feb-2020 10:18:07

575 Views

This can be done in multiple ways. One of common approach would be by passing user name/password in URL.$.ajax({    url : "http://user:password@url/SERVICE?$format=json",    type: "GET", //or POST?    dataType: "jsonp",    success: function(){alert("ok")},    error: function(){alert("error")} })

Advertisements