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

Search In

Difference between id and class attribute

1) There are many different kind of CSS selector which we can use to apply CSS style to an element in html. ID and Class are one of them. Using Class attribute are easier as compared to id because of the negative effects of an ID selector (the no

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 read records in OpenERP/Odoo ?

In record data is accessible via the read() method, which takes a list of ids (as returned by search()) and optionally a list of fields to fetch. ids = models.execute_kw(db, uid, password, 'res.partner', 'search', [[['is_company', '=', True]

SQL - Generating XML 2

Every XML has two elements i.e. 1) Attributes and 2) Value SELECT magazineId AS '@id' , magazineName AS '@name' , CoverPage AS '@coverPage' , isActive AS '@status' , publishDate AS '@publishDate' , expiryDate AS '@expiryDate'

Programatically create products in Magento

public function saveproductAction() { $categoryId = $_REQUEST['catId']; $productName = $_REQUEST['ProductName']; $productDesc = $_REQUEST['productDesc']; $productPrice = $_REQUEST['productPrice']; $productQty

Hide certain fields from the form in Drupal

In order to hide certain fileds from form in drupal function hook_form_alter(&$form, &$form_state, $form_id) { if ($form['form_id']['#id'] == 'fomr-id') { $form['field_yourfiel

Finding Distance on basis of Longitude and Latitude from Database

Below is an example of finding all the user who are stored in db and lies in the given range of Distance on basis of Longitude and Latitude. CREATE proc [dbo].[SP_UserByDistance] ( @UserID uniqueidentifier,--UserId @Date datetime, --Date @Longitude

How to read ActionRequest parameters?

If you have defined an input field as below: <aui:input type="text" name="emailId" value="<%= emailId %>" /> then, you can read the value of emailId parameter in action method by the following ways: 1- HttpServletRequest realRequest

How to convert string into an array using PHP

Hello Reader's! If you're having a problem to convert a string into an array then you can use the html entity in php. Let's see the example below:- & then be sure to use html_entity_decode // Input string // $input = 'pg_id=2_parent_id=2_docume

Accessing the user from a liferay portlet

Hello Guys Liferay is an EMS to develop java based web application and it's have portlets to write business logics. Liferay provide inbuilt login and other portlets, so now we need to use functionality of them in our custom portlets. For better u

1 … 69 … 466
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: