
Search In
In yii we can write our custom or row query for complex queries here is an example of custom query with multiple table joins
$data = Yii::app()->db->createCommand()
->select('column1.column2,column3.name')
->from('table')
->join('tab
an event listener method fires whenever user clicks on a button. It attaches an event handler to the document.
Example
<!DOCTYPE html>
<html>
<body>
<p>This is the example of addEventListener() method.</p>
<butto
Foreign Key is used to establish a link between two tables . It always define in reference of Primary key ( another table ) . It act as a Primary key in its own table and foreign key for another table .
Difference between Primary key and Foreign key
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, ids, [’name
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, [’name’,’zip
Can you tell me why this isn't working with comparing numbers?? All assistance is truly & greatly appreciated.
function init(){
var a = document.getElementById("a").value;
var b = document.getElementById("b").value;
var compare = do
Hello guys
Here, I assign custom created roles to user from custom portlet in liferay 6.2.
I create three regular roles i.e vendor, client and standard user from liferay portal.
Now, I assign the role to particular user from liferay portlet using
To Compute the quantity invoiced If case of a refund in openerp to Compute the quantity invoiced. If case of a refund, the quantity invoiced is decreased. Note that this is the case only if the refund is generated from and function given below to us
Odoo web provides a helper for easy and clear questioning of models query() which functions as a shortcut for the usual combination of search() and read(). As shown in example code given below.
model.query(['name', 'login', 'user_email', 'signature
If you want to delete a particular list (li) from the listing, you can easily do this with the following code.
$('#demo ul li[rel="'+id2+'"]').remove();
<div is="demo ">
<ul>
<li rel="id1">This is just a demo. </li&g
