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

مشكلة فى تغير ال Background لل Record !

Featured Replies

بتاريخ:

كيف بدي اخلي ال Background لل record الذي ينطبق عليه شرط معين لونها احمر مثلا بس لازم باستخدام
set_item_instance_property
و بدون ما اكتب اسماء الitems كل مرة ؟؟؟؟؟
الرجاء الرد بسرعة؟؟؟ و شكرا :rolleyes:

تم تعديل بواسطة hanyfreedom
تم تعديل عنوان الموضوع ليدل على مضمونه .

بتاريخ:

بسم الله
رجاء يا خاى توضيح الحاله بمثال مع ذكر الشروط المطلوب تطبيقها حتى نستطيع الرد على سؤالك ...

بتاريخ:

بسم الله الرحمن الرحيم
احنا مش عارفين نعمل من غيرك يا أ سامح

بتاريخ:

hi dear friend

* Assume that I am using EMPLOYEES Table and I want to specify the SALARY > 10000 with red background
* Create a new Visual Attributes (red_va) and set your background color as you want.
* Create a program unit

PROCEDURE set_record_instance_property

[indent](p_block_name varchar2, p_item_name varchar2, p_value number, p_va varchar2)
[/indent]

[indent] IS
[/indent]
    BEGIN 
[indent]null;
[/indent]
    END;



* create another program unit

PROCEDURE set_color(p_item_name varchar2, p_value number, p_va varchar2) IS
   begin 
[indent]if name_in(p_item_name) >= p_value then
[indent]set_item_instance_property(p_item_name, current_record, visual_attribute, p_va);
[/indent]
else

[indent]set_item_instance_property(p_item_name, current_record, visual_attribute, '');
[/indent]
end if;
[/indent]    end;



* create POST-QUERY trigger on (EMPLOYEES) data block level

begin 
[indent]set_color('employees.salary', 10000, 'red_va');
[/indent]
    end;



* create WHEN-VALIDATE-ITEM trigger on (SALARY) item level

begin 
[indent]set_color('employees.salary', 10000, 'red_va');
[/indent]
    end;



* Compile and Good Luck

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

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

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

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

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

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.