Search In
Sometimes we need to detect where ENTER key is pressed or not to do some action.
The "enter" key is represent by code “13” (ASCII value).
To detect whether ENTER key is pressed on Web-page or inside an input field, we can bind keypress() event to
This event will be fired when the element loses focus. Mostly it is used with the form validation code(e.g. with the input field in a form). onfocus event is the opposite to the onblur attribute.
Syntax :
<element onload="script">
Example :
Table is an abstract class which models the database and need to put constructor which declares the table name and primary key and also override some methods. It is used for creating,updating, reading and deleting of records in database. As this cla
Hi Reader’s,
In this blog we will discuss about the concept of keys used in SQL SERVER. These keys play a very important role in database related task in SQL like retrieve data/record from the table according to the requiremen
"Back-End Testing" and "DB Testing" is the same term. In this we use to verify the DB with regard to the data which we submit though UI / getting delivered on the UI. Major entity around which the whole testing activity revolves is "Data". Some of th
find_in_set() is a function which returns the position of a string within second string.
We mostly found a situation where we want to fetch records on the basis of particular string and that string are stored in comma separated values in database
It is a common requirement in SQL server development to update top N records in SQL server.In this blog we will see two approaches to accomplish the same.
1) Using UPDATE with TOP
UPDATE TOP (100) Table1 SET field1 = 1
However without an ORDER
If you want get multiple statement_lines.Then you have to follow the following code in your .py file.
import logging
import sets
from openerp import models, fields, api
_logger = logging.getLogger(__name__)
class barcode_rule(models.Model
Welcome to FindNerd.
Today we are going to discuss settings api functions and how we can use these functions to add extra field on general settings page. Here we will use three functions. Please have a look.
add_settings_secti
This article demonstrate different methods to create an active form with different input fields in Yii 2. Yii 2 provides yii\widgets\ActiveForm class which is the best way to create forms based upon models. Another helper class yii\helper