Pre-populating many items with one call to the database

Hi,
I have a form, containing eight text items, that needs to provide a 'copy from latest record' function, so when the form is rendered in 'Create mode' the data from the latest record is copied to the form and can then be updated.
I could use the 'Default Value' property of each item, but as I would be retrieving the same row for each item this doesn't seem very efficient.
Can anyone recommend a better way of doing this?
Thanks
Andrew.

Andrew,
You could create a Process that runs On Load - Before Header that does a
Select Into your items.
e.g:
Select Col1, Col2, Col3
   into  :P1_Field1, :P1_Field2, :P1_Field3
  from Your_Table
  Where (your conditions);Doug

Similar Messages

  • How can I treat many tables with one handler(?) ?

    Hello~
    I am applying BDB to my embbeded system not rich in resource.
    Some *.db files are called frequently.
    But, Opening a *.db file [db_create(&dbp, NULL, 0) AND dbp->open] takes a long time in BDB
    So, I loaded this functions onto a booting module to call opening functions just one time.
    And all D/B handlers(?) are loaded in all run time
    But, a D/B handler takes about 360Kbytes. And there are too many *.db files(10) where a table is
    How can I treat many tables with one handler(?) ?
    Or
    If you have the most efficient way to call openning functions just one time, please tell me
    Thank you

    Hello,
    Opening the database handles is expensive due to
    opening a file on disk. Is it possible for the application
    to use in-memory dbs? Otherwise is there a way for the application
    to cache the DB handles and reduce the overhead associated with
    opening and closing them?
    Thank you,
    Sandra

  • Pre populate an item with source type="Database Column"

    Hello gurus,
    How can I pre populate an item with source used "Always, replacing any..." and source type="Database Column"?
    I have a form that creates/updates rows in a table and when creating a new row I want to populate some of the fields based on some parameters from the previous page. How can I achieve this?
    I tried adding a conditional process when PK is null and populate the expected fields, but in the browser they are not shown with those values, even if I look into the session I can see that they have the values assigned in the process ?!?!?!
    Thanks in advance,
    Florin

    Florin,
    Use the Default Value item attribute. In you case, set the Default Value Type to Static Text with Session State Substitutions and enter your item using the &P1_ITEM_NAME. syntax in the Default value text box.
    Thanks,
    - Scott -

  • I have started getting spammed on multiple Apple products (iPhone and iPad) with FaceTime calls since the recent IOS update.  Is there any feature or sedtting I can use locally to restrict incoming calls to FaceTime without going to the carrier?

    I have started getting spammed on multiple Apple products (iPhone and iPad) with FaceTime calls since the recent IOS update.  Is there any feature or setting I can use locally to restrict incoming calls to a FaceTime account without going to the carrier?

    After calling AT&T tech support one more time, and explaining to them that the glitch was on their network, they admitted that the problem was at their tower...
    I continued to use the phone on EDGE mode for two more days until the problem was fixed.
    I even got a call back from a tech support guy asking me if my phone was working properly....
    I wish they would have admitted to the problem before I sat at the apple store for 2 hours.

  • Is there a way to open a new window with one site when the home setting on Firefox has multiple websites?

    While working in Firefox is there a way to open a new window with one site when the home setting on Firefox has multiple websites?

    I guess I'm not explaining myself fully. I have a home page designation in firefox preferences that starts firefox up with 5 sites. that pretty fills up my screen with tabs.
    At some point I want to initiate another WINDOW in firefox (NOT a tab). I would like to be able to open up a window that ONLY has ONE tab, or as if there were only one site designated as the home page. This gives me a workspace that has my most useful sites available in tabs in one window, and also another WINDOW that I can move around in and even create more tabs without messing up my primary set of TABS (in my primary window). I see how this might not be doable without doing what I do now, which is open up a new window, and then close tabs until the new window just has one tab for me to work from.

  • My iPad keyboard divided in half with one side on the left side of the tablet, the other on the right side and an equal blank space separating them.  The entire keyboard also became smaller.  How can I get it back to normal?a

    My iPad keyboard (spontaneously?) divided in half with one side on the left side of the tablet, the other on the right side and an equal blank space separating them.  The entire keyboard also became smaller.  How can I get it back to normal?

    You can also turn OFF Split Keyboard
    Settings>General>Keyboard>Split Keyboard>OFF

  • Ill.CS3 - Why can I only work with one sheet on the desktop? I want to design a multi page document...

    ill.CS3 - Why can I only work with one sheet on the desktop? I want to design a multi page document...

    Use this ancient work-around:
    Create mutli-page PDF | Illustrator

  • We get many report with same computer in the SCEP alerts.

    Hi,
    We get many report with same computer in the SCEP alerts.
    I have an email sent to support desk for "Malware detection", but same computer ends upp severaltimes long time after it have been cleand with success. I dont have "repeated malware detection" alerts enable.
    So why same alerts reported several times even if it have been removed?
    /SaiTech

    Hi,
    Please refer to the link below:
    How to Configure Alerts for Endpoint Protection in Configuration Manager
    http://technet.microsoft.com/en-us/library/hh508782.aspx
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • I would like to answer the phone with one touch using the speaker button

    I would like to answer the phone with one touch using the speaker button?

    this is a user helping user forum if you wish to request/advice or complain to apple you will likely have more success using the feedback channel
    http://www.apple.com/feedback/iphone.html

  • Can I source an environment before making a system call from the database

    I can execute system calls from the database like
    Process proc = Runtime.getRuntime().exec("env");
    but I am unable to source an environment before making the call.
    Our goal is to from within the database to execute tkprof on a
    raw trace file then load both files into clobs in a table. We can load
    the raw trace no problem, we just cannot figure out how to execute
    tkrprof on the raw trace then load its output.
    Anyone know if this is possible to hava java get a runtime and then call
    an environment file to source the environment so that path's and other environment variables are set prior to executing another system command.

    Thanks for that...but can I do multiple edits in my Stored Procedure Vaibhav and pass back something that I can then utilize in my SSIS? For example...
    One and Only one Member Span...so I'd be doing a SELECT COUNT(*) based on my match criteria or handle the count accordingly in my Stored Procedure and passing something back via the OLE DB Command and handling it appropriately in SSIS
    Are there "Diabetes" claims...again probably by analyzing a SELECT COUNT(*)
    Am I expecting too much from the SSIS...should I be doing all of this in a Stored Procedure? I was hoping to use the SSIS GUI for everything but maybe that's just not possible. Rather use the Stored Procedure to analyze my stged data, edit accordingly, do
    data stores accordingly...especially the data anomalies...and then use the SSIS to control navigation
    Your thoughts........
    Could you maybe clarify the difference between an OLE DB Command on the Data Flow and the Execute SQL Task on the Control Flow...
    You can get return values from oledb comand if you want to pipeline.
    see this link for more details
    http://josef-richberg.squarespace.com/journal/2011/6/30/ssis-oledb-command-and-procedure-output-params.html
    The procedure should have an output parameter defined for that
    I belive if you've flexibility of using stored procedure you may be better off doing this in execute sql task in control flow. Calling sp in data flow will cause it to execute sp once for each row in dataset whereas in controlflow it will go for set based
    processing
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Inserting multiple selection from checkbox in to one column of the database

    Hi,
    how to insert multiple selection from checkbox into one column of the database.(I select array of values from checkbox ,then how to insert tat array of values iinto single column name).
    Anyone can u reply me
    Thanx

    hhhmmm.... is this what you mean?
    lets say you hava a checkbox1 with values value1, value2, value3 and you selected all there of them? then you want then to be stored in the database in one column?
    now the question is:
    Is it going to be one column one row?
    datafield
    value1,value2,value3
    Or one column multiple row?
    datafield
    value1
    value2
    value3
    Which is it?

  • Minimize calls to the database..

    Im trying to find out what would be the best way to minmize calls to the database..
    I created a function that has to determine if a record exist on a table..
    There is a cursor that loops thru another table to see if the value exist on other tables.. .. and the function is called in every loop.. but that means that it has to make a trip to the database every time..
    Is there is anything like in .net datatable that i can load the entire table in memory (80.000 + records) and query from memory without having to go to the database every time ? Or is it acceptable to call the function in each loop ?
    What are the tradeoff's ?
    Thanks !!!

    for stuff like this, it really depends what your bottle neck is.
    if you are finding that the CPU is sitting at < 20% while your hard drive is spinning like mad, then investigate using collections (aka:associative arrays aka: pl/sql tables). to a bit of reading there's heaps of stuff out there, basic format:
    declare
    type type_foo is table of tbl_foo%rowtype index by binary integer;
    tab_foo type_foo;
    begin
    select * from tbl_foo bulk collect into tab_foo;
    --you can then refference each row in the collection by:
    for i in 1..100 loop
    dbms_output.put_line(tab_foo(i).foobar);
    end loop; --this will output the first 100 foobar's.
    --alternatively, if you have a number as a unique identifier in the table,
    --you can use that as the table index and check for existance like the following:
    if tab_foo(i).exists then
    --stuff
    end if;
    end;
    (disclaimer: the above was just off the top of my head - syntax may be slightly incorrect, RTM)
    this puts the whole table in memory.
    now if after doing this, you find that your cpu is sitting at 100% and your hard drive is barely spinning, then you've potentially not solved your problem. check how long it takes - if one is not significantly faster than the other, then investigate other ways of speading it up (indexes, hints etc.)
    if you use a collection and you get 100% memory usage AND your hard drive is spinning like crazy, you've perhaps used too much memory and the server's using the swap file, defeating the purpose of putting something in memory in the first place.
    anyway, try it and see :D

  • Inserting multiple selection from checkbox into one column of the database

    Hi,
    How to insert multiple selection values from checkbox into one column of the database.
    Anyone can u help me
    Thanx

    hi
    try to use request.getParameterValues("fieldname")

  • Manage "Do not permanently delete items until you back up the database" mailbox level

    Hi,
    I need the active directory attribute name for "Do not permanently delete items until you back up the database" at mailbox level and the EMS command for enabling/disabling
    the above setting (the other settings in the following screenshot I found).
    Thanks in advance!

    Well, there are only 3 possible values I believe... 1 = database default, 2 = retain for custom period and 3 = Retain Until Backup Or Custom Period... However I have seen 2 doesn't work for some reason and if you have database default is not selected
    and keep deleted item for x days set to something else other than default and Do not permanently delete items until you back up the database is unselected then it set the value to 5 as well.... I guess other than these possible values if anything else is set
    then it will give you warning that object is corrupted.
    But yes value is other than 3 then checkbox is automatically deselected set based on what value it has... in short I would check what's the value for deletedItemFlags by setting all the possible options before coming to conclusion... ;)

  • How many downloads do you receive with one purchase of the Illustrator cs6?

    How many different computers can you download the program with one purchase?

    Ok, what illustrator should I purchase ( not monthly fee) to work on my imac osx 10.9.2 and my macbook pro osx 10.9.2
    Thanks. Julian
    Sent from my BlackBerry 10 smartphone on the Verizon Wireless 4G LTE network.

Maybe you are looking for

  • Itunes wont open when i try to activate

    can someone please help me...please? when i plugged my phone in for the first time, all that opened up was iphoto...and i have tried all the troubleshooting tips apple suggests but nothing is working. does anyone know what im doing wrong?

  • 24" iMac running Lion often freezes

    Hello. I have a 24" iMac (Early 2009) 2.66 GHz IC2D 4 GB DDR3 640 GB HD 7200rpm Nvidia GeForce 9400M OS X Lion 10.7.2 My iMac very often freezes and the whole screen becoms gray and it says : You need to restart your Computer.Hold down the Power Butt

  • Russian and English combined Index Group Title and sort order

    How should I create the combined index Group Title and sort order in Russian and Greek documentations?

  • Playing Certain Podcasts with EQ Messes Up iPod

    I think when i play a podcast episode and change the EQ settings in the middle of it then playing a new podcast would make the iPod turn off with a "strange sound" and make it restart after restarting, songs become scrambled and start to skip. I solv

  • Financial Reporting producing errors when opened through the workspace

    We have just upgraded our environment to 11.1.2.2 from 11.1.2.1 in our test environment and are experiencing issues with a few of our reports.  These reports are working correctly in our 11.1.2.1 production environment but produce the following error