بتاريخ: 9 مارس 200719 سنة comment_93570 ياشباب عندي فورمين وعندي في كل فورم text السؤال كيف استطيع جمع القيم التي بداخلهما وهما في فورمين مختلفين تقديم بلاغ
بتاريخ: 9 مارس 200719 سنة comment_93577 السلام عليكم ورحمة الله و بركاته أخي الكريم يمكنك التعامل مع القيم من فورمز مختلفة بأكثر من طريقة اذكر منها ثلاث طرق التعامل عن طريق الglobal variables التعامل عن طريق الparameters و استعمال الparameter list لنقل القيم التعامل عن طريق الdatabase variables فيمكنك مثلا استعمال الglobal variables وضع قيمة الitem الاول في global variableو جمع الأخر معه و هكذا في باقي الطرق مع تمنياتي بالتوفيق تقديم بلاغ
بتاريخ: 9 مارس 200719 سنة comment_93593 as an example assume you have value in item1 in form1 , and you want to transfer this value to form2 to add to to another value in form22 assume it item2 , first to transfer to form2 from form1 you should add button in form1 and put the following code in the trigger (when-button-pressed) of this buttonDECLAREpl_id ParamList;pl_name VARCHAR2(10) := 'tempdata';BEGINpl_id := GET_PARAMETER_LIST(pl_name);IF ID_NULL(pl_id) THENpl_id := CREATE_PARAMETER_LIST(pl_name);ELSEDELETE_PARAMETER(pl_id,'deptno');END IF;ADD_PARAMETER(pl_id,'deptno',TEXT_PARAMETER,to_char(:item1));OPEN_FORM('formm2',ACTIVATE,NO_SESSION,pl_id);END;and in form2 , in the layout editor under the parameters node ,you should add parameter with same name you defined in parameterlist you created in form1 , in our examole its name is deptno,in form2 you can get the value of this parameterlike the following::parameter.deptnothis way is the second way is the second that hanon_ocp talked about about first way , it is easy to do it, you can define any global variable any where in ur system, and you read this global variable any where u wantexample :global.x:=:item1;and form2 you read the value by calling ity:=:global.x + :item2that is alli hope u understand what i said تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.