RowID , RowNum and Number Key???

Dear Gurus
I have a Little problem which I want to know for my personal knowledge and share with forum.
I have recently developed small scale Inventory Management System using Form6i and Database 9.2. I have created three tables for cash sale e.g. CashMaster, Cashdetail and Cashdetdetail. Also for credit sale, three table
CreditMaster, CreditDetail and Creditdetdetail and so on (lots of other tables, just for this problem I am considering two types of tables Cash and Credit).
As the name suggested CashMaster is Master table, CashDetail is Detail table of CashMaster and CashDetDetail is again Detail table of CashMaster (One Master 2 Details Logic).
I have used trigger at CashMaster block level to calculate and populate the Cash Bill No to three tables as follow
(I didnot used sequence to generate CashBillNo as controling it a bit dificult and then you hae to put further check on Form success & saving it .... )
Trigger Name:When New Block Instance
Level: Block Level
Item: CSBILLNO (CashMaster Bill No)
select (nvl(max(csbillno), 0) + 1) into :cashmaster.csbillno from cashmaster;
select (nvl(max(csbillno), 0) + 1) into :cashdetail.csbillno from cashmaster;
select (nvl(max(csbillno), 0) + 1) into :cashdetdetail.csbillno from cashmaster;
Compile and save it and there are no issues. Even while executing the form there is NO ISSUE (All Master Detail & Detail are taking input and saving it).
But when I look into these tables in database using the cammand
SQL> select rowid, rownum, csbillno from cashmaster;
It generates following output
ROWID ROWNUM CSBILLNO
AAAHbhAABAAAMZCAAA 1 3
AAAHbhAABAAAMZCAAB 2 1
AAAHbhAABAAAMZCAAC 3 2
AAAHbhAABAAAMZCAAD 4 4
Similarly it is doing with CreditMaster. After 4 or 5 records it starts Aappending the records rightly at right place as shown above in record 4 (Rowid, RowNum and Record no should be equal or Something else ).
I want to know why it is happening and what is the solution.
Thanks in advance!!!
Best Regards
Thunder

try the following
create table p1 (id number, dscr varchar2(8));
begin
fo i in 1 .. 70000 loop
insert into p1 (id, dscr) values (i,i);
end loop;
commit;
end;
try from a gui sql (such as sql developer, toad)
select rowid, rownum, id, dscr;
truncate p1;
re populate the table using the above script
chk again the data
drop table p1;
repeat
i think you'll be suprised of what the db is doing...
WE (developers-dba) have no control of where exactly the data are going to be stored in the tablespace/block/file
the only way to be sure from forms and any other front end tool about the order
of the the records that will be displayed to end user
is to use explicitly the "order by" clause
(or the order property of the block from builder)
the order of that the forms will submit the insert stmnts depends where commit_form/commit is used
if you use commit_form on a when-new-record-instance at the form level
will commit each record after any navigation to a different record/block
if you have on a form 2 unrelated blocks and you make
insert into first block
update into second block
delete first block
insert second block
and then either the user presses commit or upon trigger exec
forms will submit all the changes of one block
and then all the changes of the other
if you want a mechanism to ensure that data are displayed in the same order they are inserted in the db
you have to use extra column to hold a sequence and/or timestamp

Similar Messages

  • Magic mouse and number keys not working

    Last year, Wet Baloney had a problem:
    I have a first generation iMac with the wireless keyboard of that vintage and a new Magic Mouse.
    All of a sudden the keys on the numeric keypad part of the keyboard do not work. The number
    keys at the top do work.
    Also (all of a sudden) this computer is not detecting my wireless Magic Mouse. There is no battery
    problem. The mouse works fine with my MacBook Pro.
    Does anyone have any troubleshooting ideas ??
    While this question was not answered, Apple decided to archive it anyway so I'm reposting. I had this problem and my sysadmin wizard figured out what is happening. The solution is to open "System Preferences" --> "Universal Access" and select Mouse. Turn off "Mouse Keys". What I don't know is how that got turned on but it happened when I did a Mac OS update that came out around March 28, 2011. Anyway, that fixed both the mouse and the keypad problems. I'm posting so that someone doing the same search I did can find this answer.

    Thank You for this!! I was having problems using my Numeric keypad on a wired keyboard - when I used the number keys, the wireless magic mouse would lock up - the only way out was to Force Close the Application . . . Turning off "Mouse Keys" and hitting Shift > Clear turned everything back to normal.

  • TX letter and number Keys do not respond accurately

    smkranz
    I am a volunteer, and not an HP employee.
    Palm OS ∙ webOS ∙ Android

    Hi, and welcome to the Palm Community Forums.
    It seems likely that your digitizer (which is the top portion of the screren which recognizes your stylus taps and converts them into commands) is failing, although there are things that you can try to diagnose it.  One thing is to remove any screen protector you have installed, and see if the behavior continues.  The second is to fold over the corner of a piece of paper  and use the folded edge as a "scoop" by sliding it underneath the frame that goes around the screen.  The idea is to pull out any dirt or grit that has accumulated under there over time, which can interfere with the digitizer's function.
    If that does not remedy the problem, you can try one of several software fixes such as DigiFix which can help in some cases.
    If none of that works, you might just be in need of a replacement digitizer.  They can be found at www.pdaparts.com or www.usedpdaparts.com and you can either do the repair yourself, or they will do it for you at a reasonable cost.
    All of these solutions, and more, are discussed in this lengthy thread in the Hardware board.
    Good luck.
    Post relates to: None
    smkranz
    I am a volunteer, and not an HP employee.
    Palm OS ∙ webOS ∙ Android

  • What's wrong with the built-in keyboard on my macbook? The caps button does not work rite, no matter what letter button i push they all come out capitals and the number keys when pushed display the special characters instead of the numbers!

    the built-in keyboard on my macbook is not functioning right, the number keys when pushed display the special characters instead of the numbers,
    the caps button doesn't work at all, the letter buttons display capitals when pushed whether the caps button is on or off, the shift keys are also out of whack!!
    It seems it somehow got relocated to the "0" button because if you push and hold the zero button down the keyboard seems to operate normally, the number keys display numbers when pushed the letter keys display lower case when pushed but release the zero button and your back in the twilight zone!! Can anybody help me resolve this issue? one more thing im using an external usb keyboard right now and it seems to function properly if that helps any.

    You would do better in the actual macbook pro forums (this is not).

  • I cannot unlock my phone. When I hit the number the key is highlighted but the "dot" does not show in the passcode box. Have shut it off and restarted nothing. Held on/off and "square" key to reset but still nothing. Any ideas on how to resolve this issue

    I cannot unlock my phone. When I hit the number the key is highlighted but the "dot" does not show in the passcode box. Have shut it off and restarted nothing. Held on/off and "square" key to reset but still nothing. Any ideas on how to resolve this issue

    Connect to iTunes and try to reset it from there.

  • HP G62-348CA number keys and arrow keys not working

    Good day Experts! Can someone help me fix my laptop? I got G62-348CA unit. only number 5 and 6 in my number keys are working and also arrow keys down and right are not functioning. at first it was built with windows 7 home premium 64bit but then i have to reformat my laptop with windows 7 ultimate but i dont have available 64bit so i install 32bit of the OS. before i install the OS, number keys and arrow keys are working fine but after I reformat my laptop with ultimate 32bit, the said keys are not working. please guys help me. im having trouble with my unit and i dont know what to do. its pretty bad i dont have any idea. all the best with you guys and i'm hoping for your fast and kind response. thank you!

    Because the operating system does not affect the keyboard in that way . .. If the operating system has issues it would switch keys or assign wrong characters.
    I have replaced over 200 keyboards because of such issues

  • Disable Mouse and other Keys except Number and Directional keys in a screen

    Hi all,
    Recently we have developed a sceen program as per the requirements of client who are used to enter meter readings using only Enter key. They used to give Enter key to give meter readings, date of meter reading, meter reading note and consumption in their legacy system.
    Though we developed the screen as per the requirements with all validations checking simultaneously which are required but we failed to handle mouse and other keys as we have not found any specific events occured by the keys.
    Now some of the meter readers are using mouse and other keys and because of this our code is getting failed and no validations are working at all. So we want to disable the mouse and other keys except Number keys and Directional Keys while we are in the screen so that they are bound to work with the Enter and NumKeys as per their requirements.
    Please help me with an idea or code snippet by which we can solve the problem. <removed by moderator>
    - Arghya Das,
    <removed by moderator>
    Edited by: Thomas Zloch on Aug 10, 2011 12:46 PM

    Hi,
    Just go through this link, it would be helpful...
    [http://help-abap.blogspot.com/2008/10/alv-disable-delete-key-on-keyboard-in.html]
    <removed by moderator>
    Thank You,
    Regards
    Pradeep
    Edited by: Thomas Zloch on Aug 10, 2011 12:50 PM

  • RETURN/ENTER and SHIFT keys no longer work, and my number keys only work as numbers - no longer do they serve as exclamation points or dollar signs etc.

    After downloading OS X Yosemite my RETURN/ENTER and SHIFT keys no longer work, and my number keys only work as numbers - no longer do they serve as exclamation points or dollar signs etc. PLEASE HELP

    Does this bad behavior persist when logging in as a different user, e.g., Guest?  Does it persist when starting up in Safe Mode?

  • Options above number key have swapped and no longer do what they should!

    hi, possibly silly question, but my the exclamation point, at sign, number sign etc. that sit above the number keys have somehow defaulted to showing different things. eg. the at sign now shows a ™ and the number sign now shows a £. i'm not sure how i turned this on, or how (more importantly) i turn it off again. any help would be much appreciated!! thanks.

    Sounds like you set a different keyboard layout for United Kingdom. System Preferences>International>Formats. Change the Region to United States.

  • ECO number with revision level and release key

    Hi All,
    I have a requirement from client with regards to Engineering change manangement.
    The scenario is that we are maintaining BOM for materials.Whenever a change is required  for BOM a ECO number is created with release key.
    Once the BOM is changed against ECO number is created a workflow is triggered for approval.
    Then it goes through a series of approvals in the heirarchy.In each level the reviewer will propose a new value for the changed line item.
    All these changes have to be maintained in record.At the end the final approver reviews all the proposed changes and release the ECO number with the appropriate change.
    I had a thought of implementing the above scenario with ECO with revision level and release key.
    But I am unable to replicate the scenario due the fact that,when I select the ECO number with release key,I cannot select the material in Object type.
    Its disabled.Its available when I create a ECR with release key.
    Please suggest a way to create ECO number with release key and revision level for BOM.
    Regards
    Richie

    Hi,
    You create the revision level against the material (via MM02, basic data tab)) not against the serial. The serial number, by definition, would be unique to the combination of material and revision.
    Regards

  • I got an unused Adobe After effects CS6 from an ebay seller.He said the disc was cracked and sent me the 24 digit number key.Do I still need the disc to get the program?And where do i input the 24 digit key?Also do I have to sign up for CC I can't afford

    I got an unused Adobe After effects CS6 from an ebay seller.He said the disc was cracked and sent me the 24 digit number key.Do I still need the disc to get the program?And where do i input the 24 digit key?Also do I have to sign up for CC I can't afford that monthly charge.

    You can download from the page linked below:
    CS6 - http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html

  • Keyboard Number Key and Directional Key Issues

    This is a problem with the keyboard number keys and the Plus Key on the number pad, the number keys at the top of the keyboard above the letters, and the  directional keys at the bottom of the keyboard next to the alt/ctrl keys.   When pressed they are malfunctioning as follows, and I am actually typing the result on the keyboard numbers or number pad keys to demonstrate the result. Keys at top of keyboard: Pressing the Dash Key: `1Pressing Number One:  `1Number 2 works finePressing Number 3 dims the screenPressing Number four: 54Pressing Number five: 54Pressing Number six: 67Pressing Number seven: 67Pressing Number eight:  \8Number 9 works finePressing Zero:  -0 Number Keypad: Pressing Number one: +1Number 2 works fineNumber 3 works finePressing Number four: 64Number 5 works finePressing Number six: 64Number 7 works fineNumber 8 works fineNumber 9 works fineNumber 0 works fine Keypad symbols: Pressing Plus Key:  +1 Directional Keys: Right Arrow Key:  Cursor moves up a random number of lines in a document.Left Arrow Key works fineUp Arrow Key works fineDown Arrow Key (inserts back slash):  \  I have searched and searched and have not been able to find a solution to this or even another post outlining this type of problem.  Please Help.    

    Hello there,
    It sounds like you're going to either need your keyboard replaced, or have the buttons fixed. You can either have this done professionally, or personally, since the warranty states that you're permitted to replace the keyboard. For more information on how to replace it, visit this pdf and scroll down to keyboard, under replacement. https://www.google.com/url?sa=t&source=web&rct=j&ei=4U2bVeSZOMSu-QGwtIuIBQ&url=http://h10032.www1.hp.com/ctg/Manual/c03935332&ved=0CCIQFjAB&usg=AFQjCNFI7Za3MTOYi3U2gqYwky_v2R-eIA&sig2=BEpyqWkFFkSjkR0z4r5v-Q
    I apologize for it being a Google link, since I am on mobile.
    Best Regards,
    Shawn

  • How to register using PICA Number and verification key ?

    Can somebody explain to me how our customer can registrate himself using the PICA number and verification key I gave him ?
    The Pica guide ( http://www.cisco.com/web/help/reg/faq_reg.html#PR5 ) is using guidelines that doesn't match anymore.
    When you click on "Register" you don't see "Enter the required information and under the Register for Additional Access section, select the "Customer of a Cisco Certified Partner Initiated Customer Access [PICA]" check box. Click the Submit button." anymore !!!
    Please give the right guidelines to let our customers to register themselves.

    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage - Apple Support

  • 8.1 Disabled number keys and audio driver

    I have a Lenovo G780 lap top that I just bought about a year in a half ago.  I purchased it from Lenovo with Windows 8.0.  When I updated to 8.1 recently, it wiped out the use of several of my numeric keys on both the number keys at the top across on my keyboard and also on my numeric keypad.  The update also wiped out my Dolby Audio Driver.  Does anyone know how to resolve this?  I already had a Microsoft tech dial into my laptop remotely and he was unable to resolve it and referred me to Lenovo.  Ugh.  BTW - the only way I am able to type several the the different numbers is by connecting an external keyboard to my lap top.  These are the numbers that work using the number keys going across the top of my laptop keyboard: 123456   These are the numbers that work using the laptop number key pad on the right of my laptop keyboard:  13456789  In both cases, the zero key is not working.

    Punkinero,
    For the “unable to start the Dolby audio driver”, you can use the following knowledgebase article to correct it:
    http://support.lenovo.com/en/documents/ht100126
    For the non functioning numeric keys, try doing this:
    - Go to the Control Panel, Ease of Access Center, Set Up Mouse Keys. At the bottom under Other Settings: Use mouse keys when NUM LOCK is: Make sure OFF is selected.
    I hope this helps!
    Cheers, Erich_Lenovo

  • Right arrow and number 9 keys popped out and inside plastic broken

    Hi,
    I own a HP Pavilion dv6 VX067AV laptop which is still under Accidental damage warranty.
    right arrow and number 9 keys popped out with broken plastic inside.
    Please suggest what i need to do to get it replaced. Thanks.
    -Buzzi

    What little there is in this topic: 9.0 iTunes played Football Podcast frame by frame both forward and backwards for detailed viewing. When they upgraded to 10.0 the keyboard freatured was changed and not replaced. the arrow keys now move you to the next video or the previous video. Command (open Appple) moves you ..like 3 to 4 frames ahead. This is stupid and I have to play my podcast videos in Realplayer to use their arrow keys. This is just one more level for playerts to scrfew up on when viewing themselves. THE Can someone actually ask Apple to put it back as a key board feature. It can not even be scripted, but I'm game to hear your advice.

Maybe you are looking for