الانتقال إلى المحتوى
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.

عمل Disable لي لكل Input Item علي البيدج

Featured Replies

بتاريخ:

محتاج اعمل  disable لكل الايتم بعد لما ارمي قيمه 0 في الداتا بيز

ملاحظه كل الايتم محطوطه في  panel grid layout

بتاريخ:

يجب تنفيذها على كل item

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

ايوة يابشمهندس بالظبط كدا 

بتاريخ:

في الواقع أنا أقول لك أنه يجب تنفيذ الكود على كل عنصر موجود في الصفحة

لا يوجد كود يقوم بتنفيذ الخاصية برمجياً لجميع العناصر

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

طيب ياريت بشمهندس الطريقة 

بتاريخ:

ضع الخاصية disabled واكتب فيها التعبير مثل المثال التالي

disabled="#{bindings.attribute.inputValue == '0'}

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

تسلم يابشمهندس جربتها وشغالة تمام بس للاسف هضطر اعمل كدا ف items كتير عندي

بتاريخ:

لا بد أن يتعب المبرمج قليلاً

  • بعد 2 أسابيع...
بتاريخ:

تستطيع إستخدام الكود التالي كتبته كود شامل لعمل disable  لكل components  موجود على الصفحة وأي كان نوعه ليس فقط input text حسب الشرط الذي لديك

    public String disableAction() {
        for (UIComponent child : getPfl1().getChildren()) 
        {       
          if (child instanceof RichInputText)
          {
           ((RichInputText)child).setDisabled(true);
          } 
            if (child instanceof RichInputText)
             {
              ((RichInputText)child).setDisabled(true); 
             }
              else if (child instanceof RichSelectBooleanCheckbox) 
               {
                ((RichSelectBooleanCheckbox)child).setDisabled(true);
               } 
                else if (child instanceof RichSelectBooleanRadio) 
                {
                 ((RichSelectBooleanRadio)child).setDisabled(true);
                }
                 else if (child instanceof RichSelectManyChoice) 
                 {
                 ((RichSelectManyChoice)child).setDisabled(true);
                 }    
        }
        return null;
    }

أنا أستخدمه ضمن مشروعي لكن عملت صفحة لغرض التجربة فقط وضعت فيها أكثر من نوع من الـ component وكتبت الكود تحت button Disable 

إن شاء الله تستفيد من الكود

أرفقت صورة للشاشة قبل وبعد الضغط على الزر

post-41781-0-66015000-1455898220_thumb.jpg

بتاريخ:

تستطيع إستخدام الكود التالي كتبته كود شامل لعمل disable  لكل components  موجود على الصفحة وأي كان نوعه ليس فقط input text حسب الشرط الذي لديك

    public String disableAction() {
        for (UIComponent child : getPfl1().getChildren()) 
        {       
          if (child instanceof RichInputText)
          {
           ((RichInputText)child).setDisabled(true);
          } 
            if (child instanceof RichInputText)
             {
              ((RichInputText)child).setDisabled(true); 
             }
              else if (child instanceof RichSelectBooleanCheckbox) 
               {
                ((RichSelectBooleanCheckbox)child).setDisabled(true);
               } 
                else if (child instanceof RichSelectBooleanRadio) 
                {
                 ((RichSelectBooleanRadio)child).setDisabled(true);
                }
                 else if (child instanceof RichSelectManyChoice) 
                 {
                 ((RichSelectManyChoice)child).setDisabled(true);
                 }    
        }
        return null;
    }

أنا أستخدمه ضمن مشروعي لكن عملت صفحة لغرض التجربة فقط وضعت فيها أكثر من نوع من الـ component وكتبت الكود تحت button Disable 

إن شاء الله تستفيد من الكود

أرفقت صورة للشاشة قبل وبعد الضغط على الزر

أحسنتِ وجزاك الله خيرا بما كتبت يداكِ

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

السلام عليكم

انا استخدمت الكود بس اعترض ان في method  getPfl1 مش موجودة

بتاريخ:

Pfl1 هو متغير يمثل layout container الذي يحتوي على جميع العناصر التي تريد عمل إيقاف لها

بتاريخ:

 

Pfl1 هو الـ layout container  الذي وضعت العناصر فيه ،، بمعنى أنا وضعت هذه العناصر داخل panel form layout  وهي الإختصار ل Pfl1  فهي الإسم البرمجي (id) لها

 

أعتقد حضرتك وضعت العناصر في panel grid layout  يعني ستكون Pgl1  أو حسب الإسم البرمجي (id) لها لديك 

 

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

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

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

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

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

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.