Handling keypress event in ChoiceGroup

hi all,
I want to show the Cities in India in a ChoiceGroup. It is a lengthy list, so I like to make some key event in that ChoiceGroup. I am displaying the ChoiceGroup in a form. If the user pressed 'd' the ChoiceGroup must display the choices starts with 'd', and also for all the alphabetics.
please give me some idea to do this..
If any one done success with this already.... please help me..

You get the path in the event only when the document is saved under a different name/path then the original one on close.
A possible solution for your problem is to maintain the path (along with any other info) for each document you are interested in throughout the document's lifetime (i.e. open-save as-close). Unfortunately, I'm unaware about any other way to retrieve document's details for an already closed document (and may Adobe folks correct me if I'm wrong).

Similar Messages

  • How to handle keypressed event for form

    i have to handle keypressed event of a textfield control.
    I have tried by implementing itemstatechangelistner ........
    but as api specifies its behavior varies from device to device....it is guaranteed that the control is notified when losing its focus. But my requirement is to get notified for every keypressed time.....
    any idea.....pls help me

    Can't be done for TextField. Many devices (example:SE k700i) launch a separate editing screen to change the text in a TextField.
    db

  • How to no allow input japanese in JCombobox but still handle keypress event

    How to no allow input japanese in JCombobox but still handle keypress event?
    I used DocumentFilter to no allow input japanese but when i execute ENTER keypress event no action.
    Please help me. thanks very much

    I don't know about Raspberry but on desktop it would be primaryStage.close() - does that work?

  • List that responds to keypressed events?

    Hi
    I am designing a midlet that needs a list which scrolls down to names based on the input from the phones letter keys (ie if the user presses the 'GHI' key then the names starting with 'G' are shown. the same as in a phones contact-list) However the problem is that there is no keypressed event for j2me Lists or Forms.
    I realy don't want to have to reinvent the List from a Canvas.
    Could anyone tell me the best way to handle this?
    Thanks greatly
    Aharon

    Hmm... the small screen is a big pain, isn't it!
    Suppose you dynamically filter the list of potential entries based on what has been already entered in the TextField? Something like thisString[] allNames = new String[100];
    choiceGroup.deleteAll();
    String filter = textField.getString().trim().toUpperCase();
    for ( int i = 0; i < allNames.length; i++ )
        if ( allNames.toUpperCase().startsWith(filter))
    choiceGroup.append ( allNames[i], null );
    }db
    -- TextField, [i]not TextBox.  TextBox extends Screen, TextField extends Item. ;-)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Handling keyboard events in applets?! Possible?!

    Hello,
    I wrote a little game that uses keyboard handling events. It is an applet that can also standalone as an application. When i run the program as a standalone application, it handles keyboard inputs fine. ie...i can press the left and right arrow keys and something happens.
    But when i run my program as an applet in a web browser, the applet starts up correctly but does not handle any keyboard events. It only handles mouse events. For instance, if i press the up and down arrow keys, the browser window scrolls up and down!!! And the up and down arrow keys have a specific purpose in my applet.
    QUESTION: how do i get my applet to accept keyboard inputs such as UP,DOWN, LEFT, RIGHT?

    Hmm something went wrong w/ my post so i hope this doesnt show up twice.
    Hey thanks a lot for helping me out. The applet/application is large so here is the main() method and the keyboard event handling class code. My question is how come the keyboard events get properly handled when i run it as a standalone application, but keyboard events go to the browser when i run it as an applet? I would post my entire code but it's over 1000 lines and spread out over 8 files. hehehe.
    Here is main():
      public static void main(String[] args)
          MyProgram applet = new MyProgram();
          applet.isStandalone = true;
          JFrame frame = new JFrame();
          frame.setTitle("Physics: Kinematics");
          frame.getContentPane().add(applet, BorderLayout.CENTER);
          applet.init();                        // initialize the applet inside frame
          applet.addKeyListener(kbHandler);     // kbHandler is a keyboard handling object
          applet.start();
          frame.setSize(APPLETWIDTH,APPLETHEIGHT);
          Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
          frame.setLocation((d.width - frame.getSize().width) / 2, (d.height - frame.getSize().height) / 2);
          frame.setVisible(true);
          // private inner class to terminate the Application when frame closes
          frame.addWindowListener(
            new WindowAdapter()
                public void windowClosing(WindowEvent e)
                    System.exit(0);
          frame.show();
       }"kbHandler" is the keyboard event handling object. It gets initialized in the applet.init() method.
    kbHandler = new BMkeyboardHandler();And here is the keyboard event handling code:
    // ===== keyboard event handler ===========
       private class BMkeyboardHandler implements KeyListener
            public void keyPressed(KeyEvent e)
                pushedKey = e.getKeyCode();
                // General administrative key actions
                if(pushedKey == KE.VK_H)
                    actionArea.toggleHelpMenu();
                    actionArea.repaint();
                else if(pushedKey == KE.VK_C)
                    actionArea.toggleCtrlMenu();
                    actionArea.repaint();
         }So there it is. Again, the program handles events fine as a standalone application. But running it as an applet in a browser (and even the appletviewer) doesnt let me handle keystrokes.

  • Help -- keypressed events

    Hi, I have a texfield in which I want the users to enter time in the following format: hh:mm:ss
    My problem is, I want the colons to appear automatically when the user is entering hh and mm fields. I tried using the keypressed event but I am not able to make it work very neatly, i mean there is some problem or the other when I try various inputs, try backspace, delete etc.
    Anybody got any inputs?

    Actually I am using jdk1.3 -- therefore I can't use JFormatted TExtfield.
    I went thru the Doc listener api -- u r right, i don't need that.
    All i need is a simple code check in my keypressed event handler -- but I am unable to write that.

  • Event handler : handleEvent(Event event)

    Good day,
    The deprecated event handler "handleEvent(Event event)" has been replaced by "processEvent(AWTEvent event)" as per the docs.
    With some research, I came up with this little conversion chart :
    item handleEvent processEvent
    ====== ============ ============
    x event.x event.getX()
    y event.y event.getY()
    id event.id event.getID()
    target event.target ???
    ====== ============ =============
    I'm just trying to compile a list of conversion for deprecated APIs with some extra information to "ease" the transition process.
    Is the above information right or am I still missing the boat ?
    Please apply necessary corrections wherever applicable.
    Best regards.

    Good day,
    The deprecated event handler "handleEvent(Event event)" has been replaced by "processEvent(AWTEvent event)" as per the docs.
    With some research, I came up with this little conversion chart :
    item handleEvent processEvent
    ====== ============ ============
    x event.x event.getX()
    y event.y event.getY()
    id event.id event.getID()
    target event.target ???
    ====== ============ =============
    I'm just trying to compile a list of conversion for deprecated APIs with some extra information to "ease" the transition process.
    Is the above information right or am I still missing the boat ?
    Please apply necessary corrections wherever applicable.
    Best regards.

  • Is it possible to handle multiple events using Jscript for a button in Apex

    Hi,
    I've application wherein in one of the pages for a button, I need to trigger 2 events as: 1. redirect to a new page upon 'click' of the button
    2. display a set of values on 'mouse over' that button.
    I'm able to handle both separately, but not in one button. I would like to know if there is any limitation in Apex that we cant handle multiple events? Currently I've put a text item near the button, and called the Jscript for mouse over event in that as a temporary workaround. Can someone let me know if this is feasible? If not any other alternative to handle this?
    Thanks in advance,
    gsachidh

    Hi Gsachidh,
    well interesting problem you're facinng. Indeed, it can't be specified using the 'Button Attributes' So we have to come up with an workaround.
    A quick en dirty solution would be to specify it with the 'Optional URL Redirect options'. In a normal button, with processing on same page, this would be 'no target'. but in case of additional things to be done this can be used, using an target URL. I used this many times, in example with popUp windows for refreshing the caller object when changes are made. In your case we have to add next to the href an onmouseover event. this can be done with;
    Target set to => URL
    URL - target => javascript:doSubmit('<button_name>');" onMouseOver="javascript:showTooltip('tooltip');"
    Here the " is the key, letting ApEx know the target (href) is doSubmit('<button_name>'), just like when no target would be specified and adding a new javascript event; onMouseOver.
    Although this is a dirty solution in my opinion, it is the best i could come up with. I have another idea in how to do this, that is by adding this event dynamically with javascript with an addEvent. But i don't have an example at the moment for this scenario.
    Simon
    Message was edited by:
    S1M0N

  • Reg : Cross browser issue while handling LOV event on KeyFlexFeild

    Hi OA Gurus,
    We are encountering issues on R12.0.6, JDev 120Rup6.
    We have the following test case and code changes.
    Requirement:
    We have OA page where we have one KeyFlexFeild item and a normal LOV. Page items are part of one AM and LOV is in another AM.
    The requirement was to make LOV dependent on keyFlexfeild. Test case is mentioned as per following flow.
    1.     User changes cost center segment of Accounting Flex(Key flex) using Cost center LOV.
    2.     Another LOV in the same page should be dependent on new value of cost center as modified in step 1.
    Solution Implemented:
    Describing in the 3 steps
    1) Here the KeyFlexFeild is expense account. Whenever User changes any segment, we handle
    ‘lovValidate’ and ‘lovUpdate’ events on KeyFlexFeild in processFormRequest of controller.
    2) Retrieve the value of cost center segment using getSegmentsQualifiedBy(), Update corresponding VO attribute of the LOV query parameter.
    3) Forward the request to current page so that LOV will have modified value with updated query.
    4) Forwarding to current page is must because LOV is built with another AM and will loaded only when page is built.
    Issue:
    This works fine on internet explorer. When trying to run the same in Mozilla we have following issue
    1) User modifies one of the segments of expense account and make a tab – out
    2) Now the page refresh happens
    3) Now in the same page no other LOV or no other button works. He can’t click on any button for submit or cancel.
    LOVs will not open even after clicking on it.
    Code changes:
    //Step1 – Handle LOV events
    String source = pageContext.getParameter(SOURCE_PARAM);
    String eventType = pageContext.getParameter(EVENT_PARAM);
    if(source !=null && eventType != null) {
    if(source.startsWith("Acct") && eventType.equals("lovUpdate") || eventType.equals("lovValidate") ) {
    KeyFlexfield flex = (KeyFlexfield)lkff.getAttributeValue(OAWebBeanConstants.FLEXFIELD_REFERENCE);
    // Step -2 Updating the corresponding VO attribute for LOV to get the modified the value
    Segment[ ] segmentL = flex.getSegmentsQualifiedBy(FA_COST_CTR");
    CostCenterValue = segmentL[0].getValue().getValue();
    if(CostCenterValue != null ){
    sampleViewObject.getCurrentRow().setAttribute("ToCostCenter",CostCenterValue);
    OAFormValueBean formValueBean = (OAFormValueBean)webBean.findIndexedChildRecursive("ToCostCenter");
    if(formValueBean != null)
    formValueBean.setValue(pageContext, CostCenterValue);
    OAMessageLovInputBean formValueBean1 = (OAMessageLovInputBean)webBean.findIndexedChildRecursive("ReceivingApprover");
    if(formValueBean1 != null)
    formValueBean1.setValue(pageContext, null);
    else
    sampleViewObject.getCurrentRow().setAttribute("ToCostCenter",null);
    //Step 3 – Forward the request Current Page again
    pageContext.setForwardURLToCurrentPage(null, true, ADD_BREAD_CRUMB_YES, (byte)0);
    We have following questions.
    a)     Solution implemented by us is correct ? or we have to implement it in another way ?
    b)     Is OA version mentioned above supported on Mozilla browser version 3.x ? This issue is not occurring on Mozilla 1.x while running from JDev.
    Please let us know if any additional details required.
    Thanks for help in advance.
    Edited by: user774130 on Dec 15, 2009 2:27 AM

    Hi,
    It seems that you have not noticed that this forum is not for posting product-related questions/problems....
    So , this might be the correct forum....
    Java Server Pages (JSP)
    Sim

  • How to handle softkey events

    hi all,
    The softkeys varies form device to device.so kidly say some genric way to handle softkey events.
    Thanks in advance
    Badri

    The only "generic" way to handle softkeys is to use Commands.
    shmoove

  • Keypress Events

    Hi, everybody, it is my first question to you all.
    Does anybody have any function that would capture keypress events, or
    any information that would be helpful in capturing them? For example,
    when a user presses the <down arrow> or F1 key. I am currently using
    the AfterValueChange event to capture keys that display.
    Thanks,
    Scott Watters
    Systems Analyst
    Carlson Wagonlit Travel - Minneapolis
    [email protected]

    Hi, Scott.
    Here's the information I found on trapping keystrokes - mostly R3 =
    specific, but that's OK for you. I pulled the following posts off my =
    mailing list archive:
    From: <[email protected]>
    Date: Fri, 4 Apr 1997 15:57:32 +0800
    Subject: Trapping Certain Keystrokes
    Hi All,
    I have read the manuals, and the online-documentation, but can not seem =
    to find anything about trapping keystrokes other than the Function keys.
    Our application specifically requires us to trap certain keystrokes, =
    such as the navigation keys etc.=20
    Does anybody know which event is raised when a key is pressed?
    Any insight will be appreciated.
    Regards Martin
    From: DEVEAUX Manuel <[email protected]>
    Date: Fri, 4 Apr 1997 11:43:11 +0200
    Subject: RE: Trapping Certain Keystrokes
    Hi all,
    Actually, I don't think you can trap keystrokes on a UserWindow but on =
    some WidGets (like DataFields), you can set to TRUE the 'Validate on =
    KeyStroke' option in the properties dialog .
    Thus, when the WidGet has the focus and the user send a keystroke, you =
    can trap this event with the 'AfterValueChange' event. If someone knows
    =
    how to trap keystrokes on a UserWindow, I am also interested !
    Thanks.
    * Manuel -
    Manuel Deveaux
    Fort=E9 Developer
    Mutuelle Pr=E9viade
    Nancy, FRANCE
    E-Mail : [email protected]
    From: Jean-Paul De Baets <[email protected]>
    Date: Fri, 04 Apr 1997 14:11:58 +0200
    Subject: RE: Trapping Certain Keystrokes -Reply
    This is an enhancement request we also posted several months ago. I =
    think it is announced for Fort=E9 release 3. But I don't know if we =
    will be able to trap ANY keystroke.
    Jean-Paul=20
    J.P. De Baets
    CAP GEMINI Belgium
    [email protected]
    From: Kerry Bellerose <[email protected]>
    Date: Fri, 04 Apr 1997 13:28:14 +0100
    Subject: Re: Trapping Certain Keystrokes
    Hi Manuel and Martin,
    Unfortunately, for Forte V2.0, Manuel is correct. But Forte has added a
    =
    feature that allows you to trap any keystroke in Forte R3, which is =
    currently in beta.
    If you are a beta site, look in the Forte Release 3 Beta Features manual
    =
    page 169, the window class SetAsFunctionKey method.
    If you are not a beta site and want this functionality in R2,=20
    you would need to do some tricks with menus or data fields, as Manuel =
    indicated.
    Cheers,
    Kerry
    From: Lee Wei <[email protected]>
    Date: Mon, 7 Apr 97 09:06:23 PDT
    Subject: RE: Trapping Certain Keystrokes -Reply
    I think all of us want to know if we can indeed trap ANY keys.
    The answer is ALMOST, including escape, spacebar, enter, backspace, tab,
    =
    navigational (up,down,left,right,end,home), digits, alpha, numeric =
    keypads, insert, delete.
    But not keys such as left shift, right shift, left Alt, right Alt, left =
    Ctrl, and right Ctrl (Helpful for games...).
    Don't forget that we are talking about release 3.
    Lee Wei
    Hope this helps,
    Dariusz Rakowicz
    [email protected]
    From: owner-forte-users
    Sent: Friday, July 25, 1997 10:46 AM
    To: 'Forte Users Group'
    Subject: Keypress Events
    Hi, everybody, it is my first question to you all.
    Does anybody have any function that would capture keypress events, or
    any information that would be helpful in capturing them? For example,
    when a user presses the <down arrow> or F1 key. I am currently using
    the AfterValueChange event to capture keys that display.
    Thanks,
    Scott Watters
    Systems Analyst
    Carlson Wagonlit Travel - Minneapolis
    [email protected]

  • Javascript error in event handler! Event Type = element [edge.2.0.0.min.js:162]

    I'm doing a little edge project (now in beta version) for my girlfriend (she hates the code), with examples of the animate() method and other functions like setInteval(), but when I run I get the following error in Chrome console:
    Javascript error in event handler! Event Type = element [edge.2.0.0.min.js:162]
    But this library is global for all projects, how is possible that trigger an error?
    Example here:
    https://app.box.com/s/m7nof4al6597gfn47jlu
    Thanks.

    you dont need to import java ease !!
    it's already included in edge animate, remove that yepnope completely your problem will gone
    Zaxist

  • Handling Key Event

    How to handle key events in the Console?
    Plz give sample code for it.
    Thanks in advance.

    Don't have any experience with it personally, but I think curses does this type of thing http://sourceforge.net/projects/javacurses/

  • Handling Button Event

    Hi all,
    i am using a 'When-Validate-item' trigger in this i am doing a validation,
    when user try to enter amount greater than the given amount(This is needed validation)
    and also i am regenerating new lines(Creating new records when button pressed)
    when i am regenerating i should not validate.
    How to handle button event
    Thnx
    Raj

    Hi...
    The WHEN-VALIDATE-ITEM Trigger fires once you updated a field. Be sure you raise
    form_trigger_failure when amount is invalid. So, the cursor stays in field amount. You cant
    leave this field until the amount is not valid.

  • How to handle Valuechange events, when page bean is in request scope

    Hello balusc and forum mates,
    I want to know is there any good way to handle ValueChangeEvents events, when the page's bean in request scope.
    My problem is, I have a page having more than 1 value change event so How can I maintain page values at backing bean. My bean is request scope, I can't change to session scope.
    Please I really need it.

    Hi Frank...
    In my code i used almost same logic as Andrejus Baranovskis has explained in his Editable Table example...
    You can refer that example to see what problem I'm facing...
    http://andrejusb.blogspot.com/2007/04/create-edit-and-delete-operations-in.html
    The Bean Scope in this Example is Session scope...Save button is working fine...
    But as i Change the bean scope to Request scope then Save button is not working for Edit but it is working for Delete Action very well..
    I want that save button should work also for Edit action in Request Scope..
    Please Make me understand that why it is happened like that..
    and help me to find the solution..
    and Also if you have a better document to Explain the life cycle of Application in Different Bean Scope...So please provide me that Doc to me...
    It would be a great help for me to understand the concept of session...
    Thanks Frank
    Fizzz...

Maybe you are looking for

  • What will  the replacement be for the ipod nano 1st gen

    Would like to know if anybody knows what will the replacement be? Also has anybody received it? I'm still waiting for the box will be 3rd week waiting.....thanks for any information

  • Field Seletion for movement type  / acct differes for BA

    dear all while posting in MM the user is facing the problem and error message Field Seletion for movement type  / acct differes for BA please let me know if i can do some thing with Field status variant in FI I am not able to figure this out

  • EXS Factory Samples And Sampler Instruments Duplicates and Missing Legacy

    since updating and comparing to my macbook which i havent updated, it seems there are missing exs factory samples. for example on new logic 9 there are 2 folders exs factory samples which have 01 through 09 folders. the sampler instruments folder has

  • Start 2 text layers at different times

    Hi, I have 2 text layers each with the underscore preset animation. They are both located at different points on screen. (1 top left & other bottom right) I cant work out how to make it that they don't fire off at the same time. top left needs to app

  • InDesign CS3 Corner Effect Script

    I have tried to run the InDesign C33 Corner Effect Script so that I may change different points on a frame. However after the script runs I still cannot edit points. There is no dialogue box to manipulate the points. Mac Platform.