بتاريخ: 16 نوفمبر 201114 سنة comment_217668 عندى شاشة فيها جدول مبنى على VIEW oBJECT ومحتاج اعمل فلتر للجدول بناء على المستخدم الا دخل على الشاشة يعنى موظف هيدخل على الشاشة مش هيطلع ليه الا ايام الاجازات الخاصة بيه فقط عمل كلاس ViewImpl ل ViewObject بس مش عارف اضع كود الفلتر فين .... تقديم بلاغ
بتاريخ: 17 نوفمبر 201114 سنة comment_217712 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 تقديم بلاغ
بتاريخ: 20 نوفمبر 201114 سنة comment_217782 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; شكر علي تواصلكم معنا تقديم بلاغ
بتاريخ: 24 نوفمبر 201114 سنة comment_217929 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 exampleSELECT xxxxFrom 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 setits 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 Expertwww.e-ammar.netwww.realsoft-me.comoraclejo.blogspot.com تقديم بلاغ
بتاريخ: 25 نوفمبر 201114 سنة comment_217961 الاخ / عمار الحل ده حينفع فقط فى حالة استخدامه لل ADF Security وليس فى حالة استخدام جداول ال users وال Roles من الDatabase الاخ/ zanon لو انت عامل اللوجين عن طريق ال ADF Security فاستخدم طريقة الاخ عمار اما لو بطريقه الجداول فالحل انك بتحفظ ال userId فى ال BC Session وبتعمل Bind Variable على الجدول اللى عاوز تعمله filter وحتديله قيمته من الVariable اللى تم حفظه ولو عاوز مثال عملى على كده حتجد فى المشاركه دى كيفية عمل filter لجدول ال users على حسب المستخدم اللى عامل لوجين تقديم بلاغ
بتاريخ: 3 ديسمبر 201114 سنة comment_218204 الاخ / عمار الحل ده حينفع فقط فى حالة استخدامه لل ADF Security وليس فى حالة استخدام جداول ال users وال Roles من الDatabase الاخ/ zanon لو انت عامل اللوجين عن طريق ال ADF Security فاستخدم طريقة الاخ عمار اما لو بطريقه الجداول فالحل انك بتحفظ ال userId فى ال BC Session وبتعمل Bind Variable على الجدول اللى عاوز تعمله filter وحتديله قيمته من الVariable اللى تم حفظه ولو عاوز مثال عملى على كده حتجد فى المشاركه دى كيفية عمل filter لجدول ال users على حسب المستخدم اللى عامل لوجين شكرا علي تواصلكم معنا تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.