Srinivas Gorla

Srinivas Gorla

45 Articles Published

Articles by Srinivas Gorla

Page 2 of 5

How to return a value from a JavaScript function?

Srinivas Gorla
Srinivas Gorla
Updated on 15-Mar-2026 3K+ Views

To return a value from a JavaScript function, use the return statement. The return statement sends a value back to the code that called the function and immediately exits the function. Syntax function functionName() { // function body return value; } Example: Basic Return Statement function concatenate(name, age) { var val = name + age; ...

Read More

How to set the horizontal alignment of text with JavaScript?

Srinivas Gorla
Srinivas Gorla
Updated on 15-Mar-2026 886 Views

The textAlign property in JavaScript controls the horizontal alignment of text within an element. You can set it to values like left, right, center, or justify. Syntax element.style.textAlign = "alignment_value"; Available Alignment Values left - Aligns text to the left (default) right - Aligns text to the right center - Centers the text justify - Stretches text to fill the line width Example: Setting Right Alignment ...

Read More

How to show a foreach loop using a flow chart in JavaScript?'

Srinivas Gorla
Srinivas Gorla
Updated on 15-Mar-2026 1K+ Views

A forEach loop in JavaScript iterates through each element of an array, executing a callback function for every item. Understanding its flow helps visualize how iteration works. forEach Loop Flow Chart Start Initialize array and index Index < Array Length? Execute callback function ...

Read More

A scale transform the element by using y-axis with CSS3

Srinivas Gorla
Srinivas Gorla
Updated on 15-Mar-2026 416 Views

The scaleY() CSS function is used to scale an element along the y-axis (vertically). This transform function stretches or compresses the element's height while keeping its width unchanged. Syntax transform: scaleY(y); Here, y is a number representing the scaling factor to apply on the vertical axis of the element. Possible Values ValueDescription 1No scaling (original size) > 1Stretches the element vertically 0 to 1Compresses the element vertically 0Completely flattens the element negativeFlips and scales the element Example: Vertical Scaling The following example demonstrates how to scale elements along the ...

Read More

Working with CSS Units

Srinivas Gorla
Srinivas Gorla
Updated on 15-Mar-2026 166 Views

CSS units are essential for defining measurements in web design such as width, margin, padding, font-size, and border-width. The length is specified using a numerical value followed by a unit such as px, em, rem, etc. Important: No white spaces are allowed between the numerical value and the unit. Syntax property: value + unit; /* Examples */ width: 300px; font-size: 1.5em; margin: 10%; Types of CSS Units CSS units are divided into two main categories − Absolute units − Fixed size units that don't change based on other elements Relative units − ...

Read More

Is C++0x Compatible with C?

Srinivas Gorla
Srinivas Gorla
Updated on 15-Mar-2026 191 Views

C++0x (later standardized as C++11) is not fully compatible with C, just as previous C++ standards were not. While C++ was designed to be largely compatible with C, there are several key differences that prevent full compatibility. Syntax // C code that may not compile in C++ // or behaves differently Key Compatibility Issues Example 1: Implicit void* Conversion In C, you can implicitly convert from void* to other pointer types. C++ requires explicit casting − #include #include int main() { /* This works in C but not in C++ */ ...

Read More

Using Function Module BAPI_ISUPARTNER_CREATEFROMDATA to create BP in SAP IS-U system

SAP
Srinivas Gorla
Srinivas Gorla
Updated on 13-Mar-2026 1K+ Views

Note that home page URL is part of Business Partner's communication data and comes under address data or address independent communication. You can use Function Module BAPI_BUPA_ADDRESS_ADD/BAPI_BUPA_ADDRESS_CHANGE for updating it with communication data or Function Modules BAPI_BUPA_CREATE_FROM_DATA/BAPI_BUPA_CENTRAL_CHANGE for address independent communication. Related BAPIs for Business Partner Management Function Module Description ...

Read More

While using SAP .NET connector, I am an getting error: Could not load file or assembly 'sapnco' or one of its dependencies.

Srinivas Gorla
Srinivas Gorla
Updated on 13-Mar-2026 2K+ Views

When working with the SAP .NET connector, you may encounter the error "Could not load file or assembly 'sapnco' or one of its dependencies." This typically occurs due to platform architecture mismatches or incorrect IIS configuration. You can try any of the below fixes − Solution 1: Enable 64-bit IIS Express This solution addresses architecture compatibility issues by enabling 64-bit support in IIS Express − Go to Run → Regedit Navigate to "HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\1X.0\WebProjects" Change Use64BitIISExpress from 0 ...

Read More

Is it possible to delete the actives while you are running a loop over an internal table in SAP ABAP?

Srinivas Gorla
Srinivas Gorla
Updated on 13-Mar-2026 1K+ Views

The DELETE command will have a result. You should make sure that once you delete the row, there should not be any reference or use of that row subsequently in the loop. The best practice is to use CONTINUE as soon as you perform deletion. Best Practices for Deleting Records I suggest avoiding "DELETE lt_itab INDEX sy-tabix" because it will change the sy-tabix (table index) and can lead to unexpected behavior. When you delete a row, all subsequent rows shift up, making the index unreliable for the ...

Read More

How to compare two ArrayList for equality in Java?

Srinivas Gorla
Srinivas Gorla
Updated on 11-Mar-2026 14K+ Views

You can compare two array lists using the equals() method of the ArrayList class, this method accepts a list object as a parameter, compares it with the current object, in case of the match it returns true and if not it returns false.Exampleimport java.util.ArrayList; public class ComparingList {    public static void main(String[] args) {       ArrayList list1 = new ArrayList();       list1.add("JavaFx");       list1.add("Java");       list1.add("WebGL");       list1.add("OpenCV");       ArrayList list2 = new ArrayList();       list2.add("JavaFx");       list2.add("Java");       list2.add("WebGL");       list2.add("OpenCV");       System.out.println(list2);       System.out.println(list1.equals(list2));    } }

Read More
Showing 11–20 of 45 articles
Advertisements