Reusing queried data for new insert

I am new to Forms. I have a master/detail block created with the wizard. The master block consists entirely of the primary key. The detail block consists of multiple records that includes a field for the primary key... I am trying to create a new set of records with a new primary key. I want to use the detail records from the old primary key. Is this possible to do while maintaining much of the built in processing provided by the wizard? What triggers should I be using or trying? Do I need to alter the status of the form, block, record? Thanks for taking the time to read this far!

Are the tables have latest statsitics?
Take the statspack report and pay attention to the top 5 timed events. I would suggest you to get the session waits during this scinario.
Other workaround would be to trace the session with 10046, format with tkprof and analyze the explain plan of the queries.
Jaffar

Similar Messages

  • How to set a default start and/or end date for New Events based on trigger date.

    I'm using the CalendarActivityListener to get current row when clicking on an existing event. As per previous posts this listener gives you access to event detail including Start Date, End Date, etc.
    However, what I want to do is to default the start (and end) dates for New Events based on the trigger date.
    I've tried the CalendarListener and can grab the Trigger Date from it - however, I can't see a way to pass this directly to the popup/dialog I'm using to create the new event.
    At present I'm putting the TriggerDate into the ADFContext session scope e.g. ADFContext.getCurrent().getSessionScope().put("TriggerDate",calendarEvent.getTriggerDate());
    Then, I've tried multiple approaches to try and "get" the TriggerDate from session scope to drop it into my new Calendar Event basically, I'm trying to default the InputField(s) associated with the Start Date using the value from the session - I've tried
    1. setting the default value for the InputField in the jspx using a binding expression i.e. value="#{sessionScope.TriggerDate}" - this actually sets the value appropriately when the jspx is rendered but, when I go to create I get a NPE and I can't debug. I assumed that it might be a Date type issue - it would appear that CalendarListener provides a date of type java.util.Date and that the StartDate attribute of my VO/EO/table is a DATE and therefore requires oracle.jbo.domain.Date so I tried casting it - to no effect
    2. Using a Groovy expression *(StartDate==null?adf.context.sessionScope.TriggerDate:StartDate)* in my calendar's EventVO to default the Start Date to the same result
    Any thoughts or ideas?

    John,
    Thanks for that suggestion - could not get it to work. However, I did manage a different approach. I finally determined the sequence of events in terms of how the various events and listeners fire (I think).
    Basically, the CalendarActivityListener fires, followed by the listener associated with the Calendar object's Create facet, followed finally by the CalendarEventListener - the final is where the TriggerEvent is available and then finally, control is passed to the popup/dialog in the Create facet. So, my approach of trying to set/get the TriggerDate in the user's HTTP session was doomed to failure because it was being get before it had been set :(
    Anyway, I ended up adding a bit of code to the CalendarEvent listener - it grabs the current BindingContext, navigates through the DCBindingContainer to derive an Iterator for the ViewObject which drives the calendar and then grabs the currently active row. I then do a few tests to make sure we're working with a "new" row because I don't want to alter start & end dates associated with an existing calendar entry and then I define the Start and End dates to be the Trigger Date.
    Works just fine. Snippet from the listener follows
    BindingContext bindingContext = BindingContext.getCurrent();+
    *if ( bindingContext != null )    {*+
    DCBindingContainer dcBindings = (DCBindingContainer) bindingContext.getCurrentBindingsEntry();+
    DCIteratorBinding iterator = dcBindings.findIteratorBinding("EventsView1Iterator");+
    Row currentRow = iterator.getCurrentRow();+
    if ( currentRow.getAttribute("StartDate") == null)+
    currentRow.setAttribute("StartDate", calendarEvent.getTriggerDate());+
    if (currentRow.getAttribute("EndDate")==null)+
    currentRow.setAttribute("EndDate", calendarEvent.getTriggerDate());+
    *}*

  • Use JDBC to query data for JSP Report

    Hi all,
    I met a trouble when use JDBC to query data,
    it can show data in report builder, but get error when call from url for exxample: http://localhost:8889/reports/TestJDBCReport.jsp
    found error message:
    javax.servlet.jsp.JspException: rwlib-1: REP-4100: Failed to execute data source. REP-0069: Internal error JDBCPDS-62000:Invalid sign-on parameter P_JDBCPDS
    javax.servlet.jsp.JspException: rwlib-1: REP-4100: Failed to execute data source.
    REP-0069: Internal error
    JDBCPDS-62000:Invalid sign-on parameter P_JDBCPDS
    anyone know pls help me
    Many thanks

    As a general rule, it's a good idea to separate the
    presentation (JSP and HTML) from the business rules
    (database access). I know you didn't do that on the
    AS/400, you had display files and business logic in
    the same program (at least, we certainly do in ours),
    but it's a good policy to follow in the web world.
    That means, don't put your database access code in
    the JSP. Other than that, it depends on the data.
    If you have simple data (e.g. customer's name and
    d address) then a Java bean would suffice. If you
    have complex data (e.g. customer's payment history)
    then a bean still might suffice. You would use an
    "include" if you had some data (static or dynamic)
    that you wanted to appear in several different pages
    in the same form.Thanks, I figured putting the code in the JSP was not the best way, but I wasn't sure about the other options.

  • What about the 50% extra data for new customers?

    I signed up for Verizon HomeFusion 17 days ago.  I copied the following straight off your webpage for new HomeFusion customers:
    "New customers to the service will  receive 50% more data allowance for their first 2 full billing cycles.  Requires new 2-year activation."  Why am I getting data usage alerts and my account is only showing 10 GB allotted for this month. My bill shows that I was allotted 15 GB for only two days (1/24-1/25).  It hasn't been two months yet, barely even two weeks.  Who do I contact to get this fixed? 

        Getting data overage alerts can certainly be concerning flair_2000. Let's get to the bottom of your usage concerns. Customer gets a 50% data bonus on their prorated billing cycle at activation. If you are currently on the 10 GB data plan, with the 50% more data, you will obtain an additional 5GB of data. When is your bill cycle end? Depending on your bill cycle, you will still obtain data usage alerts. For example, the 10 GB of data usage will be prorated depending on when service is activated and your bill cycle ends. The 5GB of extra data will not be prorated.
    To view your usage and prevent any overage, you may review your usage online via My Verizon by clicking http://bit.ly/xB4iTc  Should you have further questions or concerns, please feel free to reach out to us.
    Thank You,
    MichelleL_VZW
    VZW Support
    Follow us on Twitter @VZWSUPPORT

  • Release date for new updates

    I'm super excited about the new features, especially the integration of C4D and AE, and adding looks in Premiere. I've looked for information about release dates but can't find any details. What's the release date for the new features?

    No official date yet but based on past releases it will likely be in the next month or two.

  • N73 - date for new software version

    Please see below the date for the next update. This came from their Director of Customer Care:
    "With regards to your recent enquiry concerning software availability for your product code 0539101 for UK Country Variant I can confirm that at present you already have the latest software version available. New software version for your product should be available no later than Friday the 8th December in both our Nokia service points and Nokia Software Updater."

    goodie...
    for all those complaining about no Country Variant fw editions, just hang on 2 more weeks and have a merry xmas

  • Raw up date for new nikon d7100 in cs5.1

    raw up date for nikon d7100 for cs5.1 can any one please help me on this matter

    The D7100 is supported only in PS-CS6/ACR 7.4 and newer.  There will be no update for CS5.1.
    You can upgrade your CS to CS6 or CC or download the free DNG Converter to make DNGs from your NEFs and open those in older versions of Camera Raw.  You’ll want to make sure to set the DNGC compatibility options to something lower than the default of ACR 7.1.  The DNG Converter is available, here:
    http://www.adobe.com/downloads/updates

  • Data for new company code

    Hi all we are in process of creating new company code. And wanted to upload data for the same.We are given the reference company code for extracting the master data.
    I dont know how to make use of this reference company code to extract the MATERIAL AND VENDOR  data required.
    WHICH TABLES I SHOULD USE TO EXTRACT THE DATA
    Thanks in Advance
    Monica

    Hi,
    Use  tables,
    1.For material MARA,MARC,MVKE,( try use t.code:MM60)
    2.For vendor LFA1,LFB1 (try use t.code:MKVZ)
    Regards,
    Biju K

  • Sale date for new Ipad 2

    I am in Singapore now and want to know the date for ordering the new Ipad 2 and the hour since there is such a big time difference.

    Hi,
    March 11 at 5pm. I assume they are referring to Pacific time given Apple's headquarters in Cupertino.
    See the online store for more info.
    http://www.apple.com/ipad/how-to-buy/
    Carolyn

  • HT203177 Can time machine backup data for newer OS?

    I had upgraded my Macbook to OS X 10.7
    Can I continue to backup data for Time Machine used to backup data for the same Macbook with previous version of OS?

    Yes. Time Machine will continue to backup your system as it should.

  • Discrepency while REPLICATING META DATA (for new DATA SOURCE) in BI side.

    In R/3 I have created a simple TRANSACTIONAL data store based on an INFO QUERY.
    I even checked the veracity of this data store using RSA3 to see whether it extracts data. Works perfectly.
    I go to BW side. Click on the SAP module under which I have created the data source, right click, select 'REPLICATE' and click on it.
    ( I would love to post the screen shot here, but I think I may not be able to paste BMP files here).
    I will write the contents of the POP-UP that appears,
    Title:Data Source from Source System Unknown
    Pop-up contents:
    Data Source (OSOA) DS_01
    does not exist in BI system
    How do you want to create the object in BI?
    1. as DataSource (RSDS)
    2. as 3.x DataSource (ISFS)
    3. this and following 3 as DataSource (RSDS)
    4. this and following 3 as 3.x DataSource (ISFS).
    Well, I normally select option three as per my instructions (without knowing the real reason).
    But sometimes, either for the same data source or for another data sources that I created, the same pop up will appear like this
    Title:Data Source from Source System Unknown
    Pop-up contents:
    Data Source (OSOA) DS_01
    does not exist in BI system
    How do you want to create the object in BI?
    1. as DataSource (RSDS)
    2. as 3.x DataSource (ISFS)
    Just TWO options.
    And, if I select option 1, the data source does not work properly on BI side, though it worked perfectly on R/3 under TRANSACTION RSA3 and showed me data.
    For some unknown reasons, if I delete the erroneous datasource on BI side and sleep overnight and comeback in the morning and replicate, the POP-UP sometimes appears with FOUR options, (Notice the word 'SOMETIMES')
    Can someone explain the secret behind this?
    Thanks again in advance,
    Gold

    3. this and following 3 as DataSource (RSDS)
    That means there are total 3 new (not yet in BI) DataSources available, u wanted to replicate as 7.0 datasource (RSRS) or 3.x datasource (ISFS).
    (other 2 datasources activated from RSA5, or created by other users under that SAP module)
    If there is 1 new DataSource, u will  get just TWO options.
    1. as DataSource (RSDS)
    2. as 3.x DataSource (ISFS)
    After replication with option 1, u should activate datasource in BI, then create infopackages, transformation, DTP etc.

  • Reg: Query Problem for New Posting Period

    Hi Xperts,
    While I try to Map the A/P Invoices with their respective Outgoing Payment,
    I used the following Query and it's Query Printlayout
    SELECT T0.DocNum [Payment#], T0.DocDate [Payment Date],
    T0.CardCode, T0.CardName, T1.InvoiceId, T2.DocNum [AP Inv#],
    T2.NumatCard [Bill No.], T2.DocDate [Bill Date], T1.selfInv,
    T1.SumApplied, T1.WtAppld, T0.NoDocsum 
    FROM  [dbo].[OVPM] T0  INNER  JOIN
    [dbo].[VPM2] T1  ON  T1.[DocNum] = T0.DocNum
    INNER  JOIN [dbo].[OPCH] T2  ON  T2.[DocEntry] = T1.DocEntry
    WHERE T0.Cardname='[%0]' and T0.DocDate='[%1]' and
    T0.DocNum='[%2]'
    I got the above query from our Expert Mr.Sambath only.
    Now what is the problem is the query is retrieving the payment details of old Posting Period only and not the current posting period.
    In detail, I used 'Primary' Series for FY08-09, Period indicator 'Default'
    Now I'm using 'Primary1' Series for FY09-10, Period indicator '0910'
    Thanx in adv.
    Regards,
    Bala

    Hi Bala,
    Looking at your query, it is not query issue ,it is your data issue.
    Please check if you have data in  VPM2  table  which is bank transfer payment method
    Thank you
    Bishal
    Edited by: Bishal Adhikari on Apr 9, 2009 8:48 AM

  • 0HR_PT_2 How to get back historical data for new report time type

    Hi All Expert,
    We have implemented and using the 0HR_PT_2 extractor for the past whole year. The Delta is working. Recently, there is requirement to read more data from the ZL custer table, and more new BW Report Time Types are added to extract such data.
    The delta doesn't pick up the the past whole year data of the new report time type that we added.
    Do we need to re-initialize the load to get back those historical data every time when we add a new report time type?
    Please advice and Thx
    Ken
    Edited by: Ken Hong on Feb 27, 2008 9:24 PM
    Edited by: Ken Hong on Feb 27, 2008 9:25 PM

    P.s, all hidden files are shown in es file explorer as this backup folder was hidden originally. It has a '.' in front. So I'm pretty sure the folder it's gone, but as I've not erased my phone again, shouldn't the folder be somewhere in my SD card still and how can I find it using my Mac?

  • Throttled data for new heavy users??

    HowardForums had a link to a this tidbit from a Verizon site.
    Important Information about Verizon Wireless Data Plans and Features
    As part of our continuing efforts to provide the best experience to our more than 94 million customers, Verizon Wireless is introducing two new network management practices.
    We are implementing optimization and transcoding technologies in our network to transmit data files in a more efficient manner to allow available network capacity to benefit the greatest number of users. These techniques include caching less data, using less capacity, and sizing the video more appropriately for the device. The optimization process is agnostic to the content itself and to the website that provides it. While we invest much effort to avoid changing text, image, and video files in the compression process and while any change to the file is likely to be indiscernible, the optimization process may minimally impact the appearance of the file as displayed on your device. For a further, more detailed explanation of these techniques, please visit www.verizonwireless.com/vzwoptimization
    If you subscribe to a Data Plan or Feature on February 3, 2011 or after, the following applies:
    Verizon Wireless strives to provide customers the best experience when using our network, a shared resource among tens of millions of customers. To help achieve this, if you use an extraordinary amount of data and fall within the top 5% of Verizon Wireless data users we may reduce your data throughput speeds periodically for the remainder of your then current and immediately following billing cycle to ensure high quality network performance for other users at locations and times of peak demand. Our proactive management of the Verizon Wireless network is designed to ensure that the remaining 95% of data customers aren't negatively affected by the inordinate data consumption of just a few users.
    And here is a link to the optimization process

    lewisr13 wrote:
    Comcast does something very similar with their internet. They do it so users don't use the residential service for heavy business usage. Residentialservice is cheaper than business class.
    They also have a meter so you know where you stand. Also, throttling does not continue into the next month. I just feel VZW should had been more up front about this BEFORE the preordering of the iPhone.
    It will not affect me at all.

  • Logon_time in v$session gives old date for new session

    Hi,
    I have a unique issue whenever I run v$session for username='A' and status= active I see logon_time as old date in this its '12-MAY-2008'. Now there are total 150 sessions for username='A'. 2 are status= Active, 1 is status=Killed and 147 are status=INACTIVE.
    So whenever a new session comes from application side it activates the INACTIVE session and date remains 12-May-2008 instead of current date.
    Also when you logon directly to Oracle using user 'A' , again same logon_time in v$session, rather than current date in logon_time. We are using Oracle 9.2.0.6 on Unix.
    Any way I can resolve this issue?
    Regards,
    Tushar Kathe

    Hi,
    select username,logon_time,machine,terminal from v$session where status='ACTIVE';
    USERNAME LOGON_TIM MACHINE TERMINAL
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    SYS 22-MAY-08 prod1.test.com
    pts/4
    TEST 12-MAY-08 app20.test.com
    SYS 22-MAY-08
    16 rows selected.
    You can see the schema test shows logon_time as 12-May-08 but he has infact logon in the system today so should have today's date. The Toad time output I don't have.
    Regards,
    Tushar Kathe

Maybe you are looking for