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

كيف يتم تحويل التاريخ الى رقم في الفورم

Featured Replies

بتاريخ:

السلام عليكم ورحمة الله وبركاته

عندي الجدول العمود نوعه number مخصص للتاريخ 
سوال : كيف اجعل الحقل في الفورم تاريخ والجدول يشوفه رقم .

ولكم جزيل الشكر

بتاريخ:

شو يعني number مخصص للتاريخ؟

ممكن تعطيني مثال؟

بتاريخ:
  • كاتب الموضوع
2 ساعات مضت, Oracle forms & APEX said:

شو يعني number مخصص للتاريخ؟

ممكن تعطيني مثال؟

يعني في الانسيرت بيدخل كرقم ويتعامل ف الفورم ك تاريخ image.png.81f0ab4763c47356b581a1871b4cfb2b.pngimage.png.7b4bcfa5239de0668f1b753b3cc99c5c.png
 

بتاريخ:

اعمل هذه التعديلات:

1- bill_date ايتم مخفي، نوعه number ، وهو database

2- bill_date2 ايتم ظاهر، نوعه date، وهو control

3- في post-change على bill_date بتعمل اسناد لقيمة bill_date2

:bill_date2 :=to_date(:bill_date ,''rrrrmmdd)

بتاريخ:

  

47 دقيقة, Oracle forms & APEX said:

اعمل هذه التعديلات:

1- bill_date ايتم مخفي، نوعه number ، وهو database

2- bill_date2 ايتم ظاهر، نوعه date، وهو control

3- في post-change على bill_date بتعمل اسناد لقيمة bill_date2

:bill_date2 :=to_date(:bill_date ,''rrrrmmdd)

فقط اضف to_number الى السطر الاخير للأخ توفيق حتى لا تعتمد على الـ Implicit Conversion.

bill_date2 := to_number(to_date(:bill_date,'rrrrmmdd'));

 

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

بتاريخ:
  • كاتب الموضوع
29 دقيقة, eslam elbyaly said:

  

فقط اضف to_number الى السطر الاخير للأخ توفيق حتى لا تعتمد على الـ Implicit Conversion.


bill_date2 := to_number(to_date(:bill_date,'rrrrmmdd'));

 

شكرا على تفاعلكم 

bill_date2 := to_date(to_number(:bill_date,'rrrrmmdd'));

فبل معي بالطريقة كحفظ التريغر ولكن الفروم ما تشتغل بيطلع رسالة عند تشغيل الفورم 

FRM-30188: No initial value given, and other values are not allowed (item BILL.BILL_STAT).
FRM-50027: Invalid format mask for given datatype.
Edit Item: DATE1
Item: DATE1
Block: BILL
Form: T_HADEED
FRM-30085: Unable to adjust form for output.

image.png.9ebd1c12a9a53e038a4e86713f4cdd87.png

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

الحمد الله تم حل المشكلة ب when_validate-item

 ب 3 متغير 

وتعريف المتغير ب substr للسنة والشهر واليوم 

declare

    l_y number ;

    l_m number;

    l_d number ;

    begin

    l_y := substr(:bill.bill_date,1,4);

    l_m := substr(:bill.bill_date,5,2);

    l_d := substr(:bill.bill_date,7,2);

    if l_y != to_char(sysdate,'yyyy') then 

        raise form_trigger_failure ;

    end if;

    

    if l_d > to_number(to_char(last_day(to_date(:bill.bill_date,'yyyymmdd')),'dd')) then

        raise form_trigger_failure ;

        end if ;    

    

    if l_m > 12 or l_m < 1 then 

            raise form_trigger_failure ;

            end if;

    end;

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

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

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

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

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

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.