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 Vikyath Ram
Page 2 of 10
What is nodeValue property in JavaScript HTML DOM?
The nodeValue property in JavaScript HTML DOM returns the value of a node. It returns null for element nodes and the actual content for text nodes. Syntax node.nodeValue Return Value The nodeValue property returns: Text nodes: The text content Comment nodes: The comment text Element nodes: null Attribute nodes: The attribute value Example: Getting Text Node Value You can try to run the following code to learn how to get nodeValue property. ...
Read MoreHow to set all the border right properties in one declaration with JavaScript?
To set all the border right properties in JavaScript, use the borderRight property. This property allows you to set the border color, style, and width at once using a single declaration. Syntax element.style.borderRight = "width style color"; Parameters The borderRight property accepts a string value with three components: width - Border thickness (e.g., "2px", "thick", "thin") style - Border style (e.g., "solid", "dashed", "dotted") color - Border color (e.g., "#000000", "red", "rgb(255, 0, 0)") Example You can try to run the following code to learn how to set all ...
Read MoreWhat is the difference between decodeURIComponent and decodeURI?
JavaScript provides two methods for decoding URL-encoded strings: decodeURIComponent() and decodeURI(). Understanding their differences is crucial for proper URL handling in web applications. decodeURIComponent The decodeURIComponent() method decodes all encoded characters in a URI component, including reserved characters like =, &, and ?. Syntax decodeURIComponent(encodedURIComponent) Example Test decodeURIComponent function displayComponent() { ...
Read MoreHow to parse JSON object in JavaScript?
JSON (JavaScript Object Notation) is a lightweight data format commonly used for data exchange. JavaScript provides the built-in JSON.parse() method to convert JSON strings into JavaScript objects. Syntax JSON.parse(text, reviver) Parameters text - The JSON string to parse reviver (optional) - A function that transforms the results Basic JSON Parsing Example // Simple JSON string let jsonString = '{"name": "John", "age": 30, "city": "New ...
Read MoreHow to limit input text length using CSS3?
With HTML, you can easily limit input length using the maxlength attribute. However, with CSS3, it is not possible to limit the number of input characters, since CSS deals with presentation (how your web page looks) rather than functionality or behavior. CSS cannot impose functional restrictions like character limits. The maxlength attribute is an HTML attribute that controls behavior, not presentation. Syntax /* CSS cannot limit input text length */ /* Use HTML maxlength attribute instead */ HTML Solution To limit input text length, you must use the HTML maxlength attribute − ...
Read MoreDeleting from temporary table in SAP HANA
The temporary tables in SAP HANA are session specific, which means they exist only within the current database session. For deleting data from temporary tables, you have two main options depending on your SAP HANA release version. Using TRUNCATE Command The preferred method for clearing all data from a temporary table is using the TRUNCATE command − TRUNCATE TABLE #temptable; The TRUNCATE command removes all rows from the temporary table quickly and efficiently, as it deallocates the data pages instead of deleting rows one by one. Using DELETE Command In recent SAP ...
Read MoreMerging 2 tables with similar column name SAP HANA database
This can be done by using UNION or UNION ALL operator. Both operators allow you to combine rows from two or more tables that have similar column structures. Using UNION Operator The UNION operator combines the result sets of two SELECT statements and removes duplicate rows − SELECT id, Empl_name, DeptId FROM table1 UNION SELECT id, Empl_name, DeptId FROM table2; Using UNION ALL Operator The UNION ALL operator combines the result sets and includes all rows, including duplicates − SELECT id, Empl_name, DeptId FROM table1 UNION ALL SELECT id, Empl_name, DeptId ...
Read MoreCall screen on clicking the button in SAP ABAP
Please follow the steps below to make it functional − First, open the screen painter Now, double click on the button you want to make functional Above Context Menu Form, you will find a field to enter Function code where you enter the functional code This will convert your button to a functional trigger that sends the OK code which will run the dynpro PROCESS AFTER INPUT. Now add a PAI module to this dynpro which indicates the screen you want to call when the button is ...
Read MoreRfcabapexception error while querying a number of columns using RFC_READ_TABLE in SAP
The Rfcabapexception error occurs when using RFC_READ_TABLE in SAP, but it is not because of the number of columns being queried. The actual issue is the total size of the fields you are querying, which should not exceed 512 bytes. Why This Error Occurs For RFC communication, complex data types like DATA or STANDARD tables are not supported. Therefore, the RFC_READ_TABLE function module must convert the data into a generic format, and the data is transferred as a series of lines. It is the size of these table lines ...
Read MorePassing data from one report to another in ABAP using SUBMIT
In ABAP, passing data from one report to another using the SUBMIT statement is a common requirement for modular programming. The SUBMIT statement allows you to execute another report and optionally pass selection screen parameters and internal table data to it. Basic SUBMIT Syntax The basic syntax for submitting a report with parameters is − SUBMIT report_name WITH parameter_name = value WITH SELECTION-TABLE selection_table AND RETURN. Passing Selection Screen Parameters You can pass values to selection screen parameters of the target report using the WITH clause − ...
Read More