Posts

تاسيس الشركات ذات المسؤلية المحدودة

http://www.lawforall.info/index.pl/incorporation_of_llcs

error in internet explorer

http://www.oratraining.com/blog/2010/04/internet-explorer-has-closed-this-webpage-to-help-protect-your-computer/

how to create dynamic menu based on table

http://biemond.blogspot.com/2008/11/dynamic-menu-based-on-roles-database.html

How to create fixed list in ADF

Image
1- create a read only view object based on a query example: SELECT 'Reject' DESCRIPTION ,'BCK' CODE FROM DUAL UNION ALL SELECT 'Accept' DESCRIPTION ,'GM' CODE FROM DUAL 2- in the base view object (your main view object that you want to add the fixed list) add a new Transient attribute for example "Manager_descision" 3- Create view accessor in the main view abject that referes to the readonly query VO 4- associat a LOV to your Transient  attribute that is based on your view accessor   Note that you must add list return value to retrun the value to the database attribute to save the returned value in the DB 5- in your page drag and drop the transient attribute from the data control to the page as selectOneChoceList 6- go to the page Bindings and select the attribute in the strucure window and right click to add attribute names and attribute values 6- save and run the page

The JRE was not found in directory

Image
The JRE was not found in directory G:\weblogicServer\jdk160_21. (JAVA_HOME) Please edit your environment and set the JAVA_HOME this error occurred when deploying a page on jdeveloper. to solve this error go to tools menu and  select credentials and correct the path specified

Deleting multi-selected rows from adf table

Image
In this example i will selected rows using 1)  CTRL or SHIFT with mouse click 2)  Checkbox at the row and press Delete button for ease of understanding i created 2 separate buttons in the examples. Before start i assumed you already setup a Application with EO,VO and AM also using HR Connection - Add a Transient Attribute to VO of Boolean type named "SelectedRow" We will use this to select row Here the layout looks like - Drag a Collection from DataControl as ADF Table to JSF page - Dont Check RowSelection Checkbox - Set the table RowSelection property to multiple - Set EditingMode property to clickToEdit - Surround your table with af:PanelCollection for look and feel give table a id "myTab" - Add a toolbar in toolbar facet of Panelcollection - Add 2 toolbar buttons to your toolbar - Add partial triggers to your table reference both buttons on toolbar - Create a backing bean - Add a RichTable object to your bean with getter and setter methods. ...

Another user has changed the row with primary key oracle.jbo.Key[12 ].

Image
Try these solutions:  make sure that you check "refresh after insert" and refresh after update" for the primary key column in you entity object. in the application module tab Click the Properties tab and select jbo.locking.mode. Double click the “pessimistic”value next to the property to open the field editor and type “optimistic” over the value.Press enter. if error still exist then you must set "refresh after insert" and refresh after update" as true for all attributes in the entity object another way is to execute the View Object after the commit operation to bring back updated data to ViewObject. For this we need to override the  afterCommit()  of ViewObject class as follows:                  public void afterCommit(TransactionEvent){                         executeQuery();                  ...