بتاريخ: 20 نوفمبر 201213 سنة comment_229314 السلام عليكم ورحمه وبركاتهالاخوه الاعزاء في هذا المنتدي الجميل اود من خبراء adfلنفرض عندي صفحه كيف يمكن جعل الصفحه غير قابله لتعديل البياناتبعد الاستعلام الا في حالة أن المستخدم يضغط زر تعديل و ماهو الكود المناسب لزرولكم جزيل شكري تقديم بلاغ
بتاريخ: 20 نوفمبر 201213 سنة comment_229318 Dear Majed you can do it by many ways , i will give you one idea and may matches your problem, if not reply with more details about your idea Simply, bind all your items to back bean with unique names then Make the properites of your Items needed to be updated Disabled = true, make Action Mathod to your Update Button to make the following Example : let us we have button executing the below method to enable 2 items for modification .. ExtendReason and ExtendTenderDate public String PrepaireUpdateStatusForItems (){ getExtendReason().setDisabled(false); // Enable Text Item getExtendTenderDate().setDisabled(false); // Enable Date Item RequestContext.getCurrentInstance().addPartialTarget(getExtendReason()); // PPR RequestContext.getCurrentInstance().addPartialTarget(getExtendTenderDate()); // PPR return null; } تم تعديل 20 نوفمبر 201213 سنة بواسطة oracle_itself تقديم بلاغ
بتاريخ: 21 نوفمبر 201213 سنة كاتب الموضوع comment_229334 مشكور اخي الكريمفي عند سؤال اخر ازي اعمل لوب علي الاتريتر للحصول علي اسم الايتم فيه تقديم بلاغ
بتاريخ: 22 نوفمبر 201213 سنة comment_229357 Dear, many ways to do it, may u get View Object of Iterator or Cast to Rowiterator , Difference is, in first way you can re execute and get data under any conditions regardless exist in Iterator but in second one, you will use only data retrieved in first time one example using first way public void ReturnName(String UserID) { ViewObject AllPages = cwc.AccessIteratorBinding("XXXXXXXXVO1Iterator").getViewObject(); AllPages.reset(); AllPages.setWhereClause(null); try { AllPages.executeQuery(); } catch (JboException e) { cwc.Validate(FacesContext.getCurrentInstance(), cwc.AccessBundleItemValue("CS.view.CS-InterfaceBundle", "ValidatorMessageHeader7"), cwc.AccessBundleItemValue("CS.view.CS-InterfaceBundle", "ValidatorMessageFooter7"), 1); // Validation Message From Bundle } if (AllPages.getEstimatedRowCount() > 0) { Row AllPagesRow; while (AllPages.hasNext()) { AllPagesRow = AllPages.next(); System.out.println(AllPagesRow.getAttribute("Name").toString()); } } AllPages.closeRowSet(); AllPages.setWhereClause(null); AllPages.reset(); } Good Luck تقديم بلاغ
بتاريخ: 24 نوفمبر 201213 سنة كاتب الموضوع comment_229398 شكرا لك اخي وائل و اعتقد ان الكود دا فيه نوع من الخصوصيه بمعني هناك جار فايل خاص بيكاتمني التوفيق لك تقديم بلاغ
بتاريخ: 26 نوفمبر 201213 سنة comment_229485 yes its right تم تعديل 26 نوفمبر 201213 سنة بواسطة oracle_itself تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.