الانتقال إلى المحتوى

Global Variable And Execute Query


mmsalman87

Recommended Posts

i have table contains offices_data


and office_id is number
form contains buttons each buttons contain global variable with office_id example : global.p_office_id=101;
101 refer to office_id "data was saved in that table"
when button pressed result will open new form contain data of that office
example : if button 101 global variable
when pressed will open new form contain data of 101 office
i was write in the form of data
:office_id:=:global.p_office_ID;
EXECUTE_QUERY;
BUT THIS CODE DOES NOT PERFORM ANY TASK
HOW I CAN DO THIS TASK ?

رابط هذا التعليق
شارك

اذا اردت أن تطبق الكود

execute_query

فيجب أن يكون البلوك داتابيز بلوك.

وبالتالي ايضا انت تريد الاستعلام حسب باراميتر معين الا وهو global_variable

الكود يجب أن يكون كالتالي عندما تستدعي الفورم الجديد:
WHEN-NEW-FORM-INSTANCE:

go_block('a');
set_block_property('a',default_where,'office_id='||:=:global.p_office_ID);
execute_query(no_commit);



a: is the block name that u want to retreive the data in.

تم تعديل بواسطة rose_4_pretty
رابط هذا التعليق
شارك

شكرا يا باااااااااشا اسأل الله ان يجعله الله في ميزان حسناتك وان يوفقك ويرزقك رزقا طيبا ااااااااااامين

رابط هذا التعليق
شارك

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

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

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

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   تمت استعادة المحتوى السابق الخاص بك.   مسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

جاري التحميل
×
×
  • أضف...

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

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