Text Input header render lost focus on grid data refresh

I have create a text input  type header render for datagrid as a filter.  On change event I am dispatching my custom event which refresh the datagrid from
server side filter but in this the text input in which I am typing lost focus and gain it again on mouce click
Alreadt tried setFocus and focusManager
Thanks
Abha

I'd probably wait for updateComplete and then call setFocus again.  And/or
use callLater to defer setting focus.

Similar Messages

  • ALV Grid Handle Edit Event (Lost Focus)

    Hi all,
    I have some problems with the ALV Grid.
    Target:
    I have an ALV Grid with editable Column. If the user insert, update or delete the content of the column and leave the column (column lost focus) i'd like to do somthing - this means I need a event for this action. Can anybody help me to solve this problem?
    Thanks Stefan

    Use Event data_changed and data_changed_finished of the cl_gui_alv_grid.Then all you have to do is registering your event to the ALV and fill the methods with what you want to do.In ALV Grid, There is no event to capture the lost focus of a column if you don't modify it.
    CLASS lcl_event_receiver DEFINITION.
        METHODS:
    *$ Check the change
           handle_data_changed FOR EVENT data_changed
                                   OF cl_gui_alv_grid
                               IMPORTING er_data_changed
                                         e_ucomm
                                         e_onf4
                                         e_onf4_before
                                         e_onf4_after,
           handle_data_changed_finished
                               FOR EVENT data_changed_finished
                                   OF cl_gui_alv_grid
                                IMPORTING e_modified
                                         et_good_cells
                                         sender,
    ENDCLASS.                    "LCL_EVENT_RECEIVER DEFINITION

  • [SOLVED] Google Chrome doesn't render page after lost focus in Awesome

    Hello !
    I have installed fresh Arch Linux with linux-ck and awesome. After that I have installed google-chrome-stable and started it. Everything works well, but if I opened other application (chrome lost focus) and then got back to the chrome, it freezes. Mouce cursor worked as expected (cursor changed after hovering link, input field, etc) but view was not updated.
    Everything works well again if I change desktop to the second and go back to the first again (mod+2, mod+1). Chrome works, responses etc well.
    bvg
    Did you met something like that ? How can I fix it ?
    Edit:
    I bet this issue has something in common with hw acceleration. If I run some game on steam, lost focus, got back to the game - it show last rendered screen before focus has been lost (sound is ok, game is responsible but not updates screen).
    I use nvidia. Do I need some extra configuration to handle it ?
    Last edited by hsz (2013-12-18 17:16:17)

    The problem was `xcompmgr` which caused "freezing" view. I switched it to `unagi` and all of the problems have gone.

  • In Flex,how to make lost focus of textinput on enter click?

    Hi
    In Flex,how to make lost focus of textinput on enter click of keyboard ?
    Thanks,
    Sunil

    Hi vibhuti,
         I  got your point but it will not helpful to me.
        But I found solution ,When user clicks enter key make stage.focus = null  so it will lost focus on text input and make focus in my current Alert Box.
    Thanks,
    Sunil

  • Conditional for a text input box NOT being null? Sorry for asking so many questions!

    Okay, here's the situation. I'm creating a simulation of a form on which there are several text input boxes, 7 of which are mandatory fields. I know I can use a conditional to check whether the box has nothing in it by creating a null variable with no value and doing "if [box variable] is equal to [null variable] then", but the problem is that the validation captions I need to show need to be shown in order, that is to say that the caption for entering a value for the first box will always be shown if that box is null regardless of the contents of other boxes, the second will be shown if that one is null and the first one isn't etc.
    When I was investigating this I noticed a post by Lilybiri saying that comparison with a null variable doesn't work for "not equal to" so I'm having a hard time figuring out how to show the captions based on priority. For example, to show the second caption I need to not only check whether the second box variable is null, but also whether the first one isn't.
    It gets pretty crazy further along the line where I get to the 7th mandatory field and need to check whether the first, second, third, fourth, fifth and sixth boxes are NOT null and whether the 7th one IS. Help!
    I did come up with one potential solution to this prior to posting: if I set a different advanced action for each input box losing focus which checks whether the variable is null and if so sets a "flag" variable to 0, and in the else set it to 1, I imagine I can then replace the "not equal to" with a check to that flag variable being equal to 1 (which means there is text in the box). I think this will work but I thought I'd check to see if there's an easier way first.

    No it DOESN'T require everything to be on one slide.  It just has to LOOK as if that's what it is.
    I would suggest that it doesn't really matter how many Captivate slides are involved in the final solution, as long as it works the same way (or as close as possible) to the original software that you are simulating.  Your users don't frankly know or care how you achieved the simulation.  I guarantee they won't be thinking of you or Captivate.
    In my experience, you can make creating elearning a lot more difficult than it needs to be in Captivate by trying to rebuild the app, rather than just simulating how it works. For example, thinking that if everything happened on one web page or screen in the app then it must also happen on a single slide in Captivate.  The fact of the matter is IT DOESN'T need to work this way.  And in some cases it might even be impossible to reproduce in Captivate this way.
    So the quickest path to a solution is often to use multiple slides, which has the advantage of allowing you to "fix" certain things on screen (e.g. the contents of fields already visited) by using READ ONLY variable output in transparent captions, focusing only on one element of the interface that the user can interact with on that slide.  It doesn't necessarily prevent you from moving back and forth between elements, just as you can in the original app.  But it is far easier to create and maintain.
    I'm not saying you wouldn't be able to pull this off on one slide in Captivate, but it is going to require a LOT of variables and Advanced Actions to build and debug.  So the term Rapid Elearning becomes something of a misnomer if it takes you a long time to complete one slide.

  • Text Input field return char problem

    I have a multiline text input field used as a message area on a form (sending mail through a PHP doc).  When I hit return to start new paragraph in that field and the form content is send and received at other end everything after that return is lost?  Any ideas would be fantastic...
    Marc

    copy the code between the dotted lines and attach it to the same timeline that contains your submit button:
    var sendLV:LoadVars=new LoadVars();
    var receiveLV:LoadVars=new LoadVars();
    receiveLV.onData=function(src){
    trace("received");
    trace(src);  // or use a textfield to see the return if you're not able to see trace output when testing
    // and you should attach code to objects.  assign an instance name to your submit button (say submitBtn) and use:
    submitBtn.onRelease=function(){
    sendLV.name = form.nameTF.text;  // assign properties to sendLV that your php is expecting.  assign values to those properties using the form data
    sendLV.email=...
    sendLV.message=...
    sendLV.sendAndLoad("email.php",receiveLV,"POST");
    trace("sent\n"+sendLV.message)
    and change your email.php file to:
    <?php
    echo $_POST['message'];
    ?>

  • Text input ghost image

    I created several text input fields in a presentation.
    A ghost image of the shortcut character displays when a user
    highlights the text field.
    Any insight??

    I'm just taking a shot at this because there's not much to go
    on.
    I am aware of a similar complaint regarding invisible buttons
    with a shortcut key assigned to them. When an invisible button is
    triggered via a keyboard shortcut, that invisible button ends up
    getting a yellow rectangle on it -- something to do with
    Captivate's "focus manager," or some such.
    Could it be that you have a single slide with multiple text
    input fields on that slide?
    If so, I can imagine a variety of problems (including the
    yellow box or "ghost characters") being exhibited.
    The most effective way to build interactions in Captivate is
    to use only one interaction per slide. If you have one screenshot
    on which you need to simulate the entry of text in multiple fields,
    you'll be better off using a separate slide for each field:
    1) On slide "a", have the student enter the text in field 1.
    2) On slide "b", display the correct answer in field 1, and
    have them enter text in field 2.
    3) On slide "c", display the correct answers in fields 1 and
    2, and have them enter text in field 3.
    Repeat this "build up" of entries until they've made all the
    necessary entries.
    I suspect if you build your interaction in this manner, the
    "ghost" issue you're seeing won't show up at all. If this doesn't
    work for you, maybe you can describe your situation better or
    provide an online sample we can look at.

  • Text Input and dataProvider

    I have Text input box for the user to enter the heading for a new record in NewRecord form.
    Like:
    <mx:TextInput text="Enter Subject Here"/>
    and then it is saved in the Database...
    I have another form called ChangeRecord so that the user can change the heading or Subject..
    How do i populate the name already in DB in the TextInput Box above... There is no dataProvider pram in TextInput...
    I have the following:
    CODE
    [Bindable] public var NR:ArrayCollection;
    private function resultNR(event:ResultEvent):void{
               NR:ArrayCollection(event.result);
    <mx:TextInput text="Enter Subject Here"/>
    Any help is appreciated.

    Hi,
    Post this over at the flex general discussions forum - they'll have better answers for this.
    -Anirudh

  • Text Input Help!

    Hello, I have a couple questions when it comes to using text input:
    After typing into a text input component, how can I get the cursor to disappear?? If I click outside it, that doesn't work. If I press enter, that doesn't work. If I click a custom component, that doesn't work. Is clicking a wireframe component, like a button or a data list, the only way?
    Is there a way to make text input connected? For example, say I have a text input component and a search button. If I type "dog" into the text input and click search, a box appears that displays the results. Could I make it say "Your search for <blank> returned 5 results" where <blank> is whatever I just typed (in this case, "dog")?
    Thanks!

    Hi Sponce,
    1) You are correct. Once a component has focus (i.e. the cursor), the only way for it to lose focus is for another component to gain focus. You can work around this with some programming, but you can't do it in FC. This actually seems wrong to me, so I'm going to file an enhancement request about it.
    2) There is no way to do this in the current version of FC. (But of course, you can code it if you're willing to go to Flash Builder). We certainly hope to add it in the future. How would you imagine that working?
    -Adam

  • Text Input Border

    I've been trying to make a text input section on my website for people to submit comments, I can get the text area to work fine and everything but instead
    of it going to another line when it reaches the edge of the box it just continues horizontally instead of vertically and if i try pressing return the cursor will not go to the next line. I imagine the answer to fix this is incredibly simple but i cant seem to figure it out, any help would much appreciated!

    Without seeing the design it hard to say what the 'right' solution is for this. Have you looked at the different text format types in the Properties panel. See: http://help.adobe.com/en_US/flashcatalyst/cs/using/WS4bebcd66a74275c3-326fcb52123816c0204- 7ff7.html#WS4e406940d76143bd650de8681273f063bd3-8000
    But there is a chance that you might need to add some code to the project to listen for various events (focus, etc).
    Good luck,
    Chris

  • How to make Text Input in Sales Order Trigger Change Event

    Hi Gurus,
    I have a project going on where when a sales order is created, changed or cancelled, an IDoc is FTP to our freight company.
    Now the issues is when we change a sales order text input (for example, shipping note). Nothing happens. The system doesn't take this as a change so no change event is triggered.
    Text fields I'm talking about is the one from Go to --> Header. and for Item Go to --> Item.
    When I input a note in this field, it comes out in the IDoc, but when I go back to the Sales Order and change the note, it doesn't trigger a change and therefore no IDoc is generated.
    how can I go about this?
    thanks.

    Hi,
    Could you initiate the idoc creation from a workflow?
    Have you checked the event trace?
    Is the BUS2032 object type CHANGED raised? I checked our system and event is raised on text change.
    Transaction SWELS to activate and deactivate trace.
    Transaction SWEL to monitor event raised.
    Don't forget to turn trace off
    Hope this helps
    TB

  • ENTER keystroke on text input entry not always submitting

    I have run into a problem where once a user has completed the
    text input entry and has clicked the ENTER button to "submit" this
    entry, the ENTER keystroke event is not always "submitting" the
    input entry. Sometimes it requires hitting the ENTER key two or
    three times before the slide moves on.
    We are loading the captivate files into a custom flash
    interface (but there are no key events in this interface that could
    conflict with the captivate's ENTER keystroke) and I have the
    maximum number of attempts set to 1.
    I did some debugging from the custom flash interface, and in
    the captivate .swf, the proper input field has focus and the ENTER
    keystroke is being captured
    Has anyone else experienced this problem? Does anyone know a
    possible solution?

    I’ll try to explain the problem more clearly.
    I want the name that is loaded from the textfile into the combobox to be selected from the list.
    Once an item is selected everything works just fine. But I don't want the user to select the item, when the name is loaded into the combobox. The user will expect that the item will be selected automatically. Is that possible?
    The function I want is the opposite of combobox.selectedItem. Instead of having a selected item and getting the name, I have a name and I want to select the item.
    The name is a correct name, because the name is saved from the combobox.

  • Gainer Focus and Lost Focus

    How implements the methods to gainer focus and lost focus?
    Thanks

    Use a node.focusedProperty() change listener to know when a field gains or loses focus.
    Call node.requestFocus() to ask for focus (for some reason I have to wrap this in Platform.runLater to get it to actually do anything).
    Call node.setFocusTraversable(false) if you don't want the user to be able to tab to the node, but still be able to click on the node to give it focus.
    Call node.setDisable(true) if you don't want the node to be focusable at all.
    I'm not sure how the focus traversable order is calculated, perhaps the order that items are added to the scene?
    Not sure how you would create a custom focus traverse if you needed one.
      @Override public void start(Stage primaryStage) {
        final TextField tf1 = new TextField("First but not initially focused");
        final TextField tf2 = new TextField("Second initially focused");
        Platform.runLater(new Runnable() { public void run() { tf2.requestFocus(); } });
        final TextField tf3 = new TextField("Can focus by clicking on, but not by tabbing to.");
        tf3.setFocusTraversable(false);
        final TextField tf4 = new TextField("Cannot focus at all.");
        tf4.setDisable(true);
        tf1.focusedProperty().addListener(new ChangeListener<Boolean>() {
            public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {
              if (newValue) {
                System.out.println("First text field gained focus");
              } else {
                System.out.println("First text field lost focus");
        VBox root = new VBox(); root.setSpacing(5);
        root.getChildren().addAll(tf1, tf2, tf3, tf4);
        primaryStage.setScene(new Scene(root, 300, 100));
        primaryStage.show();
      }

  • Rendering of Tax Registration Num text input is not work

    Hi All,
    We are use R12.0.6 instance. On Customer Screen Tax Registration Num and Credit text input are not appear. We checked the personalizations of Tax Registration Num; render is "Yes" but we could not entry the data.
    We bounced apache and cleared the cahce.
    Thanks,
    Okan

    In CQ you just need to include form component and inside the form add text component. When you double click text component it will provide you with the option to add styling and specify width. Which takes precendence.  Not sure why you building the entire html page.

  • Change particular cell color when finised editing and when lost focus

    Hi, i want to create a table which its particular cell can change its color automatically to red if the value in cell in column in two is smaller than column cell value in column 1 when user finish typed a value or if the cell has lost focus. I've wrote a code for the renderer but how should I use action, KeyListener or MouseLister or both
    * File ColouredCellRenderer.java
    import java.awt.Color;
    import java.awt.Component;
    import javax.swing.JTable;
    import javax.swing.table.TableCellRenderer;
    import javax.swing.table.DefaultTableCellRenderer;
    public class ColouredCellRenderer extends DefaultTableCellRenderer implements TableCellRenderer{
        private Object col1Value, col2Value;
        public ColouredCellRenderer(Object args1, Object args2){
            this.col1Value = args1;
            this.col2Value = args2;
        public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
              return super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
         protected void setValue(Object v){
              super.setValue(v);
            if((col1Value != null) & (col2Value != null)){
                int x = Integer.parseInt(col1Value.toString());
                int y = Integer.parseInt(col2Value.toString());
                if(x > y){
                    this.setBackground(Color.RED);
                else{
                    this.setBackground(Color.GREEN);
    }

    All you should need is the cell renderer to achieve that effect. Whenever the table needs to render a cell it will call the method
    getTableCellRendererComponent(...);This method in turn returns a component showing what the cell should look like. The DefaultTableCellRenderer extends JLabel, so you are meant to customize the label (based on parameters that were passed) and return this* at the end of the method.
    public Component getTableCellRendererComponent(...) {
             return this;
    }This one label is used to render all the cells of all the columns that the cell renderer is assigned to. Since you want some cells too be red, you should call setBackground(Color.red)+ when the conditions are appropriate or null otherwise.

Maybe you are looking for