Posts

Showing posts from March, 2015

كيفية التعرف عل حالة السجل Record Status

السلام عليكم كان موجود فى الفورم  system variable   اسمه  :system. record _status و كان ممكن تستخدمة للتعرف على حالة السجل   new – modified    و اكيد التعرف على حالة السجل هيفيدك كتير فى ال  adf   كمان ممكن تعمل حاجة ذى دى لكن مش بالبساطة الموجودة فى الفورمز و ذلك لان الدنيا فى ال  adf   مفصولة عن بعضها مش كلها فى  layer   واحد ذى الفورم فى المثال التالي هنعرف ازاى نعمل  method   ترجعلك حالة السجل و ازاى نستخدمها فى الصفحة 1-      In the model project , go to the view object and click on java tab and generate the following java classes ·          View object class “ViewImpl” ·          View Row class “View row impl” كما بالشكل بالشكل المرفق رقم 1 لاحظ انا عملت generate  لل view row class  لان الكلاس دى هى اللى بتمثلي السجل اللى انا هتعرف على حالته اما الview object class  فهى الكلاس اللى هكتب فيها الميثود كما بالشكل 2-      In the view object class write this methods public String getRow Status ( Row row ) { EduTranDetailsVORowImpl rwImpl = (

Debugging ADF Apllication

Image
How to Enable ADF Business Components Debug Diagnostics open the Run/Debug/Profile page in the Project Properties dialog for your data model project. Click  Edit  to edit the chosen run configuration, and add following string to the  Java Options  field in the page. -Djbo.debugoutput=console Example: Diagnostic Output of Business Component Browser : [355] Oracle SQLBuilder: Registered driver: oracle.jdbc.OracleDriver [356] Creating a new pool resource [357] **** DBTransactionImpl establishNewConnection [358] Successfully logged in [359] JDBCDriverVersion: 11.1.0.7.0-Production [360] DatabaseProductName: Oracle [361] DBTransactionImpl initTransaction [362] Replacing: null with: StoreServiceAM_AddressesPageDef [363] Replacing: null with: StoreServiceAM_MostPopularProductsByCategoriesPageDef ... [537] Orders ViewRowSetImpl.execute caused params to be "un"changed [538] Column count: 41 [539] ViewObject: Orders Created new QUERY statement [540] Orders>#q computed