Ali

Ali

32 Articles Published

Articles by Ali

32 articles

Including third party libraries in SAPUI5 Project

Ali
Ali
Updated on 13-Mar-2026 513 Views

Including third party libraries in your SAPUI5 project allows you to leverage external functionality and extend your application capabilities. SAPUI5 provides several methods to incorporate these libraries safely and efficiently. Using jQuery.sap.require Method For libraries that are already included with SAPUI5, you can use the jQuery.sap.require method to load them. Here's how you would include jQuery UI components − jQuery.sap.require("sap.ui.thirdparty.jqueryui.jquery-ui-core"); This method ensures that the library is loaded properly within the SAPUI5 framework and maintains compatibility with the application lifecycle. Security Considerations When working with third party libraries, security is a crucial ...

Read More

Generating range of numbers 1…n in SAP HANA

Ali
Ali
Updated on 13-Mar-2026 637 Views

In SAP HANA, you can generate a range of numbers from 1 to n using different approaches. This is particularly useful when you need to populate tables with sequential data or create test datasets. Method 1: Using FOR Loop You can use a FOR loop to iterate through a range of numbers and insert them into a table − FOR START_CID IN 1..1000 DO INSERT INTO "TEST_TABLE" VALUES(START_CID, ''); END FOR; This loop will iterate from 1 to 1000 and insert each number as a CID value along with an ...

Read More

Inserting Array list into HANA database

Ali
Ali
Updated on 13-Mar-2026 582 Views

To insert array lists into a HANA database, you can use JDBC statements with HANA's ARRAY function. This approach allows you to store multiple values as array columns in your database table. Example The following code demonstrates how to insert array data into a HANA database table − Integer[][] myarray = { {1}, {1, 2}, {1, 2, 3, 4, 5} }; String test = "Insert Arrays"; stopWatch.start(test); myDBconn.setAutoCommit(false); Statement stmt = myDBconn.createStatement(); stmt.execute("TRUNCATE TABLE Schema.Table1"); // Running a loop over our array of arrays for (int i = 0 ; i < (myarray.length); i++) { ...

Read More

What is the difference between character literals and string literals in Java?

Ali
Ali
Updated on 11-Mar-2026 1K+ Views

Character literals represents alphabets (both cases), numbers (0 to 9), special characters (@, ?, & etc.) and escape sequences like , \b etc. Whereas, the String literal represents objects of String class. Example public class LiteralsExample { public static void main(String args[]){ char ch = 'H'; String str = "Hello"; System.out.println("Value of character: "+ch); System.out.println("Value of string: "+str); } } Output Value of character: H Value of string: Hello

Read More

Retrieving Idoc XML data from SAP system over HTTPS

Ali
Ali
Updated on 04-Mar-2024 642 Views

You can read HTTP using file_get_contents("php://input")Try using this link-https://www.php.net/manual/en/reserved.variables.php

Read More

How to filter an array in Java

Ali
Ali
Updated on 17-Jun-2020 7K+ Views

You can use List.removeAll() method to filter an array. exampleimport java.util.ArrayList; import java.util.List; public class Tester {    public static void main(String[] args) {       List list = new ArrayList();       list.add("A");       list.add("B");       list.add("C");       list.add("D");       list.add("E");       list.add("F");       list.add("G");       list.add("H");       List filters = new ArrayList();       filters.add("D");       filters.add("E");       filters.add("F");       System.out.println("Original List " + list);       list.removeAll(filters);       System.out.println("Filtered List ...

Read More

How do I print a message to the error console using JavaScript?

Ali
Ali
Updated on 16-Jun-2020 341 Views

To print a message to the error console, use the console object. Here’s an example −The following will show a red error message −console.error(message);The following gives you the default message −console.log(message);The following gives you the warning message −console.warn(message);The following gives an information message −console.info(message);Add CSS to the log message −console.log('%c Add message!, "background: green; color: white;");Use the following to print error. Consider “num” as the variable name −console.error('num=%d', num);For complete API reference, refer Console API Reference.

Read More

How do I print debug messages in the Google Chrome JavaScript Console?

Ali
Ali
Updated on 16-Jun-2020 387 Views

To print debug messages in the Google Chrome JavaScript Console, write a script, which is not creating console functions if they do not exist −if (!window.console) console = {}; console.log = console.log || function(){}; console.warn = console.warn || function(){}; console.error = console.error || function(){};Above you can see the following functions are used to log items based on a log, warn or info. It won’t cause errors when the console isn’t available. The following functions work in Google Chrome console −console.log( ); console.warn(); console.error();The Console object is used to access the browser's debugging console. As an example, consider the Web Console ...

Read More

How to design a modern Website?

Ali
Ali
Updated on 15-Jun-2020 245 Views

Modern websites are responsive and the design works fine on multiple devices such as Desktop, Tablet, and Mobile. Also, websites these days do not follow the old font styles, many of them use Google fonts since it’s easy to find a font-face matching your website's content and Google provides a lot of free fonts to choose from.Modern websites display beautifully formatted content on multiple devices such phones, tablets, and desktops. Also, nowadays Retina-ready logo helps in keeping your logo amazing, no matter the resolution.Follow the below given steps and learn how to design a modern website −Design StylesFor design style, ...

Read More

How to make a Website step by step?

Ali
Ali
Updated on 15-Jun-2020 1K+ Views

A website is a group of a web page, which has content, images, videos, header, etc. It is with a unique domain name and published on the web server.DomainA domain is what you type on the web browser to open a website. For example www.tutorialspoint.com, etc. The domain is uniquely defined for a website. Buy a domain name from domain name registrar and website hosting companies like GoDaddy.Here, you can see the domain name typed on the web browser:Hosting PackageThe website which you’re looking to develop will have content, images, documents, etc. For all these, you need space, which is ...

Read More
Showing 1–10 of 32 articles
« Prev 1 2 3 4 Next »
Advertisements