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 Nikitha N
Page 3 of 6
Which PHP functions are used in the PHP script to fetch data from an existing MySQL table?
PHP provides several functions to fetch data from an existing MySQL table. The most commonly used functions are mysql_query() for executing SQL queries and mysql_fetch_array() for retrieving rows from the result set. mysql_query() Function This function executes an SQL query against a MySQL database and returns a result resource on success or FALSE on failure ? Syntax bool mysql_query( sql, connection ); Parameters Parameter Description sql Required − SQL query to fetch data from an existing MySQL table connection Optional − MySQL connection resource. If not ...
Read MoreImplementing tree structure in Sapui5 and restricting parent property
Note that sap.ui.model.ClientTreeBinding which is used by TreeTable in JSONModel or XMLModel supports the parameter arrayNames. You need to pass an array of the model property names to create a sublevel. This parameter tells the TreeTable which properties in your data contain child nodes, enabling the hierarchical tree structure. Implementation Methods XML View Implementation In XML view, you can bind the TreeTable rows using the following approach − JavaScript Controller Implementation ...
Read MoreGetting MIN and MAX dates in table in SAP Web Intelligence while using a Break
This can be achieved by creating an Indicator as per condition you are looking for − minimum drawn date time for POST-Test and Maximum drawn date time for PRE-Test. Once you create this indicator, it will show "Y" for the rows highlighted in yellow as per condition and "N" for other rows. Method 1: Using Indicator with MIN and MAX Functions Create an indicator variable using the following formula − =If ([Drawn date] = Min([Drawn date]) In ([Patient ABO/RN]) Where ...
Read MoreProperties of SAP ABAP Development Objects
Similar to reflection in JAVA we have RTTS in SAP. RTTS stands for Runtime Type Services. It provides you with ways to retrieve the definitions of variables and lets you create a new variable during program execution. RTTS comprises of two sub-components − RTTI − Run Time Type Identification RTTC − Run Time Type Creation As the name suggests, RTTI is responsible for retrieving the definitions of variables and types whereas RTTC is responsible for the creation of new variables with provided definition at run-time. RTTI − Run Time ...
Read MoreWhat is ABAP? Explain ABAP OOP feature in detail?
ABAP stands for Advanced Business Application Programming. It is one of the primary programming languages used for developing programs and applications for SAP R/3 systems and its related modules. It is a high-level language with respect to SAP as it is understood and known only to SAP environment. The latest version of ABAP which is ABAP Objects follows Object Oriented paradigm. Also, it is fully backward compatible with applications written in previous versions of ABAP whether it is ABAP/4 or other which were highly impressed by COBOL. ...
Read MoreHow to check if array contains three consecutive dates in java?
To check to find whether a given array contains three consecutive dates:Convert the given array into a list of type LocalDate.Using the methods of the LocalDate class compare ith, i+1th and i+1th, i+2th elements of the list if equal the list contain 3 consecutive elements.Exampleimport java.time.LocalDate; import java.time.Month; import java.util.ArrayList; import java.util.Collections; import java.util.Date; import java.util.List; public class ConsicutiveDate { public static void main(String args[]) { String[] dates = {"5/12/2017", "6/12/2017", "7/12/2017"}; List localDateList = new ArrayList(); for (int i = 0; i
Read MoreHow to convert a list collection into a dictionary in Java?
Following is an example to convert a list collection into a dictionary in Java.Exampleimport java.util.ArrayList; import java.util.Dictionary; import java.util.Hashtable; public class CollectionDictionary { public static void main(String[] args) { ArrayList list = new ArrayList(); list.add("JavaFx"); list.add("Java"); list.add("WebGL"); list.add("OpenCV"); System.out.println(list); Dictionary dictionary = new Hashtable(); Hashtable hashTable = new Hashtable(); hashTable.put(1, list.get(0)); hashTable.put(2, list.get(1)); hashTable.put(3, list.get(2)); hashTable.put(4, list.get(3)); System.out.println(hashTable); } }Output[JavaFx, Java, WebGL, OpenCV] {4=OpenCV, 3=WebGL, 2=Java, 1=JavaFx}
Read MoreHow to convert an array to string in java?
The Arrays class of the java.util package provides toString() methods for all primitive data types and object. These methods accept an array and return its string representation.Therefore, to convert an array to string pass the required array to this method.Exampleimport java.util.Arrays; public class ArrayToString { public static void main(String args[]) throws Exception { int[] myArray = {23, 93, 56, 92, 39}; String str = Arrays.toString(myArray); System.out.println(str); } }Output[23, 93, 56, 92, 39]
Read MoreCan i refer an element of one array from another array in java?
Yes, you can −int [] myArray1 = {23, 45, 78, 90, 10}; int [] myArray2 = {23, 45, myArray1[2], 90, 10};But, once you do so the second array stores the reference of the value, not the reference of the whole array. For this reason, any updating in the array will not affect the referred value −Exampleimport java.util.Arrays; public class RefferencingAnotherArray { public static void main(String args[]) { int [] myArray1 = {23, 45, 78, 90, 10}; int [] myArray2 = {23, 45, myArray1[2], 90, 10}; System.out.println("Contents of the 2nd ...
Read MoreDifference between private, public, and protected modifiers in C++
Data hiding is one of the important features of Object Oriented Programming which allows preventing the functions of a program to access directly the internal representation of a class type. The access restriction to the class members is specified by the labeled access modifiers − public, private, and protected sections within the class body.The default access for members and classes is private.Exampleclass Base { public: // public members go here protected: // protected members go here private: // private members go here };A public member is accessible from anywhere outside the class but within a program. ...
Read More