Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

How to use CheckBoxList in Asp.Net MVC

How to use CheckBoxList in Asp.Net MVC For using CheckBoxList in Asp.Net MVC, we have to follow the following steps:- Step1: First download the CheckBoxList from Nuget, Once it is downloaded we can see the reference of MVCCheckBoxList in ...

How to change the enter key to search key in soft keyboard

If you want to change the enter key to search key, here is the code to get the same:- Step 1:- In your xml file add the following EditText <EditText android:id="@+id/ed_search_key" android:layout_w...

Superglobal Variables in PHP

Superglobals variables in php are the built-in array. They are available in every scope. You can access the superglobal variable inside and outside the methods. PHP Superglobals variables: $_COOKIE contains values provided to the scri...

How to use web-services in OpenERP/Odoo?

If you want to use WebServices in OpenERP(Odoo) follow the below mentioned code and paste it in your WebServices XML-RPC file: import xmlrpclib define HOST, PORT, DB, USER, PASS url = 'http://%s:%d/xmlrpc/common' % (HOST,PORT) sock = ...

How to make wizard execution in OpenERP/Odoo?

If you want to make wizard execution in OpenERP(Odoo) follow the below mentioned code and paste it in your wizard views_xml file: <record id="action_idea_cleanup_wizard" model="ir.actions.act_window"> <field name="name">Clean...

How to make wizard views in OpenERP/Odoo?

If you want to make wizard views in OpenERP(Odoo) follow the below mentioned code and paste it in your wizard views_xml file: <record id="action_idea_cleanup_wizard" model="ir.actions.act_window"> <field name="name">Cleanup</f...

How to make Animated waiting Progressbar in android.

Here I have created Animated waiting bar. It can be used to display page or when we have app open then it will shown status of work being complete.Progressbar class provide method to work on progress bar like setProgress(),setMessage,setProgress...

How to make security system in OpenERP/Odoo?

If you want to make security system in OpenERP(Odoo) follow the below mentioned code and paste it in your ir.model.access.csv file: "id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" "access_idea_id...

How to make workflow transitions in OpenERP/Odoo ?

To make workflow transitions in OpenERP/Odoo ? If you want to make workflow transitions in OpenERP(Odoo) follow the below mentioned code and paste it in your workflow_xml file: <record id="trans_idea_draft_confirmed" model="workflow.trans...

How to use wordwrap() Function in php ?

What is wordwrap() Function in php ? wordwrap() Function wrap a string into incipient lines when it reaches a concrete length. So,basicaly use of wordwrap() wraps a string into new lines. wordwrap() include space also. You can take re...

How to use __openerp__.py in OpenERP/Odoo ?

The __openerp__.py file has containing list of dependencies,conditioning startup order,data files to load at module install,always load groups first and load access rights after groups. For example code below. {'name' : 'SHIVA', 'version'...

Create a Realistic, Ticking Analog Clock in SVG using the Math Functions

With the help of SVG you can create the clock, by using both the Date object and the Math objects, in addition to a timer to manage the clock hands. The JavaScript manage the hands as a derivative of other applications that also implement analo...

Re-using layouts with include and merge tags in Android

In most of the android application we have to reuse certain set of layouts. Every time writing same set of code(xml) slows down the user interface performance. To achieve the feature of re-usabilty in our application we have tags include and merg...

Finding the Radius and Center of a Circle to Fit Within a Page

With given width and height of a page element, you need to find the radius and its center point of the largest circle that fits within that page element. Find the smaller circle of the width and height; divide this by 2 to find the radius: ...

Javascript seach box with matched case

Here is the example for making a search box with a matched case which shows the searched text with the highlighted matches available. You have to paste your paragraph text in the text-area and enter the searching keyword in input box given below ...

How to use __init__.py in OpenERP/Odoo ?

The __init__.py file is the Python module descriptor, because an OpenERP module is also a regular Python module. 1- Import all files & directories containing python code 2-import idea, wizard, report The __openerp__.py is the OpenERP mo...

Math.pow() Method in javascript

The Math.pow() function calculates the power of x to y, x ^ y. Matrix exponentiation is supported for square matrices x, and positive integer exponents y. It returns the base to the exponent power, that is, base exponent. It Gets a number raised ...

How to make typical module structure in OpenERP/Odoo?

In Odoo module is contained in its own directory within the server/bin/addons directory in the server installation. profile_module name, in which we put an empty __init__.py file (as every directory Python imports must contain .py file like in ...

Math exp Method

This Method calculates the exponent of the value. Returns enumber, where enumber is the argument, and e is Euler's constant, the base of the natural logarithms. For matrices, the function is evaluated element wise. Syntax:- Math.exp(numbe...

Html dialog box

This is an html tag which creates popup dialog box on a web page.It represents interactive component like window. Following is an example of Html dialog box: <div> <dialog id="myFirstDialog" style="width:50%;background-color:#F4FF...

How To Install Plugins in Cake PHP

There are four ways to install a plugin in CakePHP-> Plugin install through Composer Manually plugin install Plugin installed As Git Submodule By Git Cloning 1- Manually To install a plugin manually in CakePHP, you just have to m...

How to set - unset layout in CakePHP ?

How to set/unset layout in CakePHP ? CakePHP provides by default layout in (app/View/Layouts/default.ctp) file, so we need different layouts for different pages as per our requirement. Change the default layout in all web pages var $layo...

How to use trim() Function in php ?

Why we use trim() Function in php ? The trim() function mainly use for removes the spaces from the beginning and the end of the string. trim() function will divest and control characters such as : " " an ordinary space. "\t" a t...

How to make a Grid in Asp.Net MVC

How to make a Grid in Asp.Net MVC In this Blog we will see, how to make a Grid using WebGrid in Asp .Net MVC. Step 1: Create a MVC application. Step 2: Now make a Model say Student which will hold the data to be displayed in the Grid. ...

SQL SELECT COUNT

To return the number of rows in a query,we use COUNT. It counts the numbers of records. the syntax of SQL COUNT statement. SELECT COUNT (expression) FROM tables WHERE conditions; SQL SELECT COUNT(column_name) SELECT COUNT(...

ALTERNATE KEY IN SQL

Keys are used to uniquely identify records in a table. it is used to establish relation within a table. Primary keys,Foreign keys, candidate keys and alternate keys are used in tables which identify rows. All keys other than primary key are ...

What is a box model?

The box model is a box that wraps the HTML element. According to the box model concept, element of every is a rectangular box and may have width, height, padding, borders, and margins. There are few new properties in CSS, to better understand. ...

How to update a field in the database in cakephp 2.x

To update a a field in the database in cakephp we uses an array, the task is done as, $this->request->id = $id; $data=array(); $data['User']['id'] = $this->request->id; $data['User']['fname'] = $filename; $this...

How to upload a file in cakephp 2.x

Uploading a file in your application can be used to upload an image or documents. With the help of the cakephp html we can create a form with the input field of type file which allows to browse and select the file from your systems. lets cr...

Alert classes

how to make alert messages in bootstrap. Bootstrap prvoides an predefined class .alert for creating alert messages which can be customized according to the requirement. Alerts are created with the .alert class, followed by one of the four co...

What is image sprite and its uses in CSS?

CSS image sprite is a single image like a image-sheet with all the images needed for your website. Image sprites is having all the images needed at one place in a single image to it makes the browser work easy while the browser try to ...

Circular Doubly Linked List

This is an implementation of Circular Doubly Linked List in C Programming Language.   #include stdio.h #include stdlib.h struct node { int root, *next, *prev; struct node n; } n*...

Mapping a domain to an IP in godaddy

Mapping a domain to an IP in goDaddy Go To My accounts in Godaddy and select manage domains. Select the domain where you need to map the ip i,e. domain.com Click on manage and then click on DNS zone file option See the @ in hosts and cli...

How to use of "ksort" in php

Firstly we will know what is the use of "ksort" in php "ksort" is used to sort the array by key and this is useful for associative arrays. You can see below example for "ksort". <?php //suppose we want sort employee age from ...

What is Mobile Testing?

Mobile Testing: Testing is the core features of the mobile like Call, message, notification, audio features etc. Mobile application testing is a process for its functionality, usability and consistency by which application software developed fo...

How to use name_get method in OpenERP(Odoo)?

If you want to use name_get method in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file: def name_get(self, cr, user, ids, context={}): if not len(ids): return [] res = [] for r in self.read(cr, user, ids, [n...

When to use tag img or css background images

Proper uses of img tag You can make use of IMG in case you are looking forward to enable people to print your page and the image has to be present there by default. For images that have important meanings, you can go for IMG wi...

How to bind DropDown using model in Asp.Net MVC

How to bind DropDown using model in Asp.Net MVC For Binding the Dropdown using Model, we have to follow the following steps:- Step 1: First create a model as follows:- Example: Public Class DropdownBind { public List<SelectListI...

How to make print a report in OpenERP(Odoo)?

If you want to make print a report in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file: - def _get_invoice_id(self, uid, datas): ... return {ids: [...]} ... actions: [_get_invoice_id], result: {type:print,...

How to set form action via ajax

Hello Reader's If you want to make your form reusable and set the action dynamic via ajax, Then you can make the ajax call like in the example below:- <form id = 'idForm'> ... </form> and the script will go like this...

how to use media query to make your page responsive in html?

Hello, I am sharing an example of html with the use of mediaquery. Here in the given example below in which i have used 3 separate files,namely 1:Html (a file with .html extension) 2:External css style sheet (a file with .css extensio...

How to use transaction_fields in OpenERP(Odoo)?

If you want to use transaction_fields in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file: - def name_get(self, cr, user, ids, context={}): if not len(ids): return [] res = [] for r in self.read(cr, user, i...

How to create a UIAlertView in swift

Hello friends , To create UIAlertView in swift -> UIAleartView is deprecated in iOS 9, so you need to use UIAlertController instead . let alertController = UIAlertController(title: test alert, message: this is a test alert, preferredS...

jQuery Simple Responsive PopupBox or Modal Box

In this blog, we have created an example of a very simple and responsive jQuery popup box. Popup box is used frequently in the webpages for various purpose (Notification message, Alert message etc. ). If you need a simple and ele...

How to change the main module file in OpenERP(Odoo)?

We will have to remove .py file, rename the class and its attributes to something like below code. from osv import osv, fields class travel_hostel(osv.osv): _name = travel.hostel _inherit = res.partner _columns = { rooms_id: fields.one2...

How to modify the URL of the current page without reloading the page in JavaScript?

To modify the URL without reloading,a pushState method has come in HTML5 which is quite same as window.location but does not refresh or reloads the page. This method will first check if the browser supports HTML5,then the state object containi...

How to make profile module in OpenERP(Odoo)?

In profile module we have to create a profile, we only have to create a new directory in server/addons and we should call this folder. profile_module name, in which we put an empty __init__.py file (as every directory Python imports must contai...

New term for PHP, Composer

Composer is nothing but a tool which is useful for dependencies management. Composer supports only 5.3.2+ version of PHP. Now a days most of the frameworks are using PHP composer. This idea comes from node's npm and bundler from ruby. You should ...

What is the use of % in javascript

using the '%' will make the modular opera, Function of % is return the remainder of the two numbers:- Lets see the example below:- <script> var x = 100; //var 1 var y = 30; //var2 var z = x % y; // z will be the remainder a...

How to get access right in OpenERP(Odoo)?

If you want to get access right in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file: class test_partner_firstname(common.TransactionCase): def setUp(self): super(test_partner_firstname, self).setUp() self.u...
1 177 269
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: