الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

كيف يمكن عمل زر تعديل ؟

Featured Replies

بتاريخ:

السلام عليكم ورحمه وبركاته
الاخوه الاعزاء في هذا المنتدي الجميل اود من خبراء adf
لنفرض عندي صفحه كيف يمكن جعل الصفحه غير قابله لتعديل البيانات
بعد الاستعلام الا في حالة أن المستخدم يضغط زر تعديل و ماهو الكود المناسب لزر
ولكم جزيل شكري

بتاريخ:

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;
}

تم تعديل بواسطة oracle_itself

بتاريخ:
  • كاتب الموضوع

مشكور اخي الكريم
في عند سؤال اخر ازي اعمل لوب علي الاتريتر للحصول علي اسم الايتم فيه

بتاريخ:

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

بتاريخ:
  • كاتب الموضوع

شكرا لك اخي وائل و اعتقد ان الكود دا فيه نوع من الخصوصيه بمعني هناك جار فايل خاص بيك
اتمني التوفيق لك

بتاريخ:

yes its right

:)

تم تعديل بواسطة oracle_itself

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.