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

كيفية من إدخال سجل جديد ضمن جدول Detail قبل إدخال سجل أب له

Featured Replies

بتاريخ:

السلام عليكم

أنا لدي جدولين MASTER/DETAIL وهما معروضان ضمن نفس الصفحة

كيف يمكن أن أمنع برمجيا أي عملية إدخال لسجل ضمن الجدول الفرعي ما لم يتم إدخال سجل أب له ؟؟

مع الشكر

بتاريخ:

فى ال button اللى بيعمل insert فى ال detail ممكن تعمل validation مثلا انك تاكد ان اليوزر سجل بيانات فى الماستر كالتالي

	DCBindingContainer bc =
		(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
	OperationBinding newRow = bc.getOperationBinding("InsertDetails");
	DCIteratorBinding master =
		bc.findIteratorBinding("MissionReqHdrIterator");
	Row masterRow = master.getCurrentRow();	
	String s = (String)masterRow.getAttribute("Subject");
	System.out.println(masterRow.getAttribute("StartDate"));
	System.out.println(masterRow.getAttribute("EndDate"));
	System.out.println(masterRow.getAttribute("EmpId"));
	System.out.println(masterRow.getAttribute("CntIdUB"));
	if (masterRow.getAttribute("Subject") != null &
		masterRow.getAttribute("StartDate") != null &
		masterRow.getAttribute("EndDate") != null &
	  //  masterRow.getAttribute("EmpId") != null &
		masterRow.getAttribute("CntIdUB") != null) {
newRow.execute();
}

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

بتاريخ:

ممكن تضع فى disabled للزر

#{bindings.MasterTablePk.inputValue == null{



حيث MasterTablePk اسم pk الخاص بالجدول الرئيسى فى ال page definitions

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

شكرا على المشاركة

وكذلك يمكنكم مراجعة الرابط التالي لمشاهدة حلول أخرى

https://forums.oracle.com/forums/thread.jspa?messageID=10307077

مع الشكر

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

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

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

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

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

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.