بتاريخ: 27 مارس 200719 سنة comment_95234 عندي مشكلة في الكود الذي يزيد الرقم اوتوماتيك عند ادخال RECOD جديد وهذا هو الكودselect max(nvl(ORG_ID,0))+1 into :ORG_ID ;from CUSTOMER_ORGANIZATIONويظهر خطأ BAD BIND VARIABLE ORG_IDأتمني الرد علي هذه المشكلةوجزاكم الله خيرا تقديم بلاغ
بتاريخ: 27 مارس 200719 سنة comment_95235 naderaجربي هالكود declare new_custid s_customer.id%type; begin select max (id) into new_custid from s_customer; new_custid := new_custid +1; :s_customer.id := new_custid; message ('the id for this new customer is:'|| to_char (:s_customer.id)); :s_customer.id := new_custid; end; اختكluneنسيت اقولحطي هالكود في ال pre insert trigger في مستوى الفورماختكlune naderaجربي هالكود declare new_custid s_customer.id%type; begin select max (id) into new_custid from s_customer; new_custid := new_custid +1; :s_customer.id := new_custid; message ('the id for this new customer is:'|| to_char (:s_customer.id)); :s_customer.id := new_custid; end; نسيت اقول حطي هالكود في ال pre insert trigger في مستوى الفورماختكlune naderaجربي هالكود declare new_custid s_customer.id%type; begin select max (id) into new_custid from s_customer; new_custid := new_custid +1; :s_customer.id := new_custid; message ('the id for this new customer is:'|| to_char (:s_customer.id)); :s_customer.id := new_custid; end; نسيت اقولحطي هالكود في ال pre insert trigger في مستوى الفورماختكlunenaderaجربي هالكود declare new_custid s_customer.id%type; begin select max (id) into new_custid from s_customer; new_custid := new_custid +1; :s_customer.id := new_custid; message ('the id for this new customer is:'|| to_char (:s_customer.id)); :s_customer.id := new_custid; end; نسيت اقولحطي هالكود في ال pre insert trigger في مستوى الفورماختكlunenaderaجربي هالكود declare new_custid s_customer.id%type; begin select max (id) into new_custid from s_customer; new_custid := new_custid +1; :s_customer.id := new_custid; message ('the id for this new customer is:'|| to_char (:s_customer.id)); :s_customer.id := new_custid; end; نسيت اقولحطي هالكود في ال pre insert trigger في مستوى الفورماختكlune تقديم بلاغ
بتاريخ: 28 مارس 200719 سنة comment_95273 السلام عليكم ..اعتقد ان المشكلة هي ان الحقل ORG_ID موجود في اكثر من بلك في نفس الفورم لذلك يكتب بالشكل التالي:CUSTOMER_ORGANIZATION.ORG_IDبحيث يصبح الكود كالتالي : select NVL(max(ORG_ID),0)+1 into :CUSTOMER_ORGANIZATION.ORG_ID from CUSTOMER_ORGANIZATION; تقديم بلاغ
بتاريخ: 28 مارس 200719 سنة كاتب الموضوع comment_95288 السلام عليكم ورحمة الله وبركاته شكرا جزيلا جزاك الله خيرا فعلا المشكلة كانت في ذكر اسم ال block شكرا جزيلا أختي lune جزاك الله خيرا علي اهتمامكربنا يعزك ويكرمكوسوف اجرب هذا الكود ايضا تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.