How to sort the new records when you input them in a Forms bloc?

Hi,
I have a multi-record data block, how can I do to sort the records in this block when you enter some new records? for instance, you have a table(emp), 3 coloumns(empid, empname, deptno). when you enter new records, how can you do to make records order by deptno? not in quiry status.
Thanks. Please help me!

I think Steve has answered your question and I doubt that what Frank is suggesting is what you are actually trying to do.
However,
from the top of my head I don't know if you can set the order by clause on a datablock dynamically <<-Yes you can set it with set_block_property. You don't really want to put it in the where clause because if the user enters query criteria in database fields, they will get appended after the order by and the query will fail.

Similar Messages

  • HT4061 how to restore the iphone 4 when you get a restore message error (-1)?

    how to restore the iphone 4 when you get a restore message error (-1)?

    If the iPhone was jailbroken, you get this error due to baseband mismatch. No help for such iPhones here in this forum.
    if not, Restore on another computer. If error persists it is hardware failure.

  • How to rotate pictures from iphone  when you put them on the computer

    how to rotate pictures from iphone  when you put them on the computer

    The program you use on your computer to view the picture might have a feature to allow you to rotate the photo

  • How to write the new records not with existing records.

    hi,
    I have a script.If i execute the script it writes the records.but its writing with the exisiting records.It writes not only the new records but also the old records.
    for eg: the exisiting records are:
    1111115-2,USD,DINESH,1,1,,,,9,,,,123456184001,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,9999,,,,
    1111116-2,USD,DINESH,1,1,,,,9,,,,123456184001,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,9999,,,,
    1111117-2,USD,DINESH,1,1,,,,9,,,,123456184001,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,9999,,,,
    1111118-2,USD,DINESH,1,1,,,,9,,,,123456184001,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,9999,,,,
    1111119-2,USD,DINESH,1,1,,,,9,,,,123456184001,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,9999,,,,
    but now what happend is the new records such as
    1111116-2,USD,DINESHBABU,1,1,,,,9,,,,123456184003,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,9999,,,,
    1111117-2,USD,DINESHBABU,1,1,,,,9,,,,123456184003,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,9999,,,,
    1111118-2,USD,DINESHBABU,1,1,,,,9,,,,123456184003,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,9999,,,,
    1111119-2,USD,DINESHBABU,1,1,,,,9,,,,123456184003,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,9999,,,,
    it gets appended with the old existing records,
    1111117-2,USD,DINESH,1,1,,,,9,,,,123456184001,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,9999,,,,
    1111118-2,USD,DINESH,1,1,,,,9,,,,123456184001,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,9999,,,,
    1111119-2,USD,DINESH,1,1,,,,9,,,,123456184001,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,9999,,,,
    1111113-2,USD,DINESHBABU,1,1,,,,9,,,,123456184003,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,9999,,,,
    1111114-2,USD,DINESHBABU,1,1,,,,9,,,,123456184003,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,9999,,,,
    1111115-2,USD,DINESHBABU,1,1,,,,9,,,,123456184003,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,9999,,,,
    1111116-2,USD,DINESHBABU,1,1,,,,9,,,,123456184003,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,9999,,,,
    1111117-2,USD,DINESHBABU,1,1,,,,9,,,,123456184003,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,9999,,,,
    1111118-2,USD,DINESHBABU,1,1,,,,9,,,,123456184003,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,9999,,,,
    1111119-2,USD,DINESHBABU,1,1,,,,9,,,,123456184003,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,9999,,,,
    there will be some problem happens when we are going to upload a bulk data of say 25000 records.if its gonna update 20000 records,rest 5000 records i have to do it in next step,if this is going to happen then the first 20000 records will be displayed forever.because it have the capacity to write 20000 records.thenext 500 records will not be written.so there is a chance of redundancy.how to avoid this redundancy while running this script
    my script is
    create or replace procedure input_tables(table1 in varchar2)
    is
    str varchar2(32767);
    cnt number(2);
    cursor c1(tname in varchar2)
    is
    select column_name
    from all_tab_columns
    where table_name = tname
    order by column_id;
    rec c1%rowtype;
    begin
    cnt:= 1;
    str:= 'declare '||
    'cursor c2 '||
    'is '||
    'select ';
    open c1(table1);
    loop
    fetch c1 into rec;
    exit when c1%notfound;
    if cnt = 1 then -- Added New
    str:= str||rec.column_name; -- Added New
    cnt:= cnt + 1; -- Added New
    else -- Added New
    str:= str||'||'',''||'||rec.column_name; -- Added New
    end if; -- Added New
    end loop;
    close c1;
    str:= str||' SRC from '||table1||';'||
    ' r2 c2%rowtype;'||
    ' ft UTL_FILE.file_type;'||
    ' str2 varchar2(200);'|| --Added New
    ' begin '||
    ' ft := UTL_FILE.fopen(''SAMPLE'',''OUTPUT.csv'',''w'');'||
    ' for r2 in c2'||
    ' loop '||
    ' UTL_FILE.put_line(ft,r2.SRC);'||
    ' end loop;'||
    ' UTL_FILE.fclose(ft);'||
    ' end;';
    execute immediate(str);
    end;
    thanks,
    Ratheesh.

    Hi!
    U can check the following script --
    create or replace procedure input_tables(table1 in varchar2,start_col in number,last_col in number)
    is
         str varchar2(32767);
         cnt number(2);
         cursor c1(tname in varchar2)
         is
           select column_name
           from all_tab_columns
           where table_name = tname
           order by column_id;
         rec c1%rowtype;
    begin
         cnt:= 1;
         str:= 'declare '||
         'cursor c2 '||
         'is '||
         'select ';
         open c1(table1);
         loop
              fetch c1 into rec;
              exit when c1%notfound;
                   if cnt = 1 then -- Added New
                        str:= str||rec.column_name; -- Added New
                        cnt:= cnt + 1; -- Added New
                   else -- Added New
                        str:= str||'||'',''||'||rec.column_name; -- Added New
                   end if; -- Added New
         end loop;
         close c1;
         str:= str||' SRC from '||table1||
         ' where rownum between '||start_col||' and '||last_col||';'|| -- Added New
         ' r2 c2%rowtype;'||
         ' ft UTL_FILE.file_type;'||
         ' str2 varchar2(200);'|| --Added New
         ' begin '||
         ' ft := UTL_FILE.fopen(''SAMPLE'',''OUTPUT.csv'',''w'');'||
         ' for r2 in c2'||
         ' loop '||
         ' UTL_FILE.put_line(ft,r2.SRC);'||
         ' end loop;'||
         ' UTL_FILE.fclose(ft);'||
         ' end;';
         execute immediate(str);
    end;
    / To print first ten rows --
    exec input_tables('EMP',1,10);  --first 10 rowsTo print next remain rows --
    exec input_tables('EMP',11,15);N.B: No tested....
    Regrads.
    Satyaki De.

  • How to delete the master records when corresponding details records exist.

    What is the SQL statement to delete the records of master when the corresponding detail records are present.
    Note: No Cascade clause was used at the time of creation of referential integrity constraint.
    "M"- Master Table
    "D"- Detail Table
    I used, "Delete from M cascade". This statement is not working.
    Your favour in this will be deeply appreciated.
    Cheers
    PremChin

    Hi folk,
    i appreciate your suggestion,
    my crux of the situation is to know whether there is a way to make it without disabling,removing or modifying the referential integrity constraint.
    If so, modifying, please help me out how to modify the constraint in order to remove the master records keeping detail records in-tact.
    Cheers
    Premz

  • How do logos make it to the app tab when you pin them. Some sites do, some don't . Good for small businesses to know, also helps me know which sites I've pinned. Currently most are a piece of paper at the top, not a logo. Thanks.

    I've pinned several sites so far. Netzero has a nice logo, the others do not, which makes it hard to tell which sites at first glance. I do think smaller businesses would also benefit from understanding how to design their website so their logo ends up on a pinned tab.
    This is my first time playing with Firefox 4. Like the new look.

    To attempt a new chat session...
    For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    http://helpx.adobe.com/x-productkb/global/service1.html

  • How long does it normally take for all of your music to load on the new computer when you are home sharing?

    I am trying to load my music on my sisters computer. How long does it normally take for the first time to download? Her computer has been "Checking for new purchases," for about an hour now.

    10 hours does not seem right at all. Should take several minutes at best. The entire OS installation is under an hour. Post your issue in the FCS forum area here:
    http://discussions.apple.com/category.jspa?categoryID=123

  • How much is the activation fee when you upgrade using "New Every Two?"

    i went to walmart to do an upgrade,we havent had a new phone in many yrs,they charge u 30 dollars for ativation,i called verizon they said they started that 2 months ago,i been with verizon for many,many yrs,i just use to do *228 n push option 1 oh u still can if u buy a phone from a friend or wastnot,but any new phone 30 $ but u call loyalty they waive 20 of it,i still dont think that is right!!!!

    Verizon took all the change in my wallet!

  • How to change the begin page when you open a tap ?

    ive downloaded by accident a toolbar, then i uninstall it from my computer but then when i opened firefox it became my start page so i changed it back to what is was but then i opende a tab en there it was again how can i change this to normal again ?

    Hi,
    You can try to right-click and '''Reset''' the '''browser.newtab.url''' key in [http://kb.mozillazine.org/About:config about:config].
    [https://support.mozilla.org/en-US/kb/new-tab-page-show-hide-and-customize-top-sites New tab page]
    [http://kb.mozillazine.org/About:config_entries about:config Entries]
    If the problem persists please see [https://support.mozilla.org/en-US/kb/removing-babylon-searchqu-or-mystart Removing Babylon, SearchQU or MyStart].

  • How to hide the Alt description when you hover over your links?

    I was told that you have to have a description for images, links just about everything. But when I preview my website and hover over the links, a yellow box appears with the description of the images. How do I hide this?

    You are previewing with an old (very old?) version of IE, which is the only browser on earth that does what you describe.  All other browsers play by the rules and leave the alt attribute values alone (which is what they should do). 
    You can choose to ignore this, or 'kill' it by adding a title attribute that is empty, e.g.,
    <img alt="foo" title=""...
    By the way, you add alt attributes to images for accessibility reasons.  People who browse with images turned off (and there are some) or people who use screen assistive devices (screenreaders) need some indication that there is an image at the point where they are looking/reading.  Consequently, you would only want to add content to these alt attributes where it's important to the message of the page (i.e., a cosmetic-only image would just have an empty alt attribute value). And you only need these for images, not for any other page element....

  • HT4623 How to erase the new update if you don't want it?

    My Ipad is slowing down cant I erase And restart to the way it was?

    And can I erase it*

  • PPro and AME crashes...all the time. When you start them up, when you work, when you export, ever since I downloaded the updates last week.

    I've been trying to edit and export timelapses I've shot in July. It's been an uphill battle since then.
    First Lr gave me mountains of issues (seems to be doing ok now) and now Ppro and AMe is doing the same. Since I've downloaded the update last week they have both just stopped working. AME doesn't even want to start up anymore. Ppro starts ok but won't export anything anymore. The is one older project that I've finished before the update. That exports fine. But any new project I've created since refuses. I'm dropping the images into a 4k sequence, the dropping the 4k sequence into a 1080 sequence so I can ad some movement. Bet even if I take the images directly to the 1080 sequence it crashes the moment I hit export.
    The timeline on this project is KILLING me! It's not supposed to take this long.
    Please help!

    Hi LFW,
    Lowflyingweasel wrote:
    I'm in South Africa. Don't know if the service here is somehow different. But I have tried during business hours! Your set Business hours. The online chat has been unavailable for days. I tried them twice before starting this thread.
    Sorry to hear that. I'll raise the issue with my superiors a bit later this today. I have heard our chat software is disconnecting randomly in some cases. We are updating that system, but I can find out more later.
    Lowflyingweasel wrote:
    I am a little desperate and cannot believe that this tread had been active for 8 days without contact??!! If I posted wrong, or you need more info or whatever, please, why didn't anyone simply say that?
    I am responsible for handling this forum and other products in the digital video realm. Because of the volume, it is not possible to answer every post. We do rely on the community to help out for posts like this, but some of them simply get by us. Yours was especially neglected and I apologize for that. Our forums are very good most of the time, but for a guaranteed response, you were doing the right thing by contacting support. The fact that both the forum and support failed you is very troubling and I'll see to it that you get the help you need. Since chat is not working for you, try the phone. Once connected, ask for the "video queue" so that you will be routed to the appropriate support team immediately.
    Lowflyingweasel wrote:
    I have restarted, reinstalled, tried to re-write the preference file, 8 new project file, re-exported all the images and could manage all but 3 time-lapses. They simply will not export. Not in ANY format from Pr CC 2014 nor via AME.
    You may want to trash preferences for both Premiere Pro and AME. See the instructions below. I will also include troubleshooting steps I have been giving users. These steps may help you, as well.
    Try the following:
    Quit Premiere Pro, then reboot the computer. Launch Premiere Pro once more
    Sign out from Creative Cloud, restart Premiere Pro, then sign in
    Update any GPU drivers
    Trash preferences
    Ensure Adobe folder preferences are set to read/write in all 3 locations.
    Delete media cache
    Delete preview files: usually located here: Documents > Adobe > Premiere Pro > 8.0 > Adobe Premiere Pro Preview Files > [Your Project]Delete the preview files in this folder by dragging them to the Trash.
    Remove plug-ins
    If you have AMD GPUs, make sure CUDA is not installed
    Repair permissions
    In Sequence Settings > Video Previews, change the codec to one that matches your footage
    Disconnect any third party hardware
    If you have a CUDA GPU, ensure that the Mercury Playback Engine is set to CUDA, not OpenCL
    Disable App Nap
    Reboot once more
    Thanks,
    Kevin

  • How to show the new table record after creating

    I have a table form. After creating a new record to the table, the page go back to the same page. I wanta know how to show the new record after click 'Create' button. Right now, all the items will be cleared.
    Thanks.

    The button submits the page so just create a branch that directs to a new page (which you'll have to create if you have not already done so) after submission which directs to a new page and uses the newly generate PK to display the row you've generated. You'll need to make the branch conditional on that press of the Create button.
    Phil

  • How to restrict the last record and not moving to next reocrd

    1) how to restrict the last record and not moving to next reocrd.
    2) Also for the F6 key(for new record).

    When you are on the last record, next-record will create a new one, so that my question is do you want to forbid new record creation.
    Francois

  • Back.  How do put the new serial number on my itunes?

    My ipod nano was recalled and chances are I will not get my original one back.  How do I put the new serial number on my itunes so my computer will recognize the new (refurbished) one?

    I'm not sure that you need to. iTunes will read the serial number from the new iPod when you hook it up. If you aren't talking about the iPod serial number, but instead talking about the iTunes user ID and password, keep using what you have.

Maybe you are looking for

  • What's the WS adapter and how to use it?

    Hi, When I create Comunication channel, i need to select adapter type. one of the adapter types is WS adapter? I searched in help portal and sdn, but can't find any information. Who know WS adapter and how to use it? Could youplease provide such info

  • How to get bootcamp to recognize macbook keyboard?

    I was trying to make more room on my windows harddrive so I stupidly deleted a few things. I deleted most of the apple created stuff, and now it won't recognize my keyboard to adjust the volume and brightness. Of all the things I need this is the one

  • HT1551 Apple TV problems

    I have connected the Apple TV to my Sony Bravia according to the directions. The TV does not recognize that anything is plugged into the HDMI, and the HDMI on the input screen stays grey instead of lighting up. I have tried a different cable and have

  • Generating feedback messages on server-side vs client-side?

    Hello, I am maintening a client/server app (Swing client, no Web pages), basically an order processing system. The biggest part of it is to verify the conformity of orders to a set of business rules. As usual, some of the verification can be made ear

  • Extract all DDL of all dbms_jobs

    Hi , We did export and import of all the schemas , But it didnt import all the dbms_jobs. So we have to do it manually , Is there any simple way to extract DDL of all the Jobs. Regards Kumar