Prabhas has Published 74 Articles

Execute a script when the browser window is closed in HTML?

Prabhas

Prabhas

Updated on 03-Mar-2020 07:38:46

721 Views

The unloaded attribute triggers when you close the web browser window. You can try to run the following code to implement unloaded attribute in HTML −Example           Tutorialspoint       Simply Easy learning                function display() {             alert("Bye!");          }          

How to create a progress bar in HTML?

Prabhas

Prabhas

Updated on 03-Mar-2020 06:22:08

7K+ Views

Use the tag to create a progress bar in HTML. The HTML tag specifies a completion progress of a task. It is displayed as a progress bar. The value of progress bar can be manipulated by JavaScript.The following are the attributes −AttributeValueDescriptionmax maxIt should have a value greater ... Read More

Using Group by hour in SAP HANA table

Prabhas

Prabhas

Updated on 26-Feb-2020 10:10:15

667 Views

You can try this method to convert time to date and hour format −select to_varchar(time, 'YYYY-MM-DD'), hour(time), sum(r_time) as r_time, sum(p_time) as p_time from t1 group by date(time), hour(time) order by to_varchar(time, 'YYYY-MM-DD'), hour(time);You can also try using Series_Round() with a group by clause.select SERIES_ROUND(time, 'INTERVAL 1 HOUR') as time, ... Read More

How to convert comma seperated java string to an array.

Prabhas

Prabhas

Updated on 24-Feb-2020 12:15:58

6K+ Views

Yes, use String.split() method to do it. See the example below −Examplepublic class Tester {    public static void main(String[] args) {       String text = "This,is,a,comma,seperated,string.";       String[] array = text.split(",");       for(String value:array) {          System.out.print(value + " ");       }    } }OutputThis is a comma seperated string.

How to create an object from class in Java?

Prabhas

Prabhas

Updated on 19-Feb-2020 07:39:44

2K+ Views

An object is created from a class using the new keyword. There are three steps when creating an object from a class −Declaration − A variable declaration with a variable name with an object type.Instantiation − The 'new' keyword is used to create the object.Initialization − The 'new' keyword is ... Read More

What is the difference between keywords and reserved words in Java?

Prabhas

Prabhas

Updated on 18-Feb-2020 11:11:37

709 Views

KeywordsKeywords in Java convey a special meaning to the compiler therefore, these cannot be used as identifiers. Java provides a set of 50 keywords.abstractcontinuefornewswitchassertdefaultgotopackagesynchronizedbooleandoifprivatethisbreakdoubleimplementsprotectedthrowbyteelseimportpublicthrowscaseenuminstanceofreturntransientcatchextendsintshorttrycharfinallongstrictfpvolatileconstfloatnativesuperwhileReserved wordsAmong the list of key words list mentioned above the key words goto and const are currently not in use. They are reserved words (for the ... Read More

What is a classloader in Java?

Prabhas

Prabhas

Updated on 18-Feb-2020 10:46:23

328 Views

Java Virtual machine is the program which accepts .class files as input and converts this to system executable code.The class loader is a module in JVM it loads, links and, initialize a program.Loads the class into the memory.Verifies the byte code instructions.Allocates memory for the program.Read More

How can we compare data in two MySQL tables?

Prabhas

Prabhas

Updated on 14-Feb-2020 11:09:29

2K+ Views

Sometimes we need to identify the unmatched data from two tables, especially in the case when data is migrated. It can be done by comparing the tables. Consider the example below in which we have two tables named ‘students’ and ‘student1’.mysql> Select * from students; +--------+--------+----------+ | RollNo | Name ... Read More

Read a date filter as input in WEBI report in SAP BO

Prabhas

Prabhas

Updated on 14-Feb-2020 08:03:12

519 Views

Your requirement is one of its kinds but can be achieved. What you can try out is first create a brand new object in the context. Let's say you provided the date as first input and 5 as a weekly slice in the second input. [Date+5]=DATEADD(@prompt('Slice', 'X'{'Day', 'Month', 'Year'}, mono, constrained, persistent), ... Read More

Field not getting save from table to transparent table in SAP

Prabhas

Prabhas

Updated on 13-Feb-2020 12:27:32

267 Views

What I can understand from the problem is not type mismatch but the mismatch in size as defaults are different for each. If you change the size as per your needs, it should work.

Advertisements