Johar Ali has Published 48 Articles

How to create an array of Object in Java

Johar Ali

Johar Ali

Updated on 24-Feb-2020 11:09:51

488 Views

Array of Object class can be created which can accept any type of object. During operation on such array, instanceof operator can be used.Examplepublic class Tester {    public static void main(String[] args) {       Object[] dataArray = new Object[3];       dataArray[0] = new Integer(0);   ... Read More

How to declare a static String array in Java

Johar Ali

Johar Ali

Updated on 24-Feb-2020 10:43:45

951 Views

Following program shows how to declare a static string array.Examplepublic class Tester {    private static String[] array;    static {       array = new String[2];       array[0] = "Hello";       array[1] = "World";    }    public static void main(String[] args) {   ... Read More

what is the simplest way to print a java array

Johar Ali

Johar Ali

Updated on 24-Feb-2020 10:34:41

70 Views

To make things simple, convert the array to list and then print it.Exampleimport java.util.Arrays; import java.util.List; public class Tester {    public static void main(String[] args) {       Integer[] numbers = {1,2,3,4,5};       List list = Arrays.asList(numbers);       System.out.println(list);    } }Output[1,2,3,4,5]

How do I hide an element when printing a web page?

Johar Ali

Johar Ali

Updated on 24-Feb-2020 04:57:51

5K+ Views

To hide the element, add “display:none” to the element with CSS. @media print {    .noprint {       visibility: hidden;    } } In addition, add the element, which you want to hide inside the −    Add here the element, which you want to hide.

Binding model to sap.ui.core in SAP UI5 application

Johar Ali

Johar Ali

Updated on 14-Feb-2020 10:26:20

173 Views

Please try below where you need to prefix propertyBinding with models name −var oItemTemplate = new sap.m.ActionListItem({    title : "{checks>title}",    ... });

Parsing SAP Logon ticket with .NET

Johar Ali

Johar Ali

Updated on 14-Feb-2020 10:23:49

138 Views

SAP provides SAP SSO EXT Lib for parsing SAP Logon ticket. SAP SSO EXT library supports SAP logon tickets as a part of the java based application.You can download SAP SSO EXT library from SAP service marketplace http://service.sap.com/swdc and then search here for SAPSSOEXT.

Using > operators in SAP HANA

Johar Ali

Johar Ali

Updated on 14-Feb-2020 07:50:08

93 Views

You probably need to use cdata sections in your query. The term CDATA means, Character Data. CDATA is defined as blocks of text that are not parsed by the parser, but are otherwise recognized as markup. The predefined entities such as , and & require typing and are generally difficult ... Read More

Getting Error message “Object doesn't support property or method 'attachEvent'” in IE11 to call SAP system

Johar Ali

Johar Ali

Updated on 14-Feb-2020 07:49:15

256 Views

Note that attachEvent is no longer supported in IE11 and you should use addEventListner that can be used to bind specific function to an event.In older versions of IE, you can use like this:object.attachEvent(event, pDisp)Parametersevent [in]Type: StringA String that specifies any of the standard DHTML Events.pDisp [in]Type: ObjectThe Pointer that ... Read More

In SAP database, Importing table columns with /’s in the name

Johar Ali

Johar Ali

Updated on 28-Jan-2020 05:49:51

92 Views

I would suggest you to use BCP utility to perform an import/export of data to a text file in SQL Server. When you run below command, it loads data to a text file.BCP Db.TN out "Location of the text file " -c -S ServerName –TNow if you want to load ... Read More

Running a SQL query from specific month in SAP DB

Johar Ali

Johar Ali

Updated on 28-Jan-2020 05:13:37

178 Views

When your T0.name is char filed, you should replace Order By as below −order by case when cast(left (T0.Name,2) as int)>=8    then cast(left (T0.Name,2) as int)-8    else cast(left (T0.Name,2) as int)+4  end

Advertisements