How can i go next_record???

Hi All:
I am facing problem. I have made one cursor to populate blocks. The form has form like structure. Here more than 1 records exists. I check it by putting messaging in loop. It gives more than one record. But at the end i only see one record. With arrow keys I cannot go to next record and precious record. Please any suggestion. Thanks
Ali

Or create two button iconic buttons with arrow then in WHEN-BUTTON-PRESSED trigger put next_record and the other button but previous_record

Similar Messages

  • How can I code this in Oracle Forms?

    I have a master-detail form. In the detail block, I have several records. Here is my name table.
    ID Name_Type Name
    1 old Mike
    2 Current John
    3 old Peter
    4 old Andrew
    I would like to create a button trigger which shall perform the following:
    1) insert a record into database with a copy of current value. In the above case it will insert create a record for John as name_type = 'OLD'. So we have total of 5 records. Commit the transaction.
    2) Scroll through my detail records (5) and go to one specific record and erase the values from it. In the above case, it should find John's record with name_type = 'Current' and erase John from it.
    How can I accomplish this in Oracle forms using a button-pressed trigger?

    Hi,
    Simple, using current values you can create new id , 'old' and name so oracle will create record, now refresh block, next using next_record in loop you can find record,erase one and refresh block.
    Adinath Kamode

  • How can I solve out of memory error on excell file in PL/SQL

    Hi,
    I'm new on PL/SQL. One of the PL/SQL code which is created excell report got out of Memory error. The first reason of this error, excell file not supported more than 65536 data. So I change the excell file separeted sheets. So that the single sheet size cannot exceed 65536 data.
    All the data are held on system cach and if many user want to take the report the they would get an out of memory error.
    So I want to change the code like that; when out of memory exception raises,
    the old excell file save to disk and new excell file is created,
    and go on to write the new file without exiting the program.
    At the end of the data all the excell file append and show only one file to the user.
    I do know how to save the file and create a new file. But I don't know how can PL/SQL program to turn back to loop again when the exception occurs.
    Is anyone help me on this issue?
    Here is my code
    Thank you
    dworkbook:=hssfworkbook.new;
    dCurrentItem := Get_Block_Property(pCurrentBlock, FIRST_ITEM);     
    while not (name_in('system.last_record')='TRUE') loop
    /* The data would be written to the excell file column order. */
    if (dRow=0) then
              /* Create a new sheet */
    elsif (dRow <= dMaxWorksheetNum) then
         /* Data of the report are written here. The data are written in column order */
    if (dRow > dMaxWorksheetNum) then
         /* give dRow and dColumn intial value */
    /* increase worksheet number */
    end if; /* End of if (dRow=1) */
    if (isWritten) and not name_in('system.last_record')='TRUE'then
         /* if not at the end of the record and the previously read record is written to the file
         , then go to next record */
         next_record;
    end if;
    /* save excell report */
    workbookwriter.save(dworkbook,global.gethome||dFileName);
    web.show_document('/users/'||dFileName,'_BLANK');
    /* when exceptions occurs */
    EXCEPTION
    WHEN ORA_JAVA.EXCEPTION_THROWN THEN
    begin
         javaException := ORA_JAVA.LAST_EXCEPTION;
         -- Print out the Exception by using the toString()
         -- Method of the exception Object
         javaException2 := Exception_.new(javaException);
         mess(27002,Exception_.getMessage(javaException2));
         -- and clean up
         ORA_JAVA.CLEAR_EXCEPTION;
    exception
         WHEN ORA_JAVA.JAVA_ERROR THEN
    -- In this case, the error would be
    -- Argument 1 can not be null
    mess(27002,ORA_JAVA.LAST_ERROR);
    --Clean up
    ORA_JAVA.CLEAR_ERROR;
    end;
    WHEN ORA_JAVA.JAVA_ERROR THEN
    -- In this case, the error would be
    -- Argument 1 can not be null
    message(ORA_JAVA.LAST_ERROR);
    --Clean up
    ORA_JAVA.CLEAR_ERROR;

    No need to double-post... most questions are answered pretty quickly...

  • How can i create my own search form/A user defined search form

    Hello All,
    I have a simple table name employee with two fields, they are Emp_id and Name having 10 recrods.
    I have a form with a text box and a button labled Search.
    I want to search the employee in my employee table. I write the Emp_id in the text box field if the entry (Emp_id) does not exist in the employee table having 10 records then i want a message appear "There is no such employee Code "0001" try again.
    On the other hand if i found some employee in my employee table then it will open the employee form and go to the specified record and show me that record.
    How can i accomplish this task in Oracle Form 6i?
    If anybody help me in this regard i am thankfull to you..
    Please write all necessary code as well.
    Thanks in advance.

    try this one here is :vemp is textitem ,i hope you know how to create button and buttonn's trigger to embed this code
    DECLARE
      cnt           NUMBER := 0;
      RECORD_NUMBER NUMBER;
      VCNT          VARCHAR2(20);
    BEGIN
    GO_ITEM('EMP.empno');
    FIRST_RECORD;
              BEGIN
                   RECORD_NUMBER:=:SYSTEM.CURSOR_RECORD;
                   LOOP
                     IF :EMP.empno = :vemp THEN
                       cnt := cnt + 1;
                       RECORD_NUMBER:=:SYSTEM.CURSOR_RECORD;
                     END IF;
                     EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE' OR cnt > 0;
                     NEXT_RECORD;
                   END LOOP INNER;
                   IF cnt=0 THEN
                           message('No record found..');
                   END IF; 
                   GO_RECORD(RECORD_NUMBER);
              END;
    NEXT_ITEM;
    END;Khurram

  • How can i find Duplicate Rows in forms6i

    Hi,
    How can i find duplicate rows in multiple record in forms6i.
    Thanks
    Raghu.K

    Oops, sorry for misreading your question. (However the SQL I gave you above is also very handy, and worth saving.)
    Okay, this is off the top of my head and untested, but might just work. Assuming that your data block name is MYBLOCK, and that the item that you want to check for dups on is named MYNUM, create an item-level WHEN-VALIDATE-ITEM trigger with the following code.
    declare
    l_newest_record number(10) := :system.cursor_record;
    l_newest_mynum number(10) := :myblock.mynum;
    l_dup_found boolean := false;
    begin
    -- In this loop, we skip backwards through all new records to look for dups.
    while :system.cursor_record > 1 loop
    previous_record;
    if :system.record_status = 'NEW' then
    if :myblock.mynum := l_newest_mynum then
    l_dup_found := true;
    exit; -- Dup found!
    end if;
    else
    exit; -- We've gone backwards past the first new record.
    end if;
    end loop;
    -- In this loop, we return to the current record.
    while :system.cursor_record < l_newest_record loop
    next_record;
    end loop;
    if l_dup_found then
    raise duplicate_row_found; -- user-defined exception
    end if;
    end;
    The above code only checks for dups in the new form records. It assumes that a unique constraint in the database will deal with records actually committed.
    Armand

  • How can different family members in one household ...

    Hi
    I want to subscribe to a skype number for my daughter and I will be paying for it. How can this be done?  I went ahead and purchased another number today. Will she need to set up a totally new account or will she be under my account using a different number?
    Thank you in advance,
    peacejourney

    MaxL does not have commands to alter an outline directly, except the reset command which can delete all dimensions but not members selectively. The best you could do would be to run a rules file (import dimensions) using a file that contains the members you want to keepload rule for the dimension. As typical the warning is to test this first before you do it on a production database

  • I am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier

    i am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier photo please help me to recover my photos

    Well I'll guess you're using iPhoto 11:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • How can I see Calendar event END times at a glance?

    How can I display my Calendar event titles exactly as I type them? I do not want Calendar to remove duration from the titles of my events. Otherwise I can't see event END times at a glance in month view; only start times. How can I "trick" Calendar to just show my titles as I type them - as I always could before I upgraded. I used to be able to enter "Seminar 9am-5:45" and it would appear that way regardless of how or what I chose to enter (or not enter) for duration.
    I am running OSX 10.9.3.

    It's a bit weird, but if you type in the time info TWICE into the event title then Calendar uses/deletes one of them to populate the event details and leaves the other.
    Apple - Mac OS X - Feedback

  • How can multiple computers have the same library?

    My family has one iTunes account, but our iTunes library is different on every computer. Our iPods are each synced with a different computer. How can we have one library with all of our purchases together? We use the same account, so it doesn't make sense that the music purchased on my laptop won't show up on our home desktop. Each of our iPods are synced to a different computer.

    No.
    Iphone will sync with one and only one computer a a time.  Syncing to another will erase the current content from the iphone and replace with content from the new computer.

  • How can multiple users want to use airpaly to apple tv?

    Our family wants to be able to share different media from our iphones/itouches through Apple TV 2. How can we do this? It seems that only one device and connect at a time. While we understand that all 4 of our devices cannot simultaneously connect and play, we would like to be able switch back and forth.  We cannot.  Also, when the last person to use Airplay is leaves the house or is gone (their itunes library is closed/off), others would like to access the Airplay through their device to the Apple TV 2 but more often than not we cannot seem to get the Apple TV 2 to recognize a new user.  Any tips?

    It's a fundamental oversight of Home Sharing - it assumes you're a single user with a single AppleID.
    You can go to Setting>Computers and log out of one AppleID and change to another HomeSharing ID, but that seems a hassle.
    AC

  • How can I setup a mail-specific passcode/restriction on iPad used by multiple family members?

    How can I setup a mail-specific passcode/restriction on iPad used by multiple family members?
    Have an Exchange mail account setup and accessible in my mail on iPad... however my kids use it and i would like to restrict them from accessing this specific portion of the device.  I tried viewing restriction options and do not see that i can apply a restriction specifically to Mail.  Thanks for your help.

    Not a feature of iOS. Check the AppStore to see if there are other
    mail apps that allow passcode protection.
    Or use Safari to log onto your email via a web-based interface and
    enter your credentials each time. A bit slower, but the kids will
    not know the details to login.

  • How can I move applications from one account to a other ?

    Hi
    I have a old account which I used on my iPad 1. Now I moved to the cloud and got a @me.com apple ID. This new account I use for my new iPad 3 and now I would like to move some Apps from the old account to the new. How can I do this ?
    Thx for help !

    At this time you can't transfer apps or merge accounts. It has been rumoured that apple is looking at this as it's a bit of a pain. You have to use your old account with the iTunes store to access apps and then your .me account for iCloud and it's functionality but it works fine.

  • How can 2 family members who share an iTunes library both use iTunes match?

    My wife and I both share an iTunes library on the same Macbook and both sync our phones to that computer. We each have our own Apple ID and we use a 3rd account for iCloud for Photostream. In ios5 we were able to both access the music library on our iPhones via iTunes match while signed in under our unique IDs. Now, it will only let one ID access the music on the phones.  How can I get it to work like it used to, where we can both access the music while both continuing to be logged in under our own IDs on our own phones?

    I am taking this slowly so I have not added my iTunes music to the new laptop yet until I figure out how to make it work. But I have just downloaded a digital copy of The Dark Knight and when I log on to my girlfriends user and open iTunes, the video is not there. When I log back into my user and connect her iPhone to iTunes, I am not allowed to drop in the movie. That is where I am at. I need to be able to add my stuff to her iPhone and her stuff to my iPhone without syncing and losing all info.

  • How can I install to a drive other than C?

    I installed the CS6 Master Collection trial version. During the installation, I specified a destination folder on my D: drive (C: is a small SSD drive meant to hold only Windows).
    For the 32-bit versions of the programs, the shortcuts created in the Start Menu point to the D: location I specified during installation, but clicking on them gets me a "file not found" error, because the actual programs were placed on the C: drive. They work if I copy the installed Adobe folder and its full contents over to the appropriate D: location.
    The 64-bit versions are a different mess: Unlike with the 32-bit versions, the installer placed the 64-bit versions of the programs in the specified D: drive folder, but when I attempt to start the programs, I get the "Configuration Error: Please uninstall and reinstall the program; Error: 1" message. Presumably this is because some of the configuration files or settings the programs are looking for are actually pointing to locations on the C: drive, where the installer put them despite my directions. But I have no idea which files or settings they are, or how to find them.
    How can I fix these configuration errors and get the 64-bit versions working?
    If anyone from Adobe sees this, can you please fix the installer so that it installs the ENTIRE package where I specified, and that all the various pieces installed know where the rest of the pieces are in a non-C drive installation?
    My system:
    Windows 7 SP1
    Intel Core i7, 8GB RAM
    C drive: 60GB SSD (Windows system files)
    D drive: 1TB HDD (All other programs and files, including my Windows User folders)

    Yes, I have redirected my User folder to the D: drive.
    I know that some shared components must reside on the C: drive; that's fine. I just don't have room for the entire installation on there.
    The real issue here is that, when a drive other than C: is selected as the destination, the CS6 package installs into a broken state every time, out of the gate, on my system. Some components get installed to D: and some to C:, but the various components of the programs seem confused about what exists where, as shown below:
    I select a folder on D: as the destination folder for the install, and here is what I get:
    64-bit versions of the package -- Program files are installed to the D: drive as specified, but attempting to start them results in a configuration error message stating that the program must be uninstalled and reinstalled, and lists "Error code: 1".
    32-bit versions of the package -- Program files are installed to the C: drive against what I specified. The shortcuts installed in the Start menu for the 32-bit versions point to the locations where these program files SHOULD be, on the D: drive. If the Adobe folder containing the program files is copied over to the correct location on D:, these programs function normally with no errors.
    I have the 32-bit versions working by copying the program files from C: to D:. I just want to get the 64-bit versions working as well.
    Any help you could give would be greatly appreciated; I'm really looking forward to testing the CS6 suite on my system!

  • Podcast episodes download to wrong folder. How can I move them?

    Some of my downloaded podcast episodes seem to be going to incorrect folders.
    For example, I subscribe to the Photoshop TV podcast. Some of the downloaded episodes go into the iTunes Music folder>Podcasts>Photoshop TV folder. This seems to me to be the correct path.
    But most of the episodes wind up in iTunes Music folder>Unknown Artist>Unknown Album folder, along with many unrelated, non-podcast files.
    Now when I search in the Library for<Photoshop> all the Photoshop TV files appear, along with other files referencing Photoshop. But when I search the Library using <Photoshop TV> as the search term, only the Photoshop TV files in the Unknown Album folder show up, but not the ones in the Podcasts>Photoshop TV folder.
    And finally when I cllick on Podcasts in the Source pane, once again only the Photoshop TV files in the Unknown Album show up.
    I've tried adding those Photoshop TV files back to the library but they remain in the Unknown Album folder.
    I haven't tried rebuilding the library yet. I will, but it seems that wont actually move any files. I could also recreating a new library moving my iTunes music folder out of the iTunes folder and then adding them all back. That seems like overkill and I might very well end up with the same problem. (I'm not sure how many of my other Podcast subscriptions have this problem, but not many)
    So,
    1) how can I get these Photoshop TV files into the Podcasts>Photoshop TV folder, and
    2) how can I make this the folder that shows up when I search via the Podcast source, and
    3) what causes this problem?
    iMac G5   Mac OS X (10.4.6)  
    iMac G5   Mac OS X (10.4.6)  

    what is WP files?
    You want to always use iPhoto with a default referenced library (the preference to copy imported item to the iPhoto library is checked) ad then delete the source photos
    LN

Maybe you are looking for