المكتبة التقنية ←

افهم تطبيقك باستخدام APEX Dictionary Views

English version

Opening every page is a slow way to answer “where is this item used?” APEX dictionary views expose application metadata that you can query for inventories, reviews, and documentation.

Start with Application → Utilities → Oracle APEX Views. Select a view, inspect its available columns, and copy the generated query. Oracle also provides APEX_DICTIONARY to discover the available views. Oracle's walkthrough.

Build a focused inventory

This read-only example lists item definitions:

select page_id, item_name, display_as
from apex_application_page_items
where application_id = :APP_ID
order by page_id, item_name;

In an APEX application, :APP_ID supplies the current application identifier. In a standalone SQL tool, bind an explicit identifier and establish the appropriate workspace context. The named columns also appear in Oracle's metadata example; confirm the installed release through the view browser.

Then inspect region, button, process, and dynamic-action views. Group findings by application and page. Look for unexpected component names, obsolete references, or repeated logic worth reviewing.

An item inventory does not prove every dependency. Dynamic SQL, generated JavaScript, plug-ins, and external services may require additional investigation. Likewise, a missing page-level authorization value is a review signal, not proof that the page is unprotected.

Editorial clarification: metadata queries support analysis, but do not constitute a complete dependency or security audit.

Keep reusable review queries in source control and compare results when application structure changes.

النسخة العربية

فتح كل صفحة يدويًا طريقة بطيئة للإجابة عن «العنصر ده مستخدم فين؟». APEX Dictionary Views بتعرض Metadata التطبيق، وتقدر تستعلم عنها للجرد والمراجعة والتوثيق.

ابدأ من Application → Utilities → Oracle APEX Views. اختار View، وراجع الأعمدة المتاحة، وانسخ الاستعلام الناتج. Oracle بتوفر كمان APEX_DICTIONARY لاكتشاف الـViews. الخطوات الرسمية.

اعمل جردًا محددًا

المثال التالي للقراءة فقط، ويعرض تعريفات العناصر:

select page_id, item_name, display_as
from apex_application_page_items
where application_id = :APP_ID
order by page_id, item_name;

داخل تطبيق APEX، :APP_ID تمثل رقم التطبيق الحالي. داخل أداة SQL مستقلة، اربط رقم التطبيق صراحة واضبط سياق الـWorkspace المناسب. أسماء الأعمدة مستخدمة أيضًا في مثال Oracle للـMetadata؛ وراجع إصدارك المثبت من متصفح الـViews.

بعدها افحص Views الخاصة بالـRegions والأزرار والـProcesses والـDynamic Actions. اجمع النتائج حسب التطبيق والصفحة، وابحث عن أسماء غير متوقعة، أو مراجع قديمة، أو منطق متكرر يحتاج مراجعة.

جرد العناصر لا يثبت كل الاعتماديات. Dynamic SQL وJavaScript المتولدة والـPlugins والخدمات الخارجية قد تحتاج بحثًا إضافيًا. وبالمثل، غياب قيمة Authorization على مستوى الصفحة مؤشر للمراجعة، وليس دليلًا إن الصفحة غير محمية.

توضيح تحريري: استعلامات Metadata تساعد في التحليل، لكنها ليست مراجعة كاملة للاعتماديات أو الأمان.

احفظ استعلامات المراجعة المتكررة في Source Control، وقارن نتائجها عندما يتغير تركيب التطبيق.