
Search In
To create writer function in openerp you have to override the create and write methods, as show in example below.
Example:- use this code to write and override function in openerp
def write(self, cr, uid, ids, values, context = None):
res = supe
To make a copy of a table in MySQL you need to execute the following statement:
use databasename;
Create table new_table_name
select * from existing_table_name
where conditions
For example:
We have database demo having table1. We required to crea
Hello Readers.
Node.js is very popular in market in creating of real time applications.Here's the example of how we can create the server in our local system to run the Node.js applications.
var http = require('http')
, static = require('no
How to create function for split string in SQL
Function accepts two parameters first the concatenated string and second the delimiter character.
CREATE FUNCTION [dbo].[Split](@String nvarchar(4000),@Delimiter char(1))
RETURNS @Results TABLE (Items
To take backup of MySQL database only you need to execute the following command:
mysqldump -u [username] –p[password] –no-create-info [database_name] > [dump_file.sql]
Here, we will use the –no-create-info to take data backup only.
Check the rows of column is either greater than zero or not
Use function DefaultView
Pass the parameters true for distinct, and create new string for giving columns
if (dt1.Rows.Count > 0)
{
DataTable dt2 = dt1.DefaultView.ToTabl
With the help of <marquee> tag we will create a scrolling piece of text or image display either horizontally across or vertically down. Here I have created three text first text moves up to down ,second text should run from right to left
For write error in a file we use error log. In cakephp we can create error by using keyword CakeLog. For example
try {
//code here
} catch(Exception $e) {
CakeLog::write('error1', $e->getMessage());
}
and yo
How to create background of two colors.
In bootstrap we can create background of two colors with the help of gradient.You can also specify the angle os standard two color.
#gradient > .vertical(#333; #000);
#gradient > .horizontal(#333; #000
Hello all, Below is the process to create Line Items in DPP (Double Click for Publishers),
To create a line item first you need to create an order if the order is already created then you don't need to do that, else every time whenever you have new