بتاريخ: 19 أغسطس 201312 سنة comment_239297 لو سمحتم يا شباب لو عندى Adf Form وبعدل فيها والفورم دي فيها flag وعاوز لما اضغط Commit يعدل قيمة الFlag ده ويخليها بواحد يعنى ببساطة After Commit يعمل update table set flag=1 هل لها طريقة في ال Adf ولو ليها طريقة هتبقى ازاي؟؟ من فضلكم لو حد يعرف يقولى محتاجها ضروري شكرا تقديم بلاغ
بتاريخ: 19 أغسطس 201312 سنة comment_239301 Dear, many ways, let us suggest 2 ways. 1- in DataModel Projcect, handle it in EO impl of your entity object, in dodml method after super and prepare for dml to achieve this 2-in Interface, handle in Back Bean Method to make the required new update based on Page Definition Iterator Enjoy !! تقديم بلاغ
بتاريخ: 19 أغسطس 201312 سنة كاتب الموضوع comment_239302 thanks dear but i'm beginner in adf and i don't know how to write code for this in example in dodml method, can u help me plz to write this code thank alot تقديم بلاغ
بتاريخ: 19 أغسطس 201312 سنة comment_239303 Dear, you have to study EO impl Triggers and Data model very well before going inside for theses technical points .. thanks تقديم بلاغ
بتاريخ: 20 أغسطس 201312 سنة كاتب الموضوع comment_239339 thanx Eng Adel for reply i studied EO impl triggers and do this code protected void doDML(int operation, TransactionEvent e) { super.doDML(operation, e); setFlag("1"); if (operation == DML_UPDATE) { try { getDBTransaction().commit(); }rollback(); throw ex; catch (JboException ex) { getDBTransaction(). } } } but when rin and pressing commit get this error java.lang.StackOverflowError cannot be cast to java.lang.Exception Could u help me plz..... تم تعديل 20 أغسطس 201312 سنة بواسطة owen540 تقديم بلاغ
بتاريخ: 20 أغسطس 201312 سنة comment_239352 Dear , 1- preferred to make your code before super. 2- u have to use super.preparefordml before checking operation == dml type. 3- don't use commit, it is wrong action in EO. good luck تقديم بلاغ
بتاريخ: 20 أغسطس 201312 سنة كاتب الموضوع comment_239355 Thanks Eng Wael I did it successfully تقديم بلاغ
بتاريخ: 22 أغسطس 201312 سنة comment_239405 السلام عليكم ممكن تشرح ماذا عملت وامل وضع الكود بعد التعديل مع التحيه تقديم بلاغ
بتاريخ: 22 أغسطس 201312 سنة كاتب الموضوع comment_239407 تفضل protected void prepareForDML(int operation, TransactionEvent e) { super.doDML(operation, e); if (operation == DML_UPDATE) { setCallStat("1"); } } تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.