Testing for Insert after ApplyMRU runs

Apex 4.0, Tabular forms.
I have 2 tabular forms. First is a master. Second is a detail. On separate pages.
I would like to automatically redirect to the detail if a new record is inserted on the master.
I thought maybe I could test #MRI_COUNT# for 1 after APPLYMRU runs.
So I,
1. Set up a process after APPLYMRU that retrieves the high key off the master and updates a page item with the value.
2. Set up a branch to call the detail and set a page item in the detail to the master page item set in #1.
Tried to make both conditional on item=value #MRI_COUNT# = 1. Neither fired.
Is the concept of testing #MRI_COUNT# flawed? Is there a better way to do this.
Thanks!

I came up with a solution that works. Not very elegant. A bit brute force. But it works.
1. Inserted a PL/SQL block process that executes On Submit before ApplyMRU. Captured high key on the table. Moved it to Pxxx_OLD_KEY.
2. Inserted a PL/SQL block process that executes On Submit after ApplyMRU. Captured high key on the table. Moved it to Pxxx_NEW_KEY.
3. Put a branch to the detail page that ran on the condition that Pxxx_OLD_KEY != Pxxx_NEW_KEY and SUBMIT key button pressed. Passed Pxxx_NEW_KEY to the detail page.
If there were updates only the before and after key would be the same. If the DELETE button was pressed the Branch would not execute.
Not particularly proud of it. But it works so far.

Similar Messages

  • My iphone 4s gets stuck on "searching" for network after it runs out of battery

    My iphone 4s gets stuck on "searching" for network after it runs out of battery , i have to restart my handset repeatedly till it gets network why is this ? 

    Hello Andres.J,
    Thanks for using Apple Support Communities.
    Take a look at the following article, specifically steps 3-7 since you have already restarted the iPhone.
    iPhone: Troubleshooting No Service
    http://support.apple.com/kb/TS4429
    Take care,
    Alex H.

  • Schedule lines are not coming for HALB after MRP run

    Dear All,
    I am not getting schedule line after mrp run, inspite of all required setting only purchase requisitions are coming.
    Material type is HALB and involve a subcontracting process (30). For raw material I am getting the schedule line but in the case of HALB, it is not coming.
    Pls let me know if I am missing something and guide me further on this.
    Thanks & Regards
    Kundan Kumar

    Hi,
    In transaction OMDT you have to enable the indicator create schedule lines
    In MD02 MRP control Prameter here select the Delivery schedules -3- Schedule line. Processing Key as NETCH and Planning Mode - 3 delted and recreated.
    Maintain source list ME01, in that put MRP indicator as '2' i.e. schedule lines via MRP.Put your agreement no in that.
    If u run MRP properly u will get schedule lines automatically in ME38.
    Make the schedule agreement, make it source relevent in the source list make is FIX and MRP indicator as 3.

  • How system will generate schedule line for PO after  MRP run.

    Dear Experts,
                                 i have updated  MPS in MD61, the period indicator was  M (monthly),  after  MRP run, system  generating schedule  lines  on daily basis for Scheduling Agreement(ME38), i want  schedule lines   on mpnthly basis, how to achive this,
    thanks in advance.
    regards
    rajakarthik

    Hi
    1. Are you maintaining any Planning time fence period for MPS- No 
    2. What is the PIR qty you maintained in MD61:
                                                                                    i.) FG01 is having BOM  child part RM01.
                              To  produce 1 nos of  FG01 , I need 1 nos of  RM01                                                                               
    ii.) i maintained  FG01 in MD61  with PIR  Qty 5000. in MD61,Planning period is M  and planning hirizon1- jan10To 31-Jan10
           ii.)  i maintained lot size:Monthly lot size for RM01.
           iii.)  there is  no stock  available for  both RM01 and FG01.                                                                               
    3. After MRP how much qty is get planned on what date-     
         i)   planned order created for FG01 in co41 with qty-5000 nos.
         ii)  in ME38, schedule  line created for RM01,  on 01-01-2010, with 5000 nos,  currently Category of Delivery Date
    field is D and delivery date is   01-01-2010, but i want Category of Delivery Date should  be M and delivery date should be 01.2010.
    thanks
    raja

  • Defalut Document Type assignment for PR after MRP RUN

    Hi,
    I want to know we have 6 types  of different document types , i want to know after MRP RUN i want to assign a document type how to do setting for this  like for each plant i want to assign diffrent document  type after MRP RUN, also if we have not made  which will be the defalut doc. type after MRP RUN for PR
    regards,
      zafar

    Dear Zafar,
    Go to
    Spro-Materials Management-Consumption-Based Planning-Planning-Procurement proposals-Define External Procurement-MRP Group-Under Doc Type SPO you can maintain your default doc types in front of your plant.
    Now run MRP.
    It will work.
    Regards
    Utsav

  • LabVIEW ofter hangs for seconds after save, run command, creating variables, etc.

    Dear users,
    my LabVIEW installation often hangs after common commands such as Save, Run, after creating variables (the label is draw directly, then after few seconds the variable and the wire is created), etc.
    LabVIEW 14.01f (32bit)
    Windows 7 64bit
    The same version of LabVIEW on Windows 7 on other computers runs smoothly. Only that particular super-new and high-performance Lenovo laptop drives everybody in the team crazy.
    Any suggestions, what should I check, please?

    Other reasons for such delays can be network drives that are currently disconnected or point to resources not currently available on the network. Or installed printers pointing to printers not currently available. And last but not least system drives that are trashed with large amounts of files in important system locations.
    While the first reasons can be fixed by removing such drives and printers altogheter, the last point only really is fixable by a clean reinstallation of Windows. And no it's not just LabVIEW that usually gets affacted but just about any application when accessing the file system, for instance very noticable when opening the file select dialog in any application.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Testing for date after

    another problem in the same function. I have this method which is provided with a sql date. It passes the date, adds 90 days to it, and sees if todays date is after the testdate + 90 days. For some reason, the logic isn't right and provides me with what seems random output. Any suggestions?
         public static boolean passwordChangeRequired( String dateTest )
              //Get todays date
              //String dateToday = new SimpleDateFormat("yyyy-MM-dd").format(new java.util.Date());
              Calendar cal1 = Calendar.getInstance();
              //Add 90 days to the dateTest
              Calendar cal2 = Calendar.getInstance();
              DateFormat df = new SimpleDateFormat("yyyy-mm-dd");
              try {
                   cal1.setTime( df.parse( new SimpleDateFormat("yyyy-MM-dd").format(new java.util.Date()) ) );
                   cal2.setTime( df.parse( dateTest ) );
              } catch (ParseException pe) {
                   System.err.print("Could not parse date: " + dateTest + "\r\n");
                   return false;
              cal2.add( Calendar.DATE, 90 );
              Date dateToday = cal1.getTime();
              Date dateNewTest = cal2.getTime();
              //if dateTest is less then today date, return true, else return false;
              if (dateToday.after(dateNewTest))
                   return true;
              return false;
         }

    DateFormat df = new SimpleDateFormat("yyyy-MM-dd");be careful with the format, MM is capital letters,

  • Failed to run syspref "Test for CloneTag in registry to verify Sysprep completed"

    Hi All
    After install windows 7 and some application i try to capture and sysypref from running script
    cscript \\server\DeploymentShare\Scripts\LiteTouch.wsf
    i get below error
    <![LOG[FAILURE (Err): -2147024894  0x80070002: Test for CloneTag in registry to verify Sysprep completed. - Unable to open registry key "HKEY_LOCAL_MACHINE\System\Setup\CloneTag" for reading.]LOG]!><time="12:47:30.000+000" date="01-31-2010" component="LTISysprep" context="" type="2" thread="" file="LTISysprep">
    <![LOG[FAILURE ( 6191 ): Test for CloneTag in registry to verify Sysprep completed. - Unable to open registry key "HKEY_LOCAL_MACHINE\System\Setup\CloneTag" for reading.]LOG]!><time="12:47:30.000+000" date="01-31-2010" component="LTISysprep" context="" type="3" thread="" file="LTISysprep">
    <![LOG[Litetouch deployment failed, Return Code = -2147467259  0x80004005]LOG]!><time="12:47:31.000+000" date="01-31-2010" component="LiteTouch" context="" type="3" thread="" file="LiteTouch">
    <![LOG[For more information, consult the task sequencer log ...\SMSTS.LOG.]LOG]!><time="12:47:31.000+000" date="01-31-2010" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    <![LOG[Property RetVal is now = -2147467259]LOG]!><time="12:47:31.000+000" date="01-31-2010" component="LiteTouch" context="" type="1" thread="" file="LiteTouch">
    Thanks ,
    Davide

    Hello
    Just thought I would add my fix for this issue for anyone who is still getting it:
    Go into Services.msc and stop and disable the following service: "Windows Media Player Network Sharing Service"
    Then sysprep continues on past the stage where it gives the warning about the CloneTag key and successfully completes (hopefully!).
    In this instance if you instead manually re-add the CloneTag key the image will give a BSOD on restart if you try to deploy it (mine did anyway).
    It appears the error occurs and the sysprep stage fails so the CloneTag is not set to stop the deployment going any further.
    If the task sequence is failing then it may be better to run a local sysprep and generalize from c:\windows\system32\sysprep\sysprep.exe as this gives better error messages.
    It's also good to build the reference computer image in a virtual machine which you can snapshot before you start so can quickly revert back and try again if it messes up (as mine did a few times until I worked out the cause).
    Your issue may not be the same as mine though but hope it helps someone.
    Robin
    P.S. Looking online it looks like the bug with the windows media sharing service goes back as far as pre RTM builds.
    Robin Wilson
    Thanks, this worked for me trying to sysprep Windows 7 x64 Home Premium.

  • Query slows down after second run for Index Organised Tables

    We are trying to optimise our application which supports MSSQL to run with Oracle 9i for one of our customers.
    We have created one database with normal tables and PK constraints/indexes and turned caching on for the tables, this seems to work well but no way as fast as MSSQL on similar hardware. The first run of query was slower but as the caching became more effective the query times came down.
    So we investigated turning the tables into Index Organised Tables. We ran analyze on the new indexed tables and the response time of one of our more complex queries became akin to MSSQL. We ran the same query 5 seconds later and it took about 3 times longer to return the same data. Subsequent runs produced the same result.
    We have run the same query on both styles of tables and also run showplans on the two queries, the regular table returns a cost of 190 and the IOT 340. This would point to the fact that we should use the regular tables for our queries but why did the IOT set return much faster for the first run after the analyze then slow down as if the stats were missing, but the execution plan remain the same.
    Any help would be appreiciated.
    Darren Fitzgibbon

    could be a lot of reasons:
    1. Is Oracle the only process that runs on this server? Could it be any other process (i.e. MSSQL) that took the the resources during the secodn run?
    2. Is this the only query that was running during your tests? Could there be another query that put the load on the database when you were running the second test?
    3. The autotrace statistics and explain plan would be useful for first and second run
    (how to use autotrace:
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96533/autotrac.htm#1018
    4. If you run the same process again several times - how does the response time change?
    Mike

  • Schedule lines are not coming after MRP run for HALB material

    Dear All,
    I am not getting schedule line after mrp run, inspite of all required setting only purchase requisitions are coming.
    Material type is HALB and involve a subcontracting process (30). For raw material I am getting the schedule line but in the case of HALB, it is not coming.
    Pls let me know if I am missing something and guide me further on this.
    Thanks & Regards
    Kundan Kumar

    Dear All,
    I am closing this thread. As the vendor mentioned in scheduling agreement is not a subcontracting vendor. Its a individual vendor.
    Thanks for all the reply.
    Thanks & Regards'
    Kundan Kumar

  • HT3986 I have a pc that is one year old and the hard drive is crashing we use it only for quick books to run our small business I would like to buy amac and install the OS  forom the pc to the apple product i will not use the pc after can i use the OS off

    I have a pc that is one year old and the hard drive is crashing we use it only for quick books to run our small business I would like to buy a macmini and install the OS  from the pc to the apple product i will not use the pc after, can i use the OS off the pc or do I have to purchase another?

    I think you can get Windows 7 for around $99. Install the 64bit version as the 32bit version will not be able to use all your new computer's ram if you have more than about 3.5gb.
    Back up your quick books data now before the old hard drive dies. You can copy your data over to your new installation of Windows and quick books.
    By the way, there is quick books for Mac http://quickbooks.intuit.com/mac/?sc=BNR-000-COR-quickbooks&priorityCode=4902000 000&cid=ppc_google_QB-Intuit-Core-Brand-Mac_quick-books-for-mac_exact&site=&ad_i d=9347918288&raw_keyword=quick%20books%20for%20mac
    So you may not need to install Windows at all.

  • I have created PDF from hardcopy by using my scanner. After I run OCR option for my PDF by using Acrobat Pro 9. But "Text-to-speech" functionality of the PDF says that an error message comes up that says the page is empty when I turns on the read out loud

    I have created PDF from hardcopy by using my scanner. After I run OCR option for my PDF by using Acrobat Pro 9. But "Text-to-speech" functionality of the PDF says that an error message comes up that says the page is empty when I turns on the read out loud option in Acrobat. Kindly help me to sortout this problems?

    So I tried generating the same PDFs on two other computers that have Acrobat 9 Pro.  Results were reproduced.  The verdict is:
    - complex PDF files (that is, containing cross-references, tables of contents, and bookmarks) generated by Acrobat 9.x Pro are roughly 2-5x larger than the identical file generated with Acrobat 8.x Pro.
    - different PDF conversion settings make a negligable difference (less than 10% rather than 70-80%).
    - using the "Reduce File Size" or "Optimize PDF" option cuts the file size roughly in half, almost always resulting in a "image downsampling mask" warning message, which requires acknowledgement (that is a problem for batch processing or automation).
    - adding an Acrobat watermark to the file cuts the file size roughly in half.
    - just using Save As to another filename has no effect on file size.
    - generating the PDF in Acrobat 9 with links but no PDF bookmarks still results in the inflated file size.
    - generating the PDF in Acrobat 9 without any links or bookmarks results in approximately the same file size as the Acrobat 8 PDF with full links and bookmarks.
    It appears that Acrobat 9's manner of adding links is what's bloating  the files, and in my case it's probably not related to images or image resolution/print quality.  It's a shame, because Acrobat 9 seems to have made some  improvements to the Review Tracker interface, and a few other bells and  whistles which I haven't really gotten around to exporing yet.  But  unless I find a way to keep my links and the PDF file sizes comparable to what I was  getting with Acrobat 8 Pro, it looks like I'm going to stay with Acrobat 8.

  • After the last update that I received I'm getting "This version of iTunes has not been correctly localized for this language please run the English version". How do I fix this?

    After the last update that I received I'm getting "This version of iTunes has not been correctly localized for this language please run the English version". How do I fix this?

    Hello LKBrown608,
    The article linked below provides some useful information that can help get iTunes running on your computer.
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    Cheers,
    Allen

  • [svn] 4637: Update config testsuite on blazeds/ trunk to run mxunit tests for a configuration if there are any mxunit tests found in the configuration test directory .

    Revision: 4637
    Author: [email protected]
    Date: 2009-01-23 04:40:16 -0800 (Fri, 23 Jan 2009)
    Log Message:
    Update config testsuite on blazeds/trunk to run mxunit tests for a configuration if there are any mxunit tests found in the configuration test directory. Change some things around in the mxunit build.xml to make this possible, mainly allow things like test directory, reports directory etc. to be passed in as ant properties.
    Add browserServer.jar to the qa-regress-sdk.zip file used for regression runs.
    Update blazeds/trunk to use the latest qa-frameworks.zip.
    Checkintests: passed
    Modified Paths:
    blazeds/trunk/qa/apps/qa-regress/build.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/build.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/build.xml
    blazeds/trunk/qa/resources/frameworks/qa-frameworks.zip

    Just checked but could only find this thread Unable to run ADFBC JUNIT Test Classes with JDEV11G 11.1.1.6
    As it's also dealing with junit and 11.1.1.6.0 you might want to read it.
    Timo

  • Purchase requisition not generate for dependent requirement after MRP run

    Hello PP expert,
      In our MTO scenario after MRP run planned order generate for header material but no PR generate for BOM components, (BOM not explode) when we run MRP component level in MD02 PR generate, system showing message "40- No coverage not provided by master plan" in MD04 order tree. this problem coming after when we DIMP applied. I checked some OSS note also.
    Can any one provide right solution.
    thanks in advance.....its urgent as client requirement.
    regards,
    Amit Awasthi.

    Hi Amit
    You must select the green star for the correct answer, in order to close the thread.
    You may also select the yellow start for the helpful answers, in order to award points for those who helped you. See the blog below for more details:
    How to close a discussion and why
    I can see that most of your old threads are still open, therefore, I'd like to ask you to review and close them, by selecting the correct answer.
    BR
    Caetano

Maybe you are looking for

  • How do you fix the sound that's not working on an iPad mini?

    OK so the sound on it does not work. It's turned up all the way but nothing is still coming out. When I plug headphones into it, it works just fine and normal but without it, nothing. I looked up on google at the options of how to fix this and they p

  • Ipad mini apps do not have X to delete

    With IOS 8.2.1 and 8.2.2 installed, when I hold on apps they do shake but no "X" appears on any of them to delete. Tried Settings Accessibility, it is green for apps deletion. What is wrong?  Thanks

  • Nike+ workout tracks not showing up on iPhone after sync

    I have a bunch of the "workout" mixes you can get from iTunes (Increase Your Speed, Treadmill, etc), and with each of those sets, one track is a continuous mix of all of the songs. That one track is what I want to sync with my iPhone. According to iT

  • Shpmnt Freight Cost varies(extra/short material)

    Hello, We have recently implemented Shipment freight cost for Inbound Shipments. Shipment cost is calulated based on weight. The issue we are facing is: If In an Inbd/delivery there are two HU and each having 100 cartons(total shipment 200 cartons) a

  • Unicode Normalization Form??

    Hi Folks, To stay consistent with my Apache host, I've chosen UTF-8 as my default page encoding under "New Document" in DW 8 Preferences. Dreamweaver "Help" implies that you need to specify a "Unicode Normalization Form" if you select Unicode (UTF-8)