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

Pass Parameter In Enter_query Mode

Featured Replies

بتاريخ:

I have a form that is called and set to query mode by executing the statment ENTER_QUERY in the WHEN-BUTTON-PRESSED trigger.
I want to populate one field in this form with a global value passed from the calling form and make it visible to the user before the user executes the query but the form does not seem to do anything beyond the ENTER_QUERY line. Is there a way around this?

Thanks.

بتاريخ:

والله انا كنت مستني حد يجاوب عشان استفاد بس بس فيه حل انا استخدمته هو مش كويس اوي بس ممكن يؤدي الغرض

المشكلة ان معظم trigger Enter Query Mode no

بس ممكن تستخدم when new item instance الخاصية Enter Query Mode yes

يعني اول ماليوزر يقف في الحقل تساوي الي انت عايزة يقيمة global

يعني تكتب في when new item instance

 :x1 := :global.xx



وكده حتساوي x1 بقية global

ويارب اكون افادتك

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

السلام عليكم

انا وجدت الحل و خلق block و item داخل block و الاثنان none database
و عند الضغط على ال bottun enter query مرر القيمة التي تريدها لل item في الblock ال non database

بتاريخ:

اخي العزيز
اذا Button بده يعمل call لفورم اخر
1- في الفورم الاول على button اعمل قيمة :global .variable:= القيمة التي تريد اعطائها
ثم اعمل Call للفورم الثاني
2- في الفورم الثاني على مستوى الفورم (Module) اعمل Trigger
When_new_form_instance وضع الكود الاتي

default_value(null,'global.variable');



وعلى خصائص Data Block تحت مجموعة Database وعند خاصة Where clause

deptno=nvl('global.variable',deptno)



هذا على فرض بان الحقل التي تريد الشرط عليه هو مثلا deptno
وهيك اذا شغلت الفورم الثاني مباشرة دون ان تعملة call وعملت Execute Query رح يجيب كل الموظفين مثلا
اما اذا شغلته من خلال call رح يجيب بس الموضفين اللي دوائرهم تساوي قيمة global.variable

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

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

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

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

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

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.