How to get trigger-filled-in PK immediately after commit

Hi You Form Experts,
I have two blocks in a form. The two blocks are "linked" by an FK (block2's PK stored in block1's table), but they do not have an exactly "parent-child" relationship. Block1 always has a record and commits first, and there may or may not be a record in block2. So, in the form the two blocks are not joined. And if and when there is a record in block2, I need to update block1 with the block2's PK so that the records are associated.
The problem here is that the PK of block2 is a sequence number and is filled in by a DB-side pre-insert trigger. So, there PK is not available in block2 immediately after the commit.
Is there a way to force a "refresh upon insert" of the PK item of block2 in Forms?
Thank you very much in advance.
ZD

can't u get ur block2 primary key value by:
ON each new_record_Instance of block2
rownum := get_block_property('block2',current_record);
select nvl(max(pk_column))+ rownum into :pk_column
from block2_table;
Thus u can get the next assignable value for block2.
Reply if it works

Similar Messages

  • Enyone know how to get USB stick back to normal after creating a USB boot disk for Mavericks?

    Enyone know how to get USB stick back to normal after creating a USB boot disk for Mavericks? https://discussions.apple.com/message/23527458#23527458

    You should just be able to erase it using Disk Utiilty. I did with my 8Gb.
    If not I have a USB deep format tool, but it only works with Windows: http://tinyurl.com/mwor6s9
    You can download that and unzip it, then run it on a PC to fully erase and format the flash drive. Format it in FAT, and then the Mac will read and mount it so you cna once again format it with HFS extended for Mac use.

  • How to get trigger definition in sqlplus?

    H there,
    How to get a trigger definition in sqlplus?
    Version: 8i.

    I think if u are unable to see it in dba_source...u will not be able to see in all_source....
    As sundar said...u need to write some thing like shoblock wrote for indexes in:
    Generate script of index

  • How do get my ipod to work again after it died

    How do i get my ipod to work again after it died and wont charge?

    Well...hm... Your going to have to replace it, or get it serviced. Or give it to Apple for a 10% discount on another. What gen is it? Some people buy broken iPods like:
    https://www.gazelle.com
    or maybe its spelled https://www.gazzelle.com
    I dont remember

  • Trigger a background job immediately after a file is placed in App Server

    Hi all,
    I have a program  ZPGM1 that needs to be executed in background when a file is placed in an application server.
    I know i can schedule  ZPGM1 to trigger in background after an event say ZEVENT1.
    Also i know i raise the event ZEVENT1 using FM BP_EVENT_RAISE but my problem is who would raise the event.
    The file is being dropped in application server at random time by 3 party vendor. I need to execute my ZPGM1 immediately after the file is placed in Application Server.
    Is ther a way that this can be achieved. Let me know
    Thanks
    Kajol

    You will need to develop a custom, non-SAP "listener" program or a script. This program/script will need to check if the file is present (e.g. by using an OS-level event) and, if so, start SAPEVT.EXE program with corresponding parameters.
    SAP Help on raising events externally:
    http://help.sap.com/saphelp_nw04s/helpdata/en/fa/096e6b543b11d1898e0000e8322d00/frameset.htm
    There is also third-party software available, but it is very expensive:
    http://www.redwood.com/

  • How to get committed date for each component after availability check

    Hi,
    When I use CO02 to check material availability, I can see committed date in missing part list and missing part overview for each component in production order. I save it and use CO03 to read missing part list again. The committed date is blank?! How to get the committed date for each missing part in production order?
    Another question, committed date can be displayed in CO24(missing parts info system)? Thanks in advance!!

    Rita,
    Please check that the PP avail. check has replensh lead time turned on. If RLT is turned off & there is no sufficient stock of material, then system can only committ date of 12/31/9999.
    Once you turn on RLT, it will give you some date based on your configured avail check ( that looks at stock or purchase order or production order). That way if there is no sufficient stock of material to satisfy your order system will committ the worst case date which is the RLT.
    On CO24 unfortunately there is no field for Committ date. Hence is it not possible to view commit date. You can only view Committ quantity.
    i am sure this will help you. Else please come back.
    thanks,
    Ram

  • How to get my free version of lion after buying a new mac, how to get my free version of lion after buying a new mac, how to get my free version of lion after buying a new mac

    I have just recieved my new mac book pro and I was wondering how to get my free version of Lion!
    Can anyone help me with this matter?!

    Try http://www.apple.com/macosx/uptodate

  • How to get top left stage corner coordinates after resize?

    hi,
    is there maybe a way to get top left stage corner coordinates
    after resize?
    or maybe get original stage size before resize? so i can
    calculate it.
    i know that you can collect the width and height before it is
    resized but is it possible after?
    --- sorry for the double post ---

    i donno exactly but try like this ,
    data: i_logo  type bds_typeid.
    data: lr_logo type ref to cl_salv_form_layout_logo,
    lr_content     type ref to cl_salv_form_element.
    i_logo = 'MY_SAP_LOGO'.
    IF i_logo is not initial.
    create object lr_logo.
    lr_logo->set_left_content( i_logo ).
    lr_content = lr_logo.
    endif.
    cl_salv_form_content=>set( lr_content ).

  • How to get Outlook email indexed by Spotlight after reinstalling Office 2011?

    I reinstalled Office 2011 and my Outlook email index stopped updating. I forced a reindex of the entire drive, but the email still wasn't indexing. Stopped by the Genius Bar and they suggested reindexing the drive and repairing permissions (didn't work).

    Hi
    As per the information and details provided by you, to get Outlook email indexed by spotlight after reinstalling Office 2011, please follow these steps: -
    Outlook provides a custom importer to Spotlight to index email. It is typically found in:
    "/Applications/Microsoft Office 2011/Microsoft Outlook.app/Contents/Library/Spotlight/Microsoft Outlook.mdimporter",
    You can use the command
    /usr/bin/mdimport –L to list all installed importers. When I did that I saw that the importer from the old installation of Outlook was still installed because it was still in the trash can. When I tried to manually import an email using the
    command usr/bin/mdimport –d2 /[ path ]/x00_138.olk14Message I saw that it was failing to load the importer from the trash.
    Emptying the trash fixed the issue. Wish there was a way to selectively empty the trash without deleting everything.
    Once I emptied the trash,  had to force Spotlight to reindex the email folder by adding the /Users/jim/Documents/Microsoft User Data folder to Privacy
    tab of Spotlight System Settings, and then removing it again. After spotlight reported the indexing was complete (via the Spotlight dropdown in the upper right) the email was all indexed again.
    I hope this information will be helpful for you.
    Thanks and regards
    Shweta@G 

  • How to get gradient fill color in Illustrator

    I have button drawing for web in Adobe Illustrator format. I'm trying to get fill settings to create the same look with CSS. I can't find what color to use and gradient settings.

    Eugene,
    In the Window dropdown list (in the row at the very top starting with File), can you tick Gradient, and if so, what happens?

  • How to get trigger code from the schema into a file

    Please help me in getting code of any trigger from the schema, without using any data dictionary views.

    In fact you can get the trigger code by using tools like toad,sql developer
    But all are using the data dictonary view to get the code .

  • How to get back to regular arrange view after double clicking on a rex file

    Hi. How do I get back to the regular arrange view where I can see all of my tracks in the arrange window. I had double clicked on one of the tracks which was a rex file. I wanted to see what the slices looked like. Doing so just brought me to a new arrange looking window with the one rex file track as the only track. And now I can't get back.
    PBG412" Mac OS X (10.4.5)

    Double Click on the arrange background
    J

  • How to get my data back from TM after new hdd/re install

    my main drive broke, so I have replaced it and reinstalled 10.6. I was on 10.6.2 and let TM do its thing, so I do have all my documents/downloads/etc backed up in TM, but i am a relatively new user to OSX.
    After the reinstall, when prompted, I set the original TM drive to be the new TM drive and then I shut down (had to come to work lol).
    So, before I carry on and do something wrong, how do I get my documents, mail, downloads and applications back from the TM? Will I have to do the UID thing to match the TM drive/user as my OS drive is a new physical drive?
    sorry for the noob question.
    Michael

    MichaelToye wrote:
    my main drive broke, so I have replaced it and reinstalled 10.6. I was on 10.6.2 and let TM do its thing, so I do have all my documents/downloads/etc backed up in TM, but i am a relatively new user to OSX.
    After the reinstall, when prompted, I set the original TM drive to be the new TM drive and then I shut down (had to come to work lol).
    You did not have to reinstall OSX. The best, most reliable way to recover your entire system from backups is to use the procedure Apple provides for that, as detailed in #14 of the Frequently Asked Questions *User Tip* at the top of this forum.
    Your best bet is to start over with that procedure.

  • How to get a professional certificate for Adobe After Effects?

    To Whom It May Concern,
    My name is Ariff and i live in Malaysia. I would like to know how and where to get certificate for All Adobe Illustrator, Photoshop and After Effects? etc How to be an officially trainer to students
    Sincerely
    Ariff.

    Hi Ariff,
    you will find the informations there: Adobe Certified Expert Training | Adobe Training & Certification
    maybe of interest Adobe's German website with the four steps: Adobe - Support: Lassen Sie sich noch heute zertifizieren und zum ACE ausbilden and
    Adobe - Support: Adobe Certified Instructor (ACI) I didn't find the adaequate websites in English language.
    Hans-Günter

  • How to get unmatched songs on my iPhone after running Match

    A small percentage of my songs have been included in Match. I've subscribed for over a year.   More than half the songs in my library have no cloud status (so it's not that they are definitively NOT available for Match). I click on the Update Match in the menu, and I get a message that it is evaluating my library but it stops and nothing at all happens. Not when I repeat it, and not when I let it run for over 24 hours. More than half my songs are not available on my iPhone and I can't see any way to make them available (to load them on my phone).  I am NOT a happy camper.  I pay for Match.  What can I do?
    Thanks,

    Thanks for the heads up. After further research, I notice that a lot of the songs that don't show that they are matched, are, afterall matched.  There are those (like Michael Jackson) that have the slashed cloud to say they are not available for match but some that were legitimately downloaded (or ripped) still aren't included and have no type of cloud message.
    This started because I wanted to listen to an old Rascals album, and Ozomatli, and a few others still aren't showing, others are only in the compilation albums but not listed by artist.
    What about those, and the songs that aren't Match eligible (like Michael Jackson).  How can I listen to them on the iphone/ipad?
    BTW version of iTunes is 11.0.3.

Maybe you are looking for