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

بتاريخ:

السلام عليكم
اريد مساعده

اعمل في مشروع للمخازن و ايد ان يظهر لي في خانت ال item no بهذه الصوره
IT-001
IT-002
........الى مالا نهايه
بحيث يظهر عندي اتوماتيك بعد ما ادخل اسم ITEM

وعندي سؤال اخر

كيف استدعي التقويم الموجود في الفورم ؟

بتاريخ:

BEGIN
SELECT		NVL(MAX(TO_NUMBER(SUBSTR(rec_id,-3))),0) + 1
INTO		  :wrk_rec.rec_id
FROM			wrk_rec
 1
AND				TO_CHAR(rec_DATE,'YYYY')		=	TO_CHAR(sysdate,'YYYY')
  ;

 IF LENGTH(	:wrk_rec.rec_id ) <> 6 THEN
	 :wrk_rec.rec_id :=  'it-'||to_char(sysdate,'yy')  ||LPAD(	:wrk_rec.rec_id,3,0); END IF;
END;;

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

مشكورين
بس طيب وين اكتب في اي ترجير

بتاريخ:

when create record

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

صباح الخير

جربت هذا Select 'IT-'||Lpad(Nvl(Max(Trans_No + 1), 1), 3, 0) In
to :Blk_1.Trans_No From Your_Table;

يظهر عندي بشكل متكرر IT-001 كل الحقول
ليش ؟
وصفة Item_no varchar2 صح؟

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


when create record

[color=#660066]Select[/color] [color=#008800]'IT-'[/color][color=#666600]||[/color][color=#660066]Lpad[/color][color=#666600]([/color][color=#660066]Nvl[/color][color=#666600]([/color][color=#660066]Max[/color][color=#666600]([/color][color=#660066]Trans_No[/color] [color=#666600]+[/color] [color=#006666]1[/color][color=#666600]),[/color] [color=#006666]1[/color][color=#666600]),[/color] [color=#006666]3[/color][color=#666600],[/color] [color=#006666]0[/color][color=#666600])[/color] [color=#660066]In[/color]

[color=#660066]to[/color] [color=#666600]:[/color][color=#660066]Blk_1[/color][color=#666600].[/color][color=#660066]Trans_No[/color] [color=#660066]From[/color] [color=#660066]Your_Table[/color]




يظهر في اول خانه IT-001
بس لما انتقل الى next item يظهر نفس القيمه

ليش

بتاريخ:

rather than writting this code on pre-insert trigger or any other trigger , i suggest u good idea i think
writte that code on when-validate-item on the text item which it holds the name , and go for propery paleete for the text item set it unupdatable
by making enabled to no ..............
like this after you write the name automaticaly generate the next id like yo have written in your code
thank u

بتاريخ:

اخي الكريم حتى نقوم بعمل هذا لابد من ان يكون نوعه نص وبالتالي لقد قمت بانشاء جدول
مكون من ثلاثه حقول للتوضيح حيث الحقل الاول رقم سوف يكون رقم تسلسلي وهذا الحقل لن يظهر في التصميم
والحقلين الاخرين من نوع نص الحقل رقم الكمبيوتر سوف ياخذ قيمه وهي عباره عن دمج السلسله النصيه بقيمة الرقم التسلسلي
وقد قمت بارفاق الجدول مع المثال انشاء الله تستفيد منه مع جميع الاعضاء وهذا المثال اشتغل بالشكل الذي طلبته واي استفسار انا مستعد انشاء الله

cocatid with string.rar

بتاريخ:

السلام عليكم


 Select 'IT-'||Lpad(Nvl(Max(Trans_No + 1), 1), 3, 0)
Into :Blk_1.Trans_No
From Your_Table;




هذا الكود يعمل بشكل سليم لكن تأكد من جملة الـ Where لديك.

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

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

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

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

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

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.