
Search In
Blow code get list of Emails account from AccountManager.
AccountManager manager = (AccountManager) mActivity.getSystemService(mActivity.ACCOUNT_SERVICE);
Account[] list = manager.getAccounts();
if (list.length > 0) {
Many times we need to show our old values in a form after an error or validation stops our form from submitting. Laravel has a very nice way of retaining old values and populating it back into our form.
I myself used it in a drop down, where I want
If you want to import customize module in OpenERP(Odoo) follow the below mentioned code and paste it in your (Python).py file: →
import decimal_precision as dp
from osv import fields, osv, orm
from tools.translate import _
import one2many_sorted
cl
It limits the value range which is mentioned in column.
Example of check constraint
CREATE TABLE Persons
(
PId int NOT NULL,
LastName varchar(255) NOT NULL,
FirstName varchar(255),
Address varchar(255),
City varchar(255),
CONSTRAINT chkPerson CHECK
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
sometime its necessary to stop or unregister notification services in your app like from your setting screen then you can use these codes.
you have to create a static handler in your gcm register class
static Handler myHandler;
and in your parti
If you want to use this._super() to call the original method in OpenERP/Odoo When overriding a method using inheritance below is the example.
For example code look like below.
say_hello: function () {
setTimeout(function () {
this._sup
Split Datatable into multiple Datatables
private List<DataTable> CloneCustomerDataTable(DataTable dtClone, int numberOfRecords)
{
List<DataTable> dttables = new List<DataTable>();
int count = 0;
DataTabl
We will use SpannableString to add different colors to a string and will use the setSpan(Object what, int start, int end, int flags) method of SpannableString to change the color for defined range of characters in that string.
Here is the code:
//
Known Bug
We cannot use temporary table twice in same query.
http://dev.mysql.com/doc/refman/5.0/en/temporary-table-problems.html
However if you have not required above condition then Temporary table is best to use rather than creating real one
Ad
