Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by Akshaya Akki
25 articles
How to create a strikethrough text using JavaScript?
To create a strikethrough text with JavaScript, you can use several methods. The legacy strike() method wraps text in deprecated tags, while modern approaches use CSS styling for better compatibility. Using the Legacy strike() Method The strike() method creates strikethrough text by wrapping it in tags. However, this method is deprecated and not recommended for new projects. JavaScript String strike() Method var str = "Demo Text"; ...
Read MoreMatch any string containing a sequence of two to three p's.
To match any string containing a sequence of two to three p's with JavaScript RegExp, use the p{2, 3} quantifier. This pattern matches exactly 2 or 3 consecutive occurrences of the letter "p". Syntax /p{2, 3}/flags Where {2, 3} specifies the minimum (2) and maximum (3) number of consecutive p's to match. Example: Matching 2-3 Consecutive p's JavaScript Regular Expression var str = "apple pepper hippopotamus p programming"; ...
Read MoreWhat is the usage of onpagehide event in JavaScript?
The onpagehide event triggers in JavaScript when a user leaves the page and navigates away. This occurs during page refresh, clicking links, closing the browser tab, or navigating to another page. Syntax // HTML attribute // JavaScript event listener window.addEventListener('pagehide', function(event) { // Code to execute }); Example: Basic Usage Here's how to implement the onpagehide event using an HTML attribute: Navigate away from this page to see the alert! ...
Read MoreHow to set src to the img tag in HTML from another domain?
To use an image on a webpage, use the tag. The tag allows you to add image source, alt, width, height, etc. The src is to add the image URL. The alt is the alternate text attribute, which is text that is visible when the image fails to load. With HTML, you can add the image source as another domain URL by setting the src attribute to point to an external domain. Syntax Key Attributes Attribute Description src The URL of the image (can be ...
Read MoreWhat is the difference between getter and setter in JavaScript?
In JavaScript, getters and setters are special methods that allow you to define how properties are accessed and modified in objects. They provide a way to control property access while maintaining a clean interface. Getter A getter is a method that gets executed when a property is accessed. It uses the get keyword and allows you to define custom logic for retrieving a property value. The getter appears as a regular property but internally calls a function. Setter A setter is a method that gets executed when a property is assigned a value. It uses the ...
Read MoreExecuting an inner join over RFC on database tables in SAP system
You can execute inner joins over RFC on database tables in SAP systems using several approaches. You can do this by creating your own function module that can perform selection as per the requirement. Methods to Perform Inner Joins Method 1: Custom Function Module Create a custom function module in SE80 or SE37 that performs the inner join logic and returns the required dataset. This approach gives you full control over the join operations and performance optimization. FUNCTION Z_CUSTOM_INNER_JOIN. SELECT a.field1, b.field2 FROM table1 AS a ...
Read MoreProgrammer to be an SAP Functional Consultant - HR or MM
SAP HR is an older module with limited new implementations across companies. SAP HR encompasses several sub-modules including Payroll, Personal Administration, and Time Management. If you pursue a course in SAP HR, it would primarily provide conceptual knowledge, but practical implementation in companies can be challenging without hands-on experience. For SAP Module functional consultant positions, prior experience in the relevant field is highly recommended. Additionally, as a programmer, daily tasks like generating test data, testing reports, and writing specifications may not align with your technical interests. Recommended SAP ...
Read MoreExisting RFC to load table data, and to get list of tables and list of BAPI's in SAP
I am not sure that there exists a BAPI to see list of all BAPI's in SAP system. You can use the Function module RFC_FUNCTION_SEARCH to search for function modules starting with BAPI*. Getting List of BAPIs You can call Function Module BAPI_MONITOR_GETLIST to get list of all available BAPI's. This function module provides comprehensive information about Business Application Programming Interfaces available in your SAP system − CALL FUNCTION 'BAPI_MONITOR_GETLIST' EXPORTING OBJECTTYPE = p_ojtpe SHOW_RELEASE = ...
Read MoreFunction pointers in Java
From Java 8 onwards, the lambda expression is introduced which acts as function pointers.Lambda expressions are introduced in Java 8 and are touted to be the biggest feature of Java 8. Lambda expression facilitates functional programming and simplifies the development a lot.SyntaxA lambda expression is characterized by the following syntax.parameter -> expression bodyFollowing are the important characteristics of a lambda expression.Optional type declaration − No need to declare the type of a parameter. The compiler can inference the same from the value of the parameter.Optional parenthesis around parameter − No need to declare a single parameter in parenthesis. For multiple ...
Read MoreWrite a Java program to capitalize each word in the string?
You can capitalize words in a string using the toUpperCase() method of the String class. This method converts the contents of the current string to Upper case letters.Examplepublic class StringToUpperCaseEmp { public static void main(String[] args) { String str = "string abc touppercase "; String strUpper = str.toUpperCase(); System.out.println("Original String: " + str); System.out.println("String changed to upper case: " + strUpper); } }OutputOriginal String: string abc touppercase String changed to upper case: STRING ABC TOUPPERCASE
Read More