Form which will fetch possibly many records(maybe millions) from database

Hello,
I need to develop a form which will fetch many records from the database from one table . I could used go_block('blockname') & execute_query but I want to do something that will fetch the data and place it in a non db block instead of looping through the db block . What should I use ? Cursor ?
I'd be grateful for any help please with an example of the code . Thanks.

twinklin_girl wrote:
Hello,
I need to develop a form which will fetch many records from the database from one table . I could used go_block('blockname') & execute_query but I want to do something that will fetch the data and place it in a non db block instead of looping through the db block . What should I use ? Cursor ?
I'd be grateful for any help please with an example of the code . Thanks.Two things you can do...
Create a view and based on that view make your form.
Another is How to Base a block on a FROM Clause Query
Hope this helps
Hamid
Mark correct/helpful to help others to get right answer(s).*

Similar Messages

  • To create such script which will fetch all this data in form of create command

    Whenever I do a restore I always forget to reapply some database roles or application roles in post restore steps.We have one database of very different db roles,Grant permissions,Login and User permissions and they changes also frequently.
    What dmv's I required to create  such script which will fetch all this data in form of create command and after restore I just have to run those create commands and all the rights should visible as before .
    Thanks

    The context of your question is not entirely clear, but I assume that you restore a copy from one type of environment (for instance QA) to another (for instance development).
    To get group membership, you use the catalog views sys.database_principals and sys.database_role_members. Querying these is straightforward.
    To get permissions you would query sys.database_permissions. This view is more difficult to query, but you can take shortcuts depending on what is in use at your site.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically. Can some one out there help me?

    I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically.

    Update automatically under which circumstances, exactly?

  • How do I make a button onj the form which will submit and send the pdf as an email?

    how do I make a button on the form which will submit and send the pdf as an email?

    You can set up a button with a "Submit a form" action and use a mailto type URL to specify the email address you want the forms sent do. If you want to send the entire PDF, select that option and not FDF or anything else. The mailto URL should not include any spaces and the "mailto" part should be lowercase, like:
    mailto:[email protected]
    This will attempt to initiate an email using the users default email client. If the user does not have one set up or there is some other problem, the email might not get initiated. If it needs to work with Reader versions prior to 11, then the form needs to be Reader-enabled, which you do in Acrobat 11 by selecting: File > Save As Other > Reader Extended PDF > Enable More Tools

  • Is there any FM which will fetch all functional reportees of a Manager ?

    Hello friends,
    Can anyone please resolve my query mentioned below ? This is related to HR-ABAP.
    Query:- Is there any existing Function Module to get all the functional reportees of a Manager ?
    [Part of requirement:- On report selection-screen, Manager's GIN number will be provided and the report will extract the data for all
    the functional reportees of the manager. My query is, Is there any existing FM for this requirement which will fetch all the functional reportees of a Manager ?]
    Thanks & Regards,
    Ranjan Sahoo

    Hi Mohan,
    this is correct since the values are stored in different tables (fact, dimension etc) due to star sheme modelling. As far as I know there is no standard function module for this issue.
    However ABAP report RSDD_SHOW_ICUBE might help. This is the report for transaction listcube, all relevant data is build up, there you should find all necessary steps and standard reports/modules to fetch the required characteristic value. Although I do not know the exact requirement you will probably have to work with SID values.
    Perhaps this will help resolving your issue.
    Best Regards,
    Marcel

  • Is it possible to record data directly from PXI-5112 scope card through PXI bus to SCSI RAID array (connected to PXI-8210)?

    Colleagues,
    Is it possible to record data directly from PXI-5112 scope card through PXI bus to SCSI RAID array (connected to PXI-8210)?
    Which will be the maximum transfer rate for continuous data recording?
    Thank you,
    Sergey
    Sergey

    Sergey,
    The PXI-8210 can connect to any SCSI 2 compliant device. If the RAID controller is SCSI 2 and appears just like a hard drive in the operating system, then you can send data directly to the RAID array. The problem is that the driver for the PXI-5112 does not yet support continuous acquisition. The on-board 16MB or 32MB buffer stores the data until the entire acquisition is completed. Once the acquisition complete, all of the data is transferred from the on-board buffer to the hard drive. After that happens, the NI 5112 is ready for another acquisition.
    Best Regards,
    Jace Curtis
    NI Applications Engineering

  • Is it possible to record audio/ vedio from applet and store it on server

    Pls tell me if it is possible to record audio/ vedio from applet and store it on server. I am using JMF. i am able to store audio on the same machine by making a java application but i am not able to understand how to use RTP with it to store it on server from an applet. pls help me i am in urgent need.

    If u want to capture audio/video from the client machine these are the pre-requisites
    1. u need to have JMF installed on the client :(
    one way out of this is that u bundle the library files along ur applet to the client. I am still to figure out how
    to fo that.
    2. while installation uncheck the option 'copy DLLs to system folder....' and check the option 'Allow capture
    from applets.
    3. The Applets u create must be signed, for accessing the client resources such as hard drive.
    You can then capture n save file on the client, open an inout stream out of it, open an outputstream to the server as already described above and start uploading......

  • Function Module which will take Wekk No & Return date range (from & To dat)

    Hello everyone,
    I need a Function Module which will take Week No as an input Parameter & return me the date range
    (From date & To date of that week) .
    Thanks in advance!
    Cheers!
    Moderator message: date calculation questions = FAQ, please search before posting.
    Edited by: Thomas Zloch on Nov 2, 2010 5:25 PM

    Hi,
         Please write the below logic..
    data : v_date11 type sy-datum,
              monday    type sy-datum,
              sunday  type sy-datum,
              v_count1 type i .
    *v_count1 = 20 * 7.            "   Say U want details for 20th week , or give a parameter for week and multiply with 7*
    v_date11 = '20100101'.     "   take the starting day of the year ....
    v_date11 = v_date11 + v_count1.   " add to the date
    CALL FUNCTION 'GET_WEEK_INFO_BASED_ON_DATE'   <-- call this FM
    EXPORTING
       DATE          = v_date11
    IMPORTING
      WEEK          = WEEK
       MONDAY        = MONDAY <-- will have the week starting day
       SUNDAY        = SUNDAY
    Regards,
    Srini.

  • Need to know the API which will extract how many users are added in group..

    Hello,
    I am working in Oracle Portal. In the portal we have Oracle Indentity Management where we are adding users as well as the group. We are looking for an API which helps us to do that from PL/SQL code. We got it but we have some issue. We know that how to create group, add users to group, delete users from group, delete group but we unable to get how many users already added to the group. Can anybody help me out in this case. It is urgent!
    Thanks
    Golak Saha

    Hi,
    How to check ,how many  users are logged in and logged out in oracle ebs 11i/R12.
    Please check the following links:
    Oracle EBS - Number of Users logged into EBS / Oracle Applications currently
    List all users currently logged in on Oracle EBS
    Also see forum Search:
    Forum Search: Logged In EBS User
    Also, in the database level too
    Please see:
    https://forums.oracle.com/message/9225094#9225094
    Do we need to write any trigger for this?
    Yes you may, But I personally suggest you not to do so as it may affect performance.
    Thanks &
    Best Regards,

  • Possible to record solo automation from a MIDI controller?

    I am using a Novation SL MKII midi controller with Automap in Logic Pro 9.  I am trying to figure out how to record the solo automation feature from the MIDI input.  I select the track, and then select the 'Solo' section from the automation tools.  I then select Touch or Latch. (I've tried both)  When I push the MIDI button I can see that it does change the state of the track from solo on/off successfully, so the input is working fine.  But as I try to record it, nothing happens, no information about the state change is actually recorded. 
    Here's the strangest part, it works fine when I record mute automation... but not solo.  Any common reason this is occurring?

    Well, I don't know much about the kit you are using, but I do kow a bit about the midisport as I use one for my live setup. It should appear in the environment under clicks and ports. As for start and stop, although I have never tried this, I imagine it's possible through key command setup. Here you ought to be able to select play, learn the asignment and press the button. I'm not certain that this will work, and I'm pretty sure that some transport items won't work (like RTZ) but surely it should work. All I can say is give it a try!
    If any of this doesn't make sense, I suggest a read of the manual about key commands. They are part of what makes Logic so powerful, and you should note that Logic has some functions not available any other way that are very powerful. Equally, if you want to start having fun with MIDI, a readup on the environment will help too. Ah, the possibilities are almost endless...
    Any qs on it, don't hesitate to post back. I hop these pointers might help you on your way,
    Best, Fred

  • Is it possible to update internal table from database table

    Hello All:
              I know how to update database table from internal table in one shot (batch) but is the reverse possible? Can I update some fields in an internal table from a database table in one shot (without looping) because my internal table is huge? Could you please provide me any ideas how to acheive something like this? Thanks in advance and answers will be rewarded.
    thanks.
    Mithun

    Hello my friend,
    You can do it MAYBE , i think you can reverse the update doing a ROLLBACK, but only after you update....not after the program finishes..
    To update some fields at once use:
    UPDATE DBTABLE FROM TABLE IT_TABLE
    Hope this helps!!
    Gabriel

  • What is the best approach to fetch more than 10,000 rows from database ?

    Hi Experts,
    I am new to JDBC. I have a table containing more than 10,000 rows. I don't want to fetch all of them at one shot, because it takes too much time and consumes too much memory. I want to fetch 500 rows first to return to end user. When end user wants more, I fetch subsequent 500 rows until all 10,000 rows are fetched. But how to do this in JDBC? The most difficult thing to me is how to remember the fetched position so that I can fetch each 500 rows subsequently. Could someone help me on that? Sample code is better. Thank you very much.
    Regards,
    Skeeter

    When you instantiate your (prepared) statement, specify a scrollable resultset --
    PreparedStatement stat= connection.prepareStatement(query,
                                    ResultSet.TYPE_SCROLL_INSENSITIVE,
                                    ResultSet.CONCUR_READ_ONLY);
    ResultSet rs= stat.executeQuery();The following method reads 'size' rows, starting at position 'pos' --
    void read(int pos, int size) {
       if (rs.absolute(pos))
          do {
             process(rs);
          } while (rs.next() && --size > 0);
    }kind regards,
    Jos

  • Is it possible to record with QTJava 6.1

    Hi,
    Is it possible to record live stream from an IP Camera using QuickTime for Java? I had installed latest version of QuickTime 7.1. The version of QTJava is 6.1, that comes with QuickTime 7.1. When I tried to store the video using the program I get an error as follows:
    quicktime.std.StdQTException[QTJava:6.1.3g1],-2003=cantFindHandler,QT.vers:71080 00
    Please help me with a solution.

    ryan barlow wrote:
    Well, couldn't I install the 10.5.4 (if possible), and then run the Software Update? .... I'm thinking this is a dead end road for me…
    You can install 10.5.4 *only if* the installer disc includes drivers that support the hardware of your new Mac. This is not likely: 10.5.4 was released on 30 June 2008 & there have been "under the hood" changes to the hardware for the 2009 models.
    If I did take it back to Apple and ask them to fix it, they'd just give me a funny look. I can't really prove there is a problem, and of course after I unplug this stupid thing and reboot it, it will run great for an hour (or less). "Hi. This computer is too slow. Fix it." They'll just try to sell me their $500 RAM.
    If there really is a problem with your new Mac, Apple won't give you a funny look; they will try to help you resolve it. However, if you have installed third party aftermarket memory that is substandard (which is not uncommon), it is your responsibility to replace it with module(s) that do meet Apple's specs. They do not have to be Apple-supplied modules, just well made ones supplied by vendors that guarantee their products meet or exceed these specs. Much of the "budget" or "generic" RAM modules on the market are not tested prior to being sold -- in effect, you are the quality control department.

  • Form is not Pulling records from database table.

    Hi all,
    it seems very simple question for you, but i got stuck here.
    I have created one table and insert some records in it from SQL.
    then i create one form and create a data block and pull all the fields form the table, now when i run this form it will not show the records... why ?
    is anything wrong am i doing ?
    Thanks for any help.
    Abid

    Yes when i press Execute Query it shows the records.
    can i add this on form level, i mean when form will load i can execute this query.
    how will this work.
    on_form_load
    execute_query;
    is that right ?
    Thanks for giving me clue, you soloved my problem.
    Abid

  • Telephone for Home-use which will sync with isync

    Is there a telephone (no mobil/no handy) which will sync my adress book with isync? Or maybe with a workaround.
    Thanks Martin

    Simple answer... No.
    There are some DECT phones with Bluetooth which will allow you to send vCards exported from Address Book to them, but that's as close as it gets.
    Searching Google for 'dect bluetooth vcard' will find such models.

Maybe you are looking for