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

Search In

Use multiple tables join in YII custom query

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

The addEventListener() method in Javascript

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

SQL Foreign Key

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

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, ids, [’name

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, [’name’,’zip

Compare two numbers

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

How to assign role to user in liferay

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

How to Compute the quantity invoiced If case of a refund in openerp(odoo)-9

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

How to use query() method in OpenERP/Odoo ?

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

Delete a row from list on a click of a button

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

1 … 89 … 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: