Vrundesha Joshi has Published 289 Articles

How to apply EXTRACT() function on the dates stored in MySQL table?

Vrundesha Joshi

Vrundesha Joshi

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

191 Views

We can apply EXTRACT() function on the dates stored in MySQL table in the following way −The following query is showing what dates are entered in table ‘testing’mysql> Select * from testing; +-------------+---------------------+ | StudentName | Dateofreg           | +-------------+---------------------+ | Ram         ... Read More

In MySQL, how we can compute date by providing the year, week number and day of the week?day of the week?

Vrundesha Joshi

Vrundesha Joshi

Updated on 28-Jan-2020 10:04:30

130 Views

We can compute the date as follows −mysql> SET @year=2017, @week=15, @day=4; Query OK, 0 rows affected (0.00 sec)The above query will pass the value’2017’ ,’15’, ‘4’ in ‘year’, ’week’ and ‘day’ variables respectively. Then after applying the formula in the query below, we can get the date.mysql> SELECT Str_To_Date( ... Read More

UIWebView HTML5 Canvas & Retina Display

Vrundesha Joshi

Vrundesha Joshi

Updated on 28-Jan-2020 10:02:02

183 Views

To place the retina size image into an HTML5 canvas, try the following code with canvas:var context = myCanvas.getContext("2d"); context.attr("width", width * window.devicePixelRatio); context.attr("height", height * window.devicePixelRatio); context.scale(window.devicePixelRatio, window.devicePixelRatio); context.drawImage(img, x, y, width, height);

How to use JavaScript to set cookies for homepage only?

Vrundesha Joshi

Vrundesha Joshi

Updated on 09-Jan-2020 10:33:42

321 Views

To set cookies for a homepage, add the page to the homepage itself.ExampleYou can try to run the following code to set cookiesLive Demo                                                  Enter name:                    

How to edit a JavaScript alert box title?

Vrundesha Joshi

Vrundesha Joshi

Updated on 08-Jan-2020 10:57:06

7K+ Views

It’s not possible to edit a JavaScript alert box title due to security issues. Still, to edit an alert box to work it all web browsers, use custom JavaScript Modal Dialogs or jQuery plugins.You can also use a custom alert box like Sweet Alert to get a custom alert box, ... Read More

How to refer and import SAP-UI-Core.js within my SAPUI5 project

Vrundesha Joshi

Vrundesha Joshi

Updated on 18-Dec-2019 10:03:04

403 Views

The SAPUI5 library files are a part of Eclipse SAPUI5 plug-in.If you are running the app by using the Web App preview on the startup page ( Go to Run As -> select “Web APP Preview”), then eclipse starts a local HTTP server for development which serves at “/resources” the ... Read More

Building a mobile app using OpenUI5 and Cordova using framework like jQuery.sap.storage

Vrundesha Joshi

Vrundesha Joshi

Updated on 18-Dec-2019 08:26:42

269 Views

You are thinking correctly for your requirement. What you can do is, use the read method for each entityset to read the oData. In the success callback for this method, you can parse the result objects into a corresponding JSON model.Now, you can have working logic as per which:When you ... Read More

Using combination of “AND” and “OR” in SELECT in ABAP

Vrundesha Joshi

Vrundesha Joshi

Updated on 09-Dec-2019 06:32:33

10K+ Views

You can use the following query:SELECT * FROM my_table WHERE condition 1 AND condition 2 AND ( id EQ '2' or id EQ ‘3’ ).Note: There should be space after and before bracket.Alternatively you can use IN statement as below:SELECT * FROM my_table WHERE condition 1 AND condition 2 AND ... Read More

Finding a particular value in internal table itab in ABAP

Vrundesha Joshi

Vrundesha Joshi

Updated on 09-Dec-2019 06:20:33

2K+ Views

you can use a READ statement in combination with TRANSPORTING NO FIELDS. This will skip the values to be transferred to the work area and avoid the loop. Here is an example:READ TABLE itab WITH KEY FIELD = 'ABC' TRANSPORTING NO FIELDS. IF SY-SUBRC = 0. "Field Match.” ENDIF.

How can I delete all cookies with JavaScript?

Vrundesha Joshi

Vrundesha Joshi

Updated on 03-Oct-2019 08:06:06

1K+ Views

To delete all cookies with JavaScript, you can try to run the following code. Here, we’re using an array and the split() method to get all the cookies and finally delete themExampleLive Demo                    var num = 1;     ... Read More

Previous 1 ... 7 8 9 10 11 ... 29 Next
Advertisements