Key-down and post-query

hi,
i am debugging other people's work. on this form there are database item and non db items. and in post query trigger it populates non db items. the problem is when user key down, it goes to next record and fires post query trigger. but on key up trigger, it doesnt. does key down or key up automatically fires post-query trigger?

A list box is a very different object from a normal non-database item in the record. Oracle Forms does not expect you to need to change the contents of the poplist when you change records -- the values normally remain the same no matter which record is current.
So... if you really want a dynamic poplist, then you need to do this:
1. Use the post-query trigger to look up the name you need, and place it in a hidden Text Item.
2. In the when-new-form-instance trigger, create a record group at runtime: use create_group_from_query, and just do a select from dual, to establish a two-column record group with the list label colum large enough to hold the name to be displayed.
3. In a when-new-record-instance trigger in your block, clear the contents of the record group, and then add one row, and then set the value of the label column to the value of the hidden name field.
4. Then use Populate_List to put the contents of the record group into your poplist.

Similar Messages

  • With Mavericks I have to hold command key down and double click to get a sub folder to open in a new window.  Can I go back to just double clicking ?

    With Mavericks I have to hold command key down and double click to get a sub folder to open in a new window.  Can I go back to just double clicking ?

    Of course. To do it, open a Finder window, go to Finder menu (on the menu bar) > Preferences > General, and untick "Open folders in tabs instead of new windows".

  • I just created a new iPhoto library with holding the option key down and then opening iPhoto with version 7.1.5.  I changed the name of the first library to iPhoto library 1 and now I all my photos are gone.  My operating system is Mavericks.

    I just created a new iPhoto library with holding the option key down and then opening iPhoto with version 7.1.5.  I changed the name of the first library to iPhoto library 1 and now I all my photos are gone.  My operating system is Mavericks.

    launch iPhoto wile holding down the option key and select the original library - when you create a new library of course it is empty
    And you seriously need to backup your iPhoto library and purchase and install iPhoto '11 version 9.5.x from the App store and download and run the iPhoto library upgraded \then run the new iPhoto - 7.1.5 is not fully compatible with Mavericks
    LN
    PS you also need to update your profile - it states that you have OS X 10.6.8

  • Java Applet key down and key up events

    I've written a program that extends applet but I can't get the event handling to work for keys.
    I've copied the below code into my applet but at the moment not even my system.out's are printed.
    How can I get this to work?
    // Handle key down and key up events
    public boolean keyDown(Event e, int key) {
    int flags = e.modifiers;
    System.out.println("Key " + e.id); //ns test
    if (e.id == Event.KEY_PRESS)      // a regular key
    showLine("Key Down: " + mods(flags) + key_name(e));
    else if (e.id == Event.KEY_ACTION) // a function key
         showLine("Function Key Down: " mods(flags)
              function_key_name(key));
    return true;
    public boolean keyUp(Event e, int key) {
    int flags = e.modifiers;
    if (e.id == Event.KEY_RELEASE)      // a regular key
    showLine("Key Release: " + mods(flags) + key_name(e));
    else if (e.id == Event.KEY_ACTION_RELEASE) // a function key
         showLine("Function Key action release: " mods(flags)
              function_key_name(key));
    return true;
    Thanks and sincere regards if you managed to read this far.

    I have found a solution!
    Your program, after it extends applet, you must also implement KeyListener, add the associated methods with KeyListener, and you must add the KeyListener in the init.
    code should look something like this:
    class program extends Applet implements KeyListener {
    public void init() {
    addKeyListener(this);
    public void keyTyped(KeyEvent key) {}
    public void keyPressed(KeyEvent key) {}
    public void keyReleased(KeyEvent key) {
    if (key.getKeyCode() == KeyEvent.VK_DOWN) {
    // Do something when user hits down-cursor.
    } else if (key.getKeyCode() == KeyEvent.VK_UP) {
    // Do something when user hits up-cursor.
    }

  • I can't order more than one picture at a time in iphoto.  I am holding the command key down and highlighting two but only the last one is showing up

    Hi,
    I need help placing an iphoto order online for prints.  I have a few pictures I want in a few sizes and it seems to only allow me to select one at a time.  I have held the command key down but it defaults to the last picture i selected.  I appreciate your help.

    What system and iPhoto versions are you using?  As a quick test try this:  launch iPhoto with the Option key held down and create a new, test library.  Import some photos and check to see if the same problem persists.  See if you can get all of the selected photos in the order window as it should be.
    If you can't then try this:  make a temporary, backup copy (if you don't already have a backup copy) of the library and try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home()/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
         User/Home()/Library/Caches/com.apple.iPhoto folder. 
    Click to view full size
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    OT

  • Need Post Query Workaround - HELP!

    This is urgent. Any help will go along way.
    I am using Forms Builder 6i version 6.0.8.13.0.
    I am designing a web based form that has 6 blocks.
    Blocks 1, 3, 5 and 6 are all related via relation objects in the form.
    Block 1 is a key block used as a lookup. Users enter data in this block for which they are looking for related information. It will only contain 1 record, all other blocks are multi-record capable.
    Block 2 populates programatically based on data entered in block 1. It is excluded from the navigation sequence.
    Then upon navigating to block 3 from block 1 the rest of the form/blocks populate with all the related data to the key values entered in block 1.
    Here's my problem.
    I need block 4 to populate for every row returned in block 3. Block 4 is not and can not be related to block 3 via a relation object. I now have it populating programaticlaly based on the click of a button that the user has to press after all data is retrieved or whenever they scroll to a new record in block 3 - not good for the user. What I want to do is have block 4 populate automatically as rows are retreived into block 3. That way as the user scrolls through the data in block 3 the data in block 4 will change to reflect.
    The difficulty is that a post query will not work because in the procedure that populates block 4 I need to use a next_record built-in. Block 4 is not a base table block. It is a mulit-record display block (6 records displayed at a time) with a scroll bar. So in order to programatically populate it I have to fill the first row then move to the next record and fill it and so on and so on.
    I need a work around.
    I need a way to let block 3 be queried for records and as each one comes into the block call the procedure to populate the other block - remember that the procedure uses next_record and post query does not like the restricted built-in. I tried to use when_new_record_instance to call the procedure. This allows the data to be queried and as the user scrolls through the data block 4 populates on each new record. It did not work.
    I realize this problem may be hard to clearly understand from my description so if anybody has the interest in solving a week long problem you can fire away your suggestions or email me at [email protected].
    Maybe I can send you a screen shot to clarify the layout a little better.
    Thank You.

    Brian,
    You can try this method, which will definately work.
    As you have mentioned you want the module to automatically query Block4 based on the information ob Block 3.
    You can write a form procedure which programitically populates BLOCK4. This procedure can be called from the KEY triggers which allows restricted procedures to be used.
    Try this :-
    1) Create Key-Up, Key-Down triggers on Block3.
    Example :-
    Key-Down Trigger On Block 3
    Declare
    lCurrRowPos Varchar2(10);
    Begin
    Next_Record; /* The cursor is on Block 3 */
    lCurrRowPos := :System.Cursor_Record;
    Go_Block ('BLOCK4');
    Clear_Block (No_vALIDATE);
    Execute_Query;
    OR prg_populate_block4l
    First_Record;
    Go_Block ('BLOCK3');
    Go_Record (lCurrRowPos);
    End;
    Key-Up Trigger On Block 3
    Declare
    lCurrRowPos Varchar2(10);
    Begin
    Previous_Record; /* The cursor is on Block 3 */
    lCurrRowPos := :System.Cursor_Record;
    Go_Block ('BLOCK4');
    Clear_Block (No_vALIDATE);
    Execute_Query;
    OR prg_populate_block4l
    First_Record;
    Go_Block ('BLOCK3');
    Go_Record (lCurrRowPos);
    End;
    This way whenever the cursor moves up and down the block3 the information is automatically displayed in BLOCK4.
    Hope this helps.
    Shailender Mehta

  • Tool bars missing advisor says 'hold key down - What KEY???

    My tool bars went missing, so I went to help. The advise said this is a 'new' feature [who needs this???] It also said I could restore the tool bars that I didn't ask to lose by holding 'the key' down and pressing V T etc at the same time. But, My key board probably has 50 odd keys on it. Which one of these is the magic key, so I can restore features I had set up the way I wanted in the first place. BTW, if this is an 'Improvement' please, don't try to fix what ain't broke - some of us like Mozilla because it is easy to use. I could always go with Explorer if I want gimmicks that accomplish nothing, but frustrating the user.

    Reference to the option key was found in the instructions to Reset toolbars and controls from support Mozilla.
    Thank you for the info. Pressing the alt key does produce the tool bar temporarily. I can use bookmarks if I act quickly before the toolbar disappears. With your info I will go back and try to get the toolbar back permanently.

  • Key-up and down triggers not firing

    I have a multi-record block and want to go to the previous and next records in it when the user presses the up and down arrow keys. I thought this was default behavior, but the keys didn't do anything so I tried putting key-up and key-down triggers on the block. They don't fire at all when I press the up and down arrow keys. The debug messages confirm that nothing happens at all when these keys are pressed. I tried putting form-level triggers on, and they don't fire from that block either, although they do fire from another single-record block.
    I'm thinking maybe it is just some block property that I have not set correctly, but I can't see anything obvious when looking through the properties. I have the Navigation Style set to Change Record, but have tried the other options and nothing changed. The records do cycle through using the <Tab> key.
    Any help is appreciated.
    Thanks,
    Ben
    null

    I'm not running web. I went ahead and tried setting num lock off anyway, but it didn't make any difference. Thanks for the suggestion.
    Ben
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by vijay kumar ([email protected]):
    Are u running ur application in web?
    Try the numeric arrow keys (set num lock off)
    <HR></BLOCKQUOTE>
    null

  • How to separate "Key down" event from panel and numerical control

    Hi, All
    I have a vi proecess key down events for panel and  a numerical control in this panel. the application will do: 
    1. when panel is focused, user can use "up" and "down" key to driver some hardware.
    2. when the numerical control has the focus, "up" and "down" key will change it's value as usual.
    somehow the second one did not work, because the panel "key down" event was trigger as well when I use "up' "down" key inise the numerical control. 
    then I used "Key down?" of numerical control to block the "up/down" key. But the first time when I run the Vi, the panel still got triggered one time. 
    any suggestions on this? test code attached  in this post too. 
    thanks
    CQ
    Solved!
    Go to Solution.
    Attachments:
    KeyDown_Up_valuechange.vi ‏16 KB

    This works for me in 2014.  In short, you just need to check to see if your numeric has the focus.  If it doesn't, then you process the key value.  No need for any other event here except for the stop button.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    KeyDown_Up_valuechange_BD.png ‏32 KB

  • Default key date, Document date and posting date needs to be changed automa

    Hi Experts,
    The user wants to create a variant for Foreign currency valuation, wherein the default key date, Doc date and Posting date needs to be changed every month automatically. Is it possible?
    Please let me know your thoughts.
    Warm regards,
    Murukan Arunachalam

    Hi
    Please follow this process.
    Only specify fields that should be changed
    Select these fields by entering an X in the checkboxes
    Enter a U in the UPDATEFLAG field
    Always specify key fields when changing the data, including in the checkboxes
    The configuration is an exception here. If this needs to be changed, you need to complete it again fully.
    Maintain quantities and dates in the schedule line data.
    1. Minimum entry:
    You must enter the order number in the SALESDOCUMENT structure.
    You must always enter key fields for changes.
    You must always specify the update indicator in the ORDER_HEADER_INX.
    2. Commit control:
    The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.

  • All I have on my I pod touch is a white screen with multicolored lines going across screen.  What do I need to do.  I can't use I tunes because it says I have to have passcode and can't get screen to come up.  I have already tried holding both keys down.

    All I have on my I pod touch is a white screen with multicolored lines going across screen.  What do I need to do.  I can't use I tunes because it says I have to have passcode and can't get screen to come up.  I have already tried holding both keys down.

    - See if placing the iPod in Recovery mode will allow a restore.. It bypasses the passcode (and erases the iPod)
    - Next try DFU mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings

  • Drill down on posting date and Document number

    Hello Gurus,
    In a Bex report, I am looking at account balance on a keydate for a G/L Account. When I drill down based on posting date I do not see any values for the keyfigure 'Account balance as on key-date'....But after I drill down on posting date --> document number I get to see values for thie key figure.
    What is this strange behaviour? Kindly explain.
    Regards,
    KP

    Hi KK,
    This may be due to the values/quantities having different UOM or currency for different documents/posting date.For example,  Usually when there are mixed values like this, the aggregated value is not displayed, instead a '*' is displayed in the report result. However there is a setting in BW where you can mention how to handle such mixed values.
    So I suggest you first check the currencies for the amount at the posting date/document level(when you drill down). If they are different then check the settings in the transaction SPRO --> SAP Business Information Warehouse --> Report-relevant settings --> General Reporting settings in the Business Explorer --> Presenting the numeric value in the Business Explorer.
    Here check the value maintained for 'Mixed Values'. If it is blank, then this is the reason that no value is displayed.
    Regards,
    Shilpa

  • Park and Post for Down Payment Request (F-47)

    SAP Gurus,
    We are having requirement for park and post in Down Payment Request (F-47). So that it is approved by an authoriser.
    Hence, Is it possible to workflow a down payment request to an authoriser for approval
    Please share with me options available for this Down payment request
    Regards,
    Raj

    Hi Raj,
    Please check with your workflow consultant. Anyway, I'd like to share with you how to know whether there is a standard workflow for application component in question. T-Code SWDD -> Workflow -. Other Workflow/Version. Then drilldown on the task field. Then choose structure search. You will find the standard workflow for each of the component. Unfortunately, there is no standard workflow for downpayment but if you have workflow consultant, they may be able to help.
    Regards
    Fauzi

  • Question when I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    Question
    when I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    See this. <br />
    https://support.mozilla.com/en-US/kb/Firefox+hangs#Hang_at_exit

  • When I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    Question
    When I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    See this. <br />
    https://support.mozilla.com/en-US/kb/Firefox+hangs#Hang_at_exit

Maybe you are looking for

  • Battery Issues with DROID RAZR

    This is the 2nd RAZR I've gotten from Verizon, and I'm having the same issues. I have to charge the battery several times a day, even when I'm not using it. The so-called "Smart Actions" do nothing for saving my battery - they just annoy me. The batt

  • Should I do a clean install?

    I recently bought a new Macbook Pro. I wanted to move all the files (pictures, music etc.) from my old G4 to my Macbook so I connected them using a firewire cable and used Migration Assistant to clone my machine. I think I made a mistake. I had a 100

  • ABAP OLE Word - Delete last page

    Dear all, I have a SAP program which prints some documents in Microsoft Word by using ABAP OLE Objects. I use a template to take the main context, and after that I send some variables in order to populate the word document. The problem is when I crea

  • Is it possible to install Mac OS X 10.5.x Leopard on a new MacBook ?

    I newly purchased a MacBook (White) where it comes with OS X 10.6.4 by default. Is it possible for me to install another OS X 10.5.x if I have an original MacBook (White) OS X Leopard Installation DVD ?

  • Help for alv display

    HI experts, I have a requiment to display in ALV out put, for the TEXT COLUMM i need to display in single cell  not in multiple cells. please find below sceens for ref. so please help me how to proceeed its very urjent.. As is To BE