بتاريخ: 27 سبتمبر 200520 سنة comment_48323 طلعت مشكلة ثانية :أنا باشتغل على الFORMS6 و عندس عدة جداول مرتبطة بجدول المستخدمين.المفروض انه يتم استدعاء الrecords التابعة لهذا المستخدم من هذه الجداول. و كما هو معروف عن الطريقة التقليدية المتبعة للمناداة على محتويات الجدول هي كالتالي: execute_query; لكن هذه الطريقة بتجيب كل اللي في الجدول.. حاولت استخدام طرق أخرى لتلبية احتياجي و هي: enter_query(my_value); و: ecexute_query(my_value); و أيضا :block.item := my_value; execute_query; لكن بدون جدوى.. تقديم بلاغ
بتاريخ: 27 سبتمبر 200520 سنة كاتب الموضوع comment_48328 توضيح للمشكلة أكثر :شباب لاحظوا أن الفورم الاول يحوي على بيانات الموظف واسمه موجودة على شكل tabularحيث وضعت button بجانب كل سجل في الtabular فلما أريد ترحيل بيانات هذا السجل الى فورم آخر عملت Global variable :Global.id := :block.id; :Global.name := :block.name; ثم وضعت الحقول الـGlobal في الحقول المقابلة والمشابهة لها في الفورم الآخر عن طريق الـTriggerwhen-new-form-instanceفلما اعمل للحقول المضافة تعديل على احدها : يرفض ذلك !!!هل لازم يكون الفورم الآخر في وضعية الـ execute_query ;مع ملاحظة : أن الفورم اذا كان في وضعية الexecute_query; لا يضيف الحقول المرسلة كـ Global الى الحقول المقابلة لها في الفورم الاخرأم أن هنالك طريقة اخرى ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟أرجو الرد وجزيتم خيرا ، تقديم بلاغ
بتاريخ: 28 سبتمبر 200520 سنة comment_48443 first copy and paste the code in the notebad======================================1-write this code in the form to call the another fromfrorm2 and pass the parameter:parameter1,parameter2,and any parameter===================================================================================== DECLARE pl_id paramlist; pl_name VARCHAR2(10) := 'param'; begin pl_id := Get_Parameter_List(pl_name); IF NOT Id_Null(pl_id) THEN Destroy_Parameter_List(pl_id); END IF; pl_id := Create_Parameter_List(pl_name); IF Id_Null(pl_id) THEN Message('Error creating parameter list '||pl_name); raise Form_Trigger_Failure; END IF; Add_Parameter(pl_id,'parameter1',TEXT_PARAMETER,(:block.item));--write to_char(:block.item)); if its number to converted to char Add_Parameter(pl_id,'parameter2',TEXT_PARAMETER,(:block.item2)) Run_Product(FORMS,'C:\formname.fmx', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL); IF Form_Success THEN null; END IF; end; =========================================== 2-in the another called form2 create parameter1 and parameter 2 in the object navigator in the parameter area as same as u named in the code in ur first form =========================================================== 3-in when-new-form-instance in the form2 write: :block.item1:=:PARAMETER.PARAMETER1 :block2.item2:=:PARAMETER.PARAMETER2 ============================================= تم تعديل 30 يناير 201412 سنة بواسطة Ahmad.Hasan تقديم بلاغ
بتاريخ: 21 ديسمبر 200520 سنة comment_55045 بطريقة اسهل في خصائص البلوك الذي في الفورم الثاني اختار الخاصية where clauseاكتب الاتي id :=:global.id and name =:global.nameمع الوضع في الاعتبار ان id and name افتراضية (ضع الموجود عندك)مع execute_query سوف تشتغل انشاء الله تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.