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

Search In

Extract value from JSONArray in Javascript

Hello Guys, I will explain that how to extract values from JSONArray String in Javascript. For example we have this jsonarray string below: var jsonarraystr ='[{ "city": "Jaipur", "state": "Rajasthan", }, {

How to use predicate in ios

In iOS we can use Predicates in order to get fast response. Mostly iOS developers use Predicates in search functionality to filter it as user types in search bar textfield. Let suppose you have an array named as youDataArray which contains string

How to get the invoice associate with the picking of invoice in OpenERP/Odoo ?

Step-1 Go to picking_invoice_relation module. Step-2 invoice->invoice.py. Step-3 After that used below code in invoice.py file. if not isinstance(ids, types.ListType): # Ensure it is a list before proceeding. ids = [ids]

How to secure your joomla admin url

First you need to create a new folder directory inside root folder and create index.php where you need to create cookie. $mysecurecookie="123456"; setcookie("admincookie",$mysecurecookie,0,"/"); header("Location: /administrator/index.php"); Now

How to convert given seconds into day format using PHP

On converting the given time in seconds you have to follow the calculation in days and hours etc. Using PHP you can get the format by using the code below:- Here I created the function ConvertToSec ($sec) as param: function ConvertToSec($sec) {

How to generate random number using Javascript

In Javascript you have a number of functions to genrate random numbers between two given digits. Some of them are inbulit and some you can create for your own, But the simplest way to perform the operation is the code below:- // Returns a random int

How to use method decorators in openERP/Odoo ?

If you want to use method decorators in OpenERP(Odoo) follow the below mentioned code and paste it in your (Python).py file: → model = self.pool.get(MODEL) ids = model.search(cr, uid, DOMAIN, context=context) for rec in model.browse(cr, uid, ids, co

How to use Classical inheritance in openERP/Odoo ?

When using the _inherit and _name attributes together, Odoo creates a new model using the existing one as a base. The new model gets all the fields, methods and meta-information from its base. For example you can take idea from b

How to use search function in OpenERP(Odoo)?

In search function returns directly a RecordSet. In below code i have explain search function. def LinkedIn_check_similar_partner(self, cr, uid, LinkedIn_datas, context=None): res = [] res_partner = self.pool.get('res.partner')

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

1 135 408
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: