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

مساعده لايجاده طريقه لسحب بيانات من جدول مختلف واظهارها على الفورم.

Featured Replies

بتاريخ:

انا عندي 2 فورم ... واحده اسمها  Purchase order  ودي علشان اعمل بيها طب الشراء لللأصناف المطلوبه .   وفورم تانيه اسمها  Purchase receive inventory ودي علشان استلم بيها الاصناف لم توصل. 

 

الفورم Purchase Order تتكون من جدواين   Purchase Order(Master)   and   (Detail) Purchase Details 

 

الفورم Purchase receive inventory تتكون من جدولين P_inventory (Master)    and  (Detail) P_details

 

 

عند استلام الاصناف عايز انقل البيانات من جدول Purchase Details الى جدول p_details علشان مكتبش البيانات اللي كنت كاتبها تاني . مع العلم ان مقدرش اعمل insert statement ليهم لان ده  detail table.

 

انا جربت الكود ده داخل زرار بس جبلي اول record بس

 

cursor c is 

 

 Select ID,item,DESCRIPTION,quantity
   From PURCHASE_DETAILS
 where ID =1;
begin 
for rec in c loop
:P_details.item=rec.item
p_details.description=rec.description
p_details.quantity=rec.quantity
 
end loop;
 
end;

 

هل ليها حل ؟

 

 

 

Form.bmp

بتاريخ:

السلام عليكم

 

أخي أحمد ما هي ال columns الموجودة بجدول   P_inventory (Master)

بتاريخ:

 

جرب الكود دة كدا

 

for rec in (Select ID,item,DESCRIPTION,quantity

   From PURCHASE_DETAILS

 where ID =1) loop

details.item :=rec.item;--0

p_details.description :=rec.description ;--0

p_details.quantity :=rec.quantity ;--0

 

next_record;--0

end loop;--0

 

تم تعديل بواسطة ahmedez3

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

السلام عليكم

 

أخي أحمد ما هي ال columns الموجودة بجدول   P_inventory (Master)

سلام عليكم , 

ِcolumns are : Inventory_id, name, Account payable,cost acc,suppler invoice number. and the relation between the master and detail based on the the Inventory ID 

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

 

جرب الكود دة كدا

 

for rec in (Select ID,item,DESCRIPTION,quantity

   From PURCHASE_DETAILS
 where ID =1) loop
details.item :=rec.item;--0
p_details.description :=rec.description ;--0
p_details.quantity :=rec.quantity ;--0
 
next_record;--0
end loop;--0

 

 

جربته من الاول بس مشتغلش ,, بينقلني على  next record  في ال master table مش ال detail table

بتاريخ:

السلام عليكم

 

يااخي العملية سهلة جدا

 

ضروري يكون في علاقة مابين الجدولين

 

اولا يجب ان يكون المفتاح الاساسي في جدول   Purchase Details  والمفتاح الاجنبي في جدول   p_details

 

وتعمل insert into  اللى جدول   p_details

 

للبيانات التي تريدها من جدول   Purchase Details 

 

وبعد ذلك تعمل execute query

 

 

 

 

بتاريخ:

اكتب قبل الكود go_block('block name');--0 وهيظبط

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

اكتب قبل الكود go_block('block name');--0 وهيظبط

 

تمـــــام يا أحمد كده الكود ظبط .. ازاي كانت غايبه عني دي :) .. شكرا يا احمد :)

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

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

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

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

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

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.