
Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
Calculate the number of days between two dates
If you want to calculate the number of days between two dates, you need to make a function,pass the dates and use getTime() function.
Below is the example code :
function GetNoDays(date1, date2) {
var daysIndates = date1.getTime() - ...
SIF API to Search a data in Base Object
If you have a requirement to search data in Base Object, you can use SearchQueryRequest SIF API for same. Following example illustrate fetching first name of employee using employee id.
SearchQueryRequest request = new SearchQueryRequest();
r...
substring() method in JavaScript String
JavaScript String substring() method : The substring() method is used to extract the sub string between two points. It returns the new substring. If start point is greater than end point then it swaps automatically these points, means substring(4...
Mercury Configuration in Odoo-9
Step-1 Go to Apps and install the Mercury Payment Services application module.
Step-2 Go to Pint Of Sale Menu and click it .
Step-3 Go to the Point of Sale application, click on Configuration ->Mercury Configurations and th...
SIF API to Generate Match Tokens on Base Object
Following example illustrate how you can Generate Match Token for ALL records in Base Object using SIF API:
ExecuteBatchGenerateMatchTokensRequest req = new ExecuteBatchGenerateMatchTokensRequest();
req.setTableName("MY_BASE_OBJECT"); //...
Split a video into multiple parts using FFmpeg
Hello Readers,
If you want to break a large video into the two or more smaller clips without using re-encoding, just now ffmpeg can help you for the same.
Most of the hosting servers only provides for a certain dimensions regarding ...
Use of Server Side Script in android
Script File in Android
While building android application we have situations where we want to post data onto the server. Sometimes we need response from the server and based on that response action will be performed.
For doing that we will ...
Lookup Concept in MDM
As the term "Lookup" itself defines, you are finding something(looking for).
Basically, lookup is applied in FK's column to load the data in BO. It act a key to Load the data between two BO.
Consider an example:
You have two BO Postal Ad...
Keyboard shortcuts for Google Doc
Hello Friends,
Below are some common and important keyboard shortcuts which you can use while working on Google Doc.
Actions
Shortcut
Copy
...
Fault injection Testing
What Is Fault injection Testing ?
Fault injection testing is an software testing approach, in which by tester initiate or introduce defects or mistakes into the coding section for elaborating the covering or scope. Fault injection testing, nor...
How to send e-mail using Pentaho Kettle?
To send an e-mail:
Step1: Create a Job.
Step2: From Design menu, drag and drop Mail in your Job.
Step3: Right Click, Edit the Mail and set up Address, Server, Email Message, Attached File(if any).
Step4: Exec...
How to Enable anf disable regions in theme .info file
by placing and removing semicolon(;) in front of line we enable and disable regions in theme .info file
REGIONS - ENABLED
regions[page_top] = Page Top
regions[header] = Header
regions[highlighted] = Highlighted
REGIONS - DISABLED
...
Drupal Theme Metadata
Drupal Theme Metadata
Writing a .info file is the first step when we create a Drupal theme, .info files contain important metadata about the theme, such as the list mentioned below.
name /*required*/
name = A firt th...
Drupal Views Related Top 10 Modules
Drupal Views Related Top 10 Modules
Views Bulk Operations (VBO)
Allow bulk operations to be run on the displayed rows
Views Table Highlighter
Aloow to highlight certain views table rows based on PHP code
Better...
How to pass JavaScript variables to PHP
Many a times we got stuck in a case or situation where we have to pass JavaScript variables to PHP using a hidden input in a form. The solution for this situation is:
Solution:We cannot pass variable values from the current page javascript...
How to attach transformation log in Mail using Pentaho Kettle?
To attach a transformation log in Mail:
Step1: Right Click, edit the Transformation.
Step2: Go to Logging Settings.
Step3: Enable Specify Logfile, and provide the name and extension of file as below:
Step4: Go to Mail, edit the ...
How to modify(Remove) parent theme feature within child theme
Hello reader's, in this blog I discussed ablout "How to Modify(Remove) Parent Theme feature Within Child Theme".
We all know that parent theme and child theme follow inheritance.
The basic meaning of Inheritance is, child theme get the proper...
What is .siblings() method in jQuery?
Hello Readers,
If we want to fetch or return the all sibling elements of the selected or matched elements then we use the .siblings() method in jQuery.
It is the elements that belong to the same parent.
Syntax :
selector.siblings( [se...
Simple Zebra Table by using Css3
Hello Readers,
Here is the Example of Simple Zebra Table.
Here is the HTML
<table>
<tr>
<th>Name</th>
<th>Date of Birth</th>
<th>Age</th>
...
Finally block in Exception handling php
Welcome to FindNerd. We are going to discuss the finally block in php. We use it with Exception handling. Are you familiar with exception if not then check our
exception based blog Exception concept for help. finally block run always whenever co...
What is the use of jQuery filter?
Hello Readers,
Jquery filter is one of the jquery method. It is used to returns the elements that match the certain values from the object list.
Syntax :
selector.filter( selector )
Parameters :
selector
Below is the Code Ex...
How to exclude the records from Match and Merge?
To exclude a record(s) completely remove from Match and Merge process, regardless of any source system, using Informatica MDM.
Step 1: Add a not nuable column is BO as EXCLUDE_FROM_MATCH, with type integer and a default value 0.
Step 2: Set t...
Convert one date format into another in PHP
Date play an important role in any project. We have to change date format according to our need. If we are using PHP 5.2 and lower then for changing date format we have to parse the elements (year, month, day, hour, minute, second) manually using...
What is the join in MySQL ?
Welcome to findnerd, today we are going to discuss to join in MySQL.
Firstly let know what is join ?
An SQL JOIN clause is used to combining two or more tables and return output in single table.
So in simple word we can say that MySQL ...
What Is Installation and Uninstall Testing ?
What Is Installation and Uninstall Testing ?
In the software testing installation and uninstallation testing approaches are also very important.
Installation Testing:- Installation testing is executed to confirm if the application has been ...
How to redirect html page using jQuery ?
Welcome to findnerd, today we are going to discuss How to redirect html page using jQuery ?
In this blog you can see How to redirect html page ?
You can simply use the JavaScript "window.location" property to make a page redirect.
you c...
Exception in php
Welcome to FindNerd. We are going to discuss the Exception,what is it and how we can use it in php? First question araised that what is Exception? Exception is nothing but a runtime error. It depends totally upon the values passing at run time.
...
RTO while making requests
RTO mainly means Request Time Out
It occurs when we send request to the server and it does not give response. But it does not mean that we dont have internet connectivity sometimes RTO occurs because of delay by the responding server.
So R...
Login with linkedin in php
Follow the below steps in order to use the linkedin API.
Go to the Apps page at LinkedIn
Developer Network and login with
your LinkedIn account credentials
https://www.linkedin.com/secure/developer
Click on the Add New Application
link...
Sample SOAP request for executeBatchDelete
By using executeBatchDelete api you can clean the records in BO and its child BO.
Sample SOAP request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:siperian.api">
<soapenv:Header/&g...
How to do Array Sort
Use the Array objects sort method:
var fruitArray = ['strawberry','apple','orange','banana','lime'];
alert(fruitArray.sort()); // returns apple,banana,lime,orange,strawberry
The Array objects sort method sorts the array elements alphabetic...
Schemas in SQL
Schema or Structure can be defined in SQL
A schema is a collection of logical structures of data objects. A schema is associated with a database user and has the same name as that user. Each user have a single schema. Schema is mainly collecti...
How to upload files to Server using JSP Servlet
Step 1: Configure web.xml, add <multipart-config>
<multipart-config>
<max-file-size>1234</max-file-size>
<max-request-size>5678</max-request-size>
</multipart-config>
...
How to Create and Use Cookies in PHP
Cookies are basically small text files that is stored in browser and it is use for tracking purpose.
Cookies are also use for remember me functionalities.
Setting Cookies with PHP
setcookie(name, value, expire, path, domain, security);
...
Pagination in Cakephp
In cakephp framework there is a way which features pagination easily on your web page.
This can be done as :
Controller Code :
public $components = array('Paginator','Flash');
public function index() {
$this->paginat...
Security in Drupal
What Basic Steps You can take to make you drupal site to make it much more secure.
Actually Drupal is configured to be secure out of the box, because it restrained it's permission, but as we extend website according to our need we get playing ...
DOM in HTML JQUERY
DOM Document Object Model
DOM is structure that is used to invoke the elements of a page or a script file. It is the hierarchy of structure that
a particular document have where we want to invoke the elements of that particular document.
F...
What is a Web Worker?
Hi all,
Below is a short description of web workers.
What is a Web Worker?
Web worker is JavaScript which runs in backside without affecting the performance of site and it is independent of other the scripts,.
what web worker are f...
Bootstrap float
how to float an element to left or right.
Bootstrap provides predefined classes pull-right and pull-left which floats an element to the left or right according to the requirement. For example if you want to float an image to the right and text...
Pattern Matching using REGEXP
REGEXP:
It is similar to LIKE which is used to fetch data based on regular expression from a table.
Syntax:
SELECT columnname(s) FROM tablename WHERE columnname REGEXP pattern;
Example 1:
SELECT name FROM Employee WHERE name R...
Supported Operations in Odoo
RecordSet also support set operations you can add, union and intersect, ... recordset. For example you can see below code.
record in recset1 # include
record not in recset1 # not include
recset1 + recset2 # extend
recset1 | recs...
How to modifing Environment in Odoo?
If you need to modifiy your current context you may use the with_context() function.
self.env['res.partner'].with_context(tz=x).create(vals)
Be careful not to modify current RecordSet using this functionality:
self = self.env['res.partner']....
How to use Cursor in Odoo ?
When we use cursor first we have to move on Record Recordset and environment share the same cursor.And you can access cursor using like below code.
def my_fun(self):
cursor = self._cr
# or
self.env.cr
Note- if you need to use...
How to use thread in Odoo ?
In thread we have to move on .py file and after this using thread you have to create you own cursor and initiate a new environment for each thread. committing is done by committing the cursor,For example you can see below code.
Environment.ma...
How to use New ids in Odoo ?
In new ids context all work is done in the cache. And after that check all function and ids in python file, and creating a record in a model with computed fields, the records of the recordset will be in memory only. At that time the id&...
How to use api.onchange in Odoo ?
All the work and tasks are done in the cache in on_change context. Therefore so you dont need to be worried for altering database as the recordSet will be able to altred inside your function. Thats the main difference with @api.depends.
...
How to Access old API in Odoo ?
If you want to access old api to new api you have to move on migration method and By default, using new API you have to work on a new RecordSet class instance by yourself. But old context and model are still available in old api. means you have t...
YAML in Odoo
In YAML first we have to check all xml file in addons then after get access to the new API in Python YAML tag. .
For example you can see below code.
!python {model: account.invoice, id: account_invoice_customer0}: |
self # is now a new ...
Unittest in Odoo
In unit test first we have to check all module in addons then after access to the new API in unittest inside common.TransactionCase and others function .
For example you can see below code.
class test_partner_firstname(common.TransactionCase)...
logical expressions in Odoo
In given below table logical expressions are defined .
Operator
Meaning
Example
Result
==
equals
1 + 1 == 2
True
!=
does not equal
3.2 != 2.5
True
<
less than
10 < 5
False
>
greater than
10 > 5
True
...
