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

محتاج مساعدة ضرورى فى Adf

Featured Replies

بتاريخ:

عندى شاشة فيها جدول مبنى على VIEW oBJECT ومحتاج اعمل فلتر للجدول بناء على المستخدم الا دخل على الشاشة يعنى موظف هيدخل على الشاشة مش هيطلع ليه الا ايام الاجازات الخاصة بيه فقط
عمل كلاس ViewImpl ل ViewObject بس مش عارف اضع كود الفلتر فين ....

بتاريخ:

Dear Majed

you have many places like below

1- you can make static where clause in your VO passing binding parameter and then pass the value of the binding variable in many places such as, while you navigating to your page or in AM afterconnect method in your AM impl class

2- also you can build all details in point no 1 at runtime mode (without static where clause) , and execute while you navigate to your page and may in AM impl class

i hope it is clear and sure you have to know the language well before start

thanks

بتاريخ:

Dear Majed

you have many places like below

1- you can make static where clause in your VO passing binding parameter and then pass the value of the binding variable in many places such as, while you navigating to your page or in AM afterconnect method in your AM impl class

2- also you can build all details in point no 1 at runtime mode (without static where clause) , and execute while you navigate to your page and may in AM impl class

i hope it is clear and sure you have to know the language well before start

thanksa;

شكر علي تواصلكم معنا


بتاريخ:

Dear Majed

There are many workable solutions, the easiest is if you use Jdeveloper11g is to use Groovy expression as follows

Your View Object query should have a bind variable for example
SELECT xxxx
From
Where Name = :ammar

Now you need to set amma rto the username that access the page

In your View Object definition (XML), find the bind section and add the bind variable name called ammar and set
its default values to adf.context.securityContext.userName
this will work,
If your security provider is not defined (LDAP, Jazn etc ...), the Username will be wet to Null or Anonymous and the query will retrieve nothing.

Please refer to my website in order to view an image that helps in addition to an example

http://www.e-ammar.net/Oracle_TIPS/filtering_adf_pgaes_based_on_log.htm

Ammar Sajdi - Oracle Expert
www.e-ammar.net
www.realsoft-me.com
oraclejo.blogspot.com

بتاريخ:

الاخ / عمار

الحل ده حينفع فقط فى حالة استخدامه لل ADF Security وليس فى حالة استخدام جداول ال users وال Roles من الDatabase

الاخ/ zanon

لو انت عامل اللوجين عن طريق ال ADF Security فاستخدم طريقة الاخ عمار اما لو بطريقه الجداول فالحل انك بتحفظ ال userId فى ال BC Session وبتعمل Bind Variable على الجدول اللى عاوز تعمله filter وحتديله قيمته من الVariable اللى تم حفظه ولو عاوز مثال عملى على كده حتجد فى المشاركه دى كيفية عمل filter لجدول ال users على حسب المستخدم اللى عامل لوجين

بتاريخ:

الاخ / عمار

الحل ده حينفع فقط فى حالة استخدامه لل ADF Security وليس فى حالة استخدام جداول ال users وال Roles من الDatabase

الاخ/ zanon

لو انت عامل اللوجين عن طريق ال ADF Security فاستخدم طريقة الاخ عمار اما لو بطريقه الجداول فالحل انك بتحفظ ال userId فى ال BC Session وبتعمل Bind Variable على الجدول اللى عاوز تعمله filter وحتديله قيمته من الVariable اللى تم حفظه ولو عاوز مثال عملى على كده حتجد فى المشاركه دى كيفية عمل filter لجدول ال users على حسب المستخدم اللى عامل لوجين

شكرا علي تواصلكم معنا

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

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

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

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

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

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.