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
Articles on Trending Technologies
Technical articles with clear explanations and examples
Create multiple select list in Bootstrap
To create multiple select lists in Bootstrap, use multiple,You can try to run the following code to implement multiple select −ExampleLive Demo Bootstrap Example Country India Australia US
Read MoreBootstrap Form Control States
Bootstrap offers to style for disabled inputs and classes for form validation, Input FocusWhen an input receives: focus, the outline of the input is removed and a box-shadow is applied.Disabled lnputsIf you need to disable an input, simply adding the disabled attribute will not only disable it; it will also change the styling and the mouse cursor when the cursor hovers over the element.Disabled FieldsetsAdd the disabled attribute to a to disable all the controls within the at once.Validation StatesBootstrap includes validation styles for errors, warnings, and success messages. To use, simply add the appropriate class to the parent element.
Read MoreHow to store and retrieve date into Sqlite3 database using Python?
You can very easily store and retrieve date into Sqlite3 database using the sqlite3 module. When inserting the date in the database, pass the date directly and Python handles it automatically.Exampleimport sqlite3 import datetime conn = sqlite3.connect(":memory:", detect_types=sqlite3.PARSE_DECLTYPES) conn.execute('''CREATE TABLE TEST (ID TEXT PRIMARY KEY NOT NULL, DATE DATE)''') # Save changes conn.commit() # Insert the object directly conn.execute("INSERT INTO TEST (ID, DATE) VALUES (?, ?)", ('My date', datetime.date(2018, 1, 4))) conn.commit() print("Record inserted")OutputThis will give the output −Record insertedNow when you will fetch the values from the database, you will get the date already parsed to the datetime object.Exampleimport ...
Read MoreBootstrap .has-success class
The has-success class allows you to set success action for input −ExampleLive Demo Bootstrap Example Input with success
Read MoreHow to show for loop using a flowchart in JavaScript?
The “for” loop includes loop initialization where we initialize our counter to a starting value. The initialization statement is executed before the loop begins, the test statement which will test if a given condition is true or not. If the condition is true, then the code given inside the loop will be executed, otherwise, the control will come out of the loop.At the end comes the iteration statement where you can increase or decrease your counter. Let us see how to show for loop using flowchart in JavaScript −
Read MoreHandling errors in SAP GUI Scripting code
You can take reference from GUI Scripting help section and it can explain things in detail.It provides you default property types as per requirement. If you want to perform next step, stop or abort user step, you can use the following properties.ValueDescriptionSSuccessWWarningEErrorA Abort I InformationSee the below code that uses above property type to display different messages −Public Sub get_status_bar_value_exit_if_Error() Dim usr_resp AsString If(session.findById("wnd[0]/sbar").messagetype = "E"Or session.findById("wnd[0]/sbar").messagetype= "W") Then usr_resp =MsgBox(session.findById("wnd[0]/sbar").Text & Chr(13) &"Show the Error in SAP ?", vbYesNo) If usr_resp =vbYes Then Else Callgo_to_Sap_home End If End End If End ...
Read MoreWhat is an alert box in JavaScript?
An alert dialog box is mostly used to give a warning message to the users. For example, if one input field requires to enter some text but the user does not provide any input, then as a part of validation, you can use an alert box to give a warning message.Nonetheless, an alert box can still be used for friendlier messages. Alert box gives only one button "OK" to select and proceed.ExampleYou can try to run the following code to learn how to add an alert box −Live Demo Click the following button to see the result:
Read MoreBootstrap .has-warning class
The has-warning class allows you to set warning for input.You can try to run the following code to implement has-warning class −ExampleLive Demo Bootstrap Example Input with warning
Read MoreBootstrap Form select
A select is used when you want to allow the user to pick from multiple options, but by default, it only allows one.Use for list options with which the user is familiar, such as states or numbers.Use multiple = "multiple" to allow the users to select more than one option.ExampleYou can try to run the following code to implement Bootstrap form selectLive Demo Bootstrap Example Country India Australia US
Read MoreBootstrap .has-error class
The has-error class allows you to set error for input.You can try to run the following code to implement the has-error classExampleLive Demo Bootstrap Example Input with error
Read More