
Search In
Liferay+Log4j:- This blog will show you how you can implement logging in Liferay with Log4j. By using this you can use the custom logging using Log4j in Lifeary. To make this possible follow the below steps:-
1. Create log4j.xml and log4j.dtd file
This is a demo of using Enum.TryParse method for converting string values to enum type.
We have function Enum.TryParse under System namespace in Enum class. This method is used for parsing string values to enum type. Signature of the method is as fo
In readonly field first we have to go in .py file (python file)
After that we have to decide where we want readonly field and then give attribute readonly to that field.
See below python code in py file for reference : -
class spartner(osv.osv):
Get Current User in Liferay:- We can find the current logged in user in liferay using the below code Script. There are two methods to get the current User of liferay as following:
1. we can directly use the PortalUtil class in Liferay.
PortalUtil.
Hello all,
Working with Rich Text Editor, some times we need to disable Tab Key, which creates space between two text or HTML Elements inside the Editor.
To do that we have following block of code:
In HTML Page :
<div id="editor" onkeydown="re
This tutorial will guide you to add OpenERP Report Designer in menu for Creating Report in openoffice.
Follow these step to add menu in openERP
1 - install base_report_designer module in database
2 - Download openoffice and open
3 - configure the
In X-Path first we have to go in View_XML file (XML file)
After that we have to decide where we want X-Path and then give Initial to last Path to that field.
See below View_Xml code in Xml file .
<?xml version="1.0" encoding="utf-8"?>
<op
These days many people use both Google Analytics tracking code as well as ClickDimensions tracking code. We use it too.
If you are using latest version of google analytics i.e. "universal analytics tracking code" and "clickdimensions tracking code",
File download functionality can be automated by setting the browser's preferences. We set the directory in which the file will be downloaded.
FirefoxProfile profile = new FirefoxProfile();
profile.setPreference("browser.download.dir", "E:\\Automati
Selectors are the entity which we used to select HTML elements from web page in jQuery. Selector in jQuery always start with dollar($)sign and parentheses like as $().
There are three ways to select the elements in a web page.
1) Select elemen
