
Search In
1) There are many different kind of CSS
selector which we can use to apply
CSS style to an element in html. ID
and Class are one of them.
Using Class attribute are easier
as compared to id because of the
negative effects of an ID selector
(the no
If you want to make print a report in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file: -
def _get_invoice_id(self, uid, datas):
...
return {’ids’: [...]}
...
’actions’: [_get_invoice_id],
’result’: {’type’:’print’,
In record data is accessible via the read() method, which takes a list of ids (as returned by search()) and optionally a list of fields to fetch.
ids = models.execute_kw(db, uid, password,
'res.partner', 'search',
[[['is_company', '=', True]
Every XML has two elements i.e.
1) Attributes and
2) Value
SELECT magazineId AS '@id'
, magazineName AS '@name'
, CoverPage AS '@coverPage'
, isActive AS '@status'
, publishDate AS '@publishDate'
, expiryDate AS '@expiryDate'
public function saveproductAction()
{
$categoryId = $_REQUEST['catId'];
$productName = $_REQUEST['ProductName'];
$productDesc = $_REQUEST['productDesc'];
$productPrice = $_REQUEST['productPrice'];
$productQty
In order to hide certain fileds from form in drupal
function hook_form_alter(&$form, &$form_state, $form_id)
{
if ($form['form_id']['#id'] == 'fomr-id')
{
$form['field_yourfiel
Below is an example of finding all the user who are stored in db and lies in the given range of Distance on basis of Longitude and Latitude.
CREATE proc [dbo].[SP_UserByDistance]
(
@UserID uniqueidentifier,--UserId
@Date datetime, --Date
@Longitude
If you have defined an input field as below:
<aui:input type="text" name="emailId" value="<%= emailId %>" />
then, you can read the value of emailId parameter in action method by the following ways:
1-
HttpServletRequest realRequest
Hello Reader's! If you're having a problem to convert a string into an array then you can use the html entity in php.
Let's see the example below:-
&
then be sure to use html_entity_decode
// Input string //
$input = 'pg_id=2_parent_id=2_docume
Hello Guys
Liferay is an EMS to develop java based web application and it's have portlets to write business logics.
Liferay provide inbuilt login and other portlets, so now we need to use functionality of them in our custom portlets.
For better u
