Cursor placement in a GUIBB / Focus Request

Hello
Is it possible to place the cursor in a particular field within a GUIBB? We have the requirement what our application has to support this.
In WDA one can set the focus via the interface IF_WD_VIEW and its method request_focus_on_view_elem. Does FPM support this as well?
Regards,
  Mathias

Hello Ulrich
That's a pity But can you please confirm that I'm not able in a Feeder Class method to access the IF_WF_VIEW interface somehow?
Regards,
  Mathias

Similar Messages

  • Focus-requests when switching tabs in JTabbedPane

    I have a tabbed pane with a JTextArea in each tab. I would like to switch focus to the corresponding area each time I select a tab or create a new one. A ChangeListener can detect tab selections and call requestFocusInWindow() on the newly chosen tab's text area.
    For some reason, the focus only switches sporadically. Sometimes the caret appears to stay, sometimes it only blinks once, and sometimes it never appears. My friend's workaround is to call requestFocusInWindow() again after the setSelectedIndex() calls, along with a Thread.sleep() delay between them. Oddly, in my test application the delay and extra focus-request call are only necessary when creating tabs automatically, rather than through a button or shortcut key.
    Does the problem lie in separate thread access on the same objects? I tried using "synchronized" to no avail, but EventQueue.invokeLater() on the focus request worked. Unfortunately, neither the delay nor invokeLater worked in all situations in my real-world application. Might this be a Swing bug, or have I missed something?
    Feel free to tinker with my test application:
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    /**Creates a tabbed pane with scrollable text areas in each tab.
    * Each time a tab is created or selected, the focus should switch to the
    * text area so that the cursor appears and the user can immediately type
    * in the area.
    public class FocusTest2 extends JFrame {
         private static JTabbedPane tabbedPane = null;
         private static JTextArea[] textAreas = new JTextArea[100];
         private static int textAreasIndex = 0;
         private static JButton newTabButton = null;
         /**Creates a FocusTest2 object and automatically creates several
          * tabs to demonstrate the focus switching.  A delay between creating
          * the new tab and switching focus to it is apparently necessary to
          * successfully switch the focus.  This delay does not seem to be
          * necessary when the user fires an action to create new tabs, though.
          * @param args
         public static void main(String[] args) {
              FocusTest2 focusTest = new FocusTest2();
              focusTest.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              focusTest.show();
              //Opens several tabs.
              for (int i = 0; i < 4; i++) {
                   try {
                        //adding the tab should automatically invoke setFocus()
                        //through the tabbed pane's ChangeListener, but for some
                        //reason the focus often doesn't switch or at least doesn't
                        //remain in the text area.  The workaround is to pause
                        //for a moment, then call setFocus() directly
                        addTabbedPaneTab();
                        //without this delay, the focus only switches sporadically to
                        //the text area
                        Thread.sleep(100);
                        setFocus();
                        //extra delay simply for the user to view the tab additions
                        Thread.sleep(1900);
                   } catch (InterruptedException e) {
         /**Adds a new tab, titling it according to the index of its text area.
          * Using "synchronized" here doesn't seem to solve the focus problem.
         public static void addTabbedPaneTab() {
              if (textAreasIndex < textAreas.length) { //ensure that array has room
                   textAreas[textAreasIndex] = new JTextArea();
                   //title text area with index number
                   tabbedPane.addTab(
                        textAreasIndex + "",
                        new JScrollPane(textAreas[textAreasIndex]));
                   tabbedPane.setSelectedIndex(textAreasIndex++);
         /**Constructs the tabbed pane interface.
         public FocusTest2() {
              setSize(300, 300);
              tabbedPane = new JTabbedPane();
              //Action to create new tabs
              Action newTabAction = new AbstractAction("New") {
                   public void actionPerformed(ActionEvent evt) {
                        addTabbedPaneTab();
              //in my real-world application, adding new tabs via a button successfully
              //shifted the focus, but doing so via the shortcut key did not;
              //both techniques work here, though
              newTabAction.putValue(
                   Action.ACCELERATOR_KEY,
                   KeyStroke.getKeyStroke("alt T"));
              newTabAction.putValue(Action.SHORT_DESCRIPTION, "New");
              newTabAction.putValue(Action.MNEMONIC_KEY, new Integer('T'));
              newTabButton = new JButton(newTabAction);
              Container container = getContentPane();
              container.add(tabbedPane, BorderLayout.CENTER);
              container.add(newTabButton, BorderLayout.SOUTH);
              //switch focus to the newly selected tab, including newly created ones
              tabbedPane.addChangeListener(new ChangeListener() {
                   public void stateChanged(ChangeEvent evt) {
                        //note that no delay is necessary for some reason
                        setFocus();
         /**Sets the focus onto the selected tab's text area.  The cursor should
          * blink so that the user can start typing immediately.  In tests without
          * the delay during the automatic tab creation in main(), the cursor
          * sometimes only blinked once in the text area.
         public static void setFocus() {
              if (tabbedPane == null) //make sure that the tabbed Pane is valid
                   return;
              int i = tabbedPane.getSelectedIndex();
              if (i < 0) //i returns -1 if nothing selected
                   return;
              int index = Integer.parseInt(tabbedPane.getTitleAt(i));
              textAreas[index].requestFocusInWindow();
    }

    Did you ever get everything figured out with this? I have a similar problem ... which I have working, but it seems like I had to use a bunch of hacks.
    I think the problem with the mouse clicks is because each event when you click the moues (mousePressed, mouseReleased, mouseClicked) causes the tab to switch, and also these methods are called twice for some reason - for a total of 8 events giving the tab the focus instead of your textarea.
    This works, but seems aweful hacky:
         class TabMouseListener extends MouseAdapter
              private boolean switched = false;
              public void mousePressed( MouseEvent e ) { checkPop( e ); }
              //public void mouseReleased( MouseEvent e ) { checkPop( e ); }
              //public void mouseClicked( MouseEvent e ) { checkPop( e ); }
              public void checkPop( MouseEvent e )
                   if( e.isPopupTrigger() )
                        mousex = e.getX();
                        mousey = e.getY();
                        int index = tabPane.indexAtLocation( mousex, mousey );
                        if( index == -1 ) return;
                        tabMenu.show( tabPane, mousex, mousey );
                   else {
                        if( !switched )
                             switched = true;
                             e.consume();
                             int index = tabPane.indexAtLocation( e.getX(), e.getY() );
                             if( index != -1 )
                                  tabPane.setSelectedIndex( index );
                                  TabFramePanel panel = (TabFramePanel)tabPane.getComponentAt( index );
                                  if( panel != null ) panel.getInputComponent().requestFocus();
                        else {
                             switched = false;
                             TabFramePanel panel = (TabFramePanel)tabPane.getSelectedComponent();
                             if( panel != null ) panel.getInputComponent().requestFocus();
         }Do you know of a better way yet?
    Adam

  • When type Japanese characters they appear not at cursor place. How to solve?

    Hi,
    There is some troubles at Japanese text input. When start to type Japanese (or Chinese) characters they appear not at cursor place, it's very inconvenient for using. How could it be solved?
    Some screenshots done in demo TLF site http://labs.adobe.com/technologies/textlayout/demos/
    Regards,
    Ann

    It would be strange if this would be the desired behavior. The problem is - the position of the "input box" on the screen is changing and is not even predictable.
    I am using Windows XP.
    Here it is in one position
    Here I clicked on the Font drop-down - so now I have the position there, and whatever I do, it stays there.
    Unless I click on Data sourse drop-down - then I have it there
    This input box does not return to the editor, although after hitting Enter I do get the characters at the place of the cursor.
    But it makes it basically unusable for japanese and some other languages - if there are any other controls in the application, the input box moves to them if I click there, and does not return. Besides, in many cases it overlaps already inputted text, which is very inconvenient for the user.
    Where is this input box supposed to be by design, I wonder? And how do I keep it there?
    Another question - is the support for inline input planned and if so, when?

  • Cursor placement in a Reply

    Something that's always bothered me is how Apple Mail places the cursor directly above the quote line when replying to a new message, as below:
    *+(cursor is here)+*
    *+On Jan 11, 2011, at 8:49 AM, John Doe wrote:+*
    Is there a plist modification that would make the cursor appear with a space below it when replying to a message, as below:
    *+(cursor is here)+*
    *+On Jan 11, 2011, at 8:49 AM, John Doe wrote:+*
    This would automatically provide a space of separation between the quote line and where I begin typing. Most email clients already do this...hoping there's a fix for Apple Mail. Thanks for any suggestions.

    Actually there is a way to do this other than the way you've described it, don't be so cocky! I've been using this for years and it does exactly what you are looking for. The only problem is that it no longer works under Lion. If anyone can figure out an update to this solution I'd love to see it! Here it is exactly as I found it worded:
    When you reply to a message, Apple Mail quotes the text of the message to which you're replying after a line like "On May 4 2005, at 5:16 PM, John Doe wrote:". For some reason, though, Mail puts a blank line after that line, separating it from the quoted text, and skips putting one before it, so it's right under the cursor and ends up run in with your typed message. It's weird and ugly! To fix this from the Terminal, type this:
    sudo vi /System/Library/Frameworks/Message.framework/Versions/\
    B/Resources/English.lproj/Delayed.strings
    Change the line that reads:
    "REPLY_ATTRIBUTION" = "On %1$@, at %2$@, %3$@ wrote:nn";
    to this:
    "REPLY_ATTRIBUTION" = "\nOn %1$@, at %2$@, %3$@ wrote:\n\n";
    Then you'll probably have to restart to clear the system's cache and have the changes take effect.

  • The Proper Place to Submit a Feature Request

    This is a beta forum and will be closed at the terminus of the beta. The best place to post a new feature request or to check if one exists already is here: http://feedback.photoshop.com/photoshop_family
    There are places to discuss and vote (and more importantly accumulate votes). It is populated with team members as well as gurus. More importantly-it survives after this forum closes.

    Rikk
      You may think it the proper place, but the software used on the Photoshop family pages is simply dreadful.
    If you want people to participate over there then make it more user friendly.
    It’s also impossible to sign in with an Adobe ID unless your screen name starts with a letter of the alphabet.
    Very disssapointing.
    Regards.
    99jon

  • Cursor placement in a Text Field

    Greetings,
    Here is the setup:
    Text field with a default value set to : XXX
    User tabs into the field.
    Problem:
    When you tab into the field the entire default value is highlighted
    Seeking the following solution:
    How do you tab into a field and get the cursor to go to the end of the default value and await entry by the end user.
    Rick Kuhlmann
    Tech-Pro, Inc.

    Hello
    My problem is that I want to delete or backspace a particular character in a particular position in a string .
    A character in the end of the string can be deleted or backspaced.
    I will be grateful to u iIf u can help me out
    Thanks & regards

  • Avoid focus request from JScrollPanel while tabbing

    hi, i have a JTable into a JscrollPane and some compos outside.how can i jump from table to compos without double tabbing. setFocusCycleRoot(false) didn't work.
    Whats wrong?

    Couldn't say for sure, but if you wish to avoid something from gaining the focus in the tab order you use:
    java.awt.Component c.setFocusable(false);
    It should work on a JScrollPane as jScrollPane is decended from java.awt.Component.
    James.

  • Is there a place to formally submit feature requests?

    I have two...
    1) to allow individual "signatures" within the mail app (between multiple email accounts)
    2) to allow for changing the sound alert within the Gmail app

    Apple Feedback

  • Cursor focus needs to be in address bar in new tab

    Hi,
    It's been a couple of weeks since I've had this problem, and I can't seem to solve it.
    Firefox automatically updated to version 24 and ever since, when I open a new tab, either with Ctrl+t or by pressing the + sign, there is no focus of the cursor, nowhere, while before, the focus was in the address bar. I want to have that back, since it is extremely annoying to always have to move my mouse cursor to the address bar and click it.
    I haven't changed anything, tried reinstalling, tried the costum new tab add-on, but nothing works.
    So if anyone here is able to help me out, it'd be greatly appreciated.

    Yes, that happens with the about:newtab page. You can press the F6 key to set focus to the location bar.
    You can change the browser.newtab.url pref to about:blank to get an empty page with the cursor in the location bar.

  • Changing cursor focus

    Hi,
    I have a custom 6i form. When I use the FIND button to pull up a new instance of the form, the when-new-block-instance trigger on the first block doesn't fire coz the cursor actually never left the focus on the block. How do I ensure that the trigger fires everytime I open up a new form.

    Prabhojot,
    what do you mean with "pull up a new instance of the form". Is it a call using open_form, call_form or new_form?
    Frank

  • Focus on DropDownByIndex

    Hi,
    I would like to set the cursor on a DropDownByIndex, i'm using : view.getElement(<<ID>>).requestFocus();
    The problem is :
    When the list has no selection (setLeadSelection(IWDNode.NO_SELECTION)), the focus is working fine.
    But when the list has a value selected, i can't get the focus on the list.
    Has anyone had the same problem ?
    Thank's

    hi..
    requestFocus() is inherited from IWDViewElement.
    It works for the other IWDUIElement objects that I've used it on... it's really strange that it doesn't work on IWDDropDownbyIndex objects.
    i have just tried on IWDDropDownbyKey objects so that I can request focus on them and  i am able to do  it ....
    But the same is not working for IWDDropDownByIndex....
    I dont know exact reason why its not working for index
    Following is what documentation says
    "If there is more than one such UI element, then it is undefined which UI
    element is chosen. It is also undefined which focus request wins if there
    are several ones. The request may silently fail, but is guaranteed not to
    throw an exception."
    Refer this links which have the same issue
    Link: [IWDDropDownByIndex  and requestFocus()]

  • Where can I make a feature request?

    I have a feature request for the Chat feature of Thunderbird. My request is simple, when double-clicking on a user in an IRC channel, I think it should open up the "conversation" associated with that private message and give it the focus. Currently, it simply crates another "conversation", but leaves is in the background. Where is the current place to make such a request?

    Actually you can have them off for low temp..at least for mine.
    I am actually using an LED strip in the case fan 2 plug
    I have the Z97 Gaming 5.. and in the bios I have the smart fan setup once it hits 40 it lights the led, but then min is 50% (I wish it could be less!) then as the temp increases, it gets brighter.
    At idle, the led is off...
    would be really nice if the case fans had the option for 20% like the cpu..
    So have you looked at the bios fan settings?
    waiiit... I wonder if I could connect it to the CPU fan 2!!! then it can be as low as 20% lol

  • Feature request: Monitor, manage IE - CPU usage

    I was wondering if this is the right place to make a feature request. As it happens when surfing with IE, having many tabs open, pretty quickly CPU usage can reach 100% even on multi core system. Presumably some website manage to run out-of-control scripts
    in the background.
    The real problem is now that I cannot tell which tabs produces which CPU load. All that task manager shows is the IE process with the tabs and the overall CPU usage for the process.
    Regarding monitoring it would help to identify the tabs (website) which cause the heavy load. This could be added to task manager.
    Further, to manage the tabs it should be possible to either start each tab in its own process
    or perhaps better, have the ability to put unused tabs in 'hibernation' causing all scripts to pause there.

    Hi,
    you can post 'feature' requests to the IETeam at
    http://connect.microsoft.com/ie
    Task Manager in current windows versions lists all IE Tab processes.... Sort the process list by cpu usage to identify hungry tabs.
    Typically high cpu usage is caused by
    Web browser addons, incorrect browser settings (use gpu instead of hardware rendering) and flash or poorly designed websites or missing updates to your windows or third-party software. You may like to try running your browser in noAddons mode to see if that
    makes a difference in cpu usage.... and also ensuring that you have enabled Windows Updates and that your computer has the latest updates from MS, Adobe etc.
    MS has no control over what addons a user has or installs on their machines.
    Post consumer questions about IE or windows to
    http://answers.microsoft.com (Help>Online Support menu). Include with your questions the full links to any websites that you are having issues with....
    Always... the first step in troubleshooting web browser issues is to test in no addons mode.
    Rob^_^

  • Dynamic update  of cursor records when table gets updated

    Hi,
    I am having a table with 4 columns as mentioned below
    For a particular prod the value greater less than 5 should be rounded to 5 and value greater than 5 should be rounded to 10. And the rounded quantity should be adjusted with in a product starting with orderby of rank with in a prod else leave it
    Table1
    Col1     prod     value1     rank
    1     A     2     1          
    2     A     6     2
    3     A     5     3
    4     B     6     1
    5     B     3     2
    6     B     7     3
    7     C     4     1
    8     C     2     2
    9     C     1     3
    10     C     7     4
    Output
    Col1     prod     value1     rank
    1     A     5     1          
    2     A     5     2
    3     A     3     3
    4     B     10     1
    5     B     0     2
    6     B     6     3
    7     C     5     1
    8     C     5     2
    9     C     0     3
    10     C     4     4
    I have taken all the records in to a cursor. Once after rounding the request of 1st rank and adjusting the values of next rank is done. Trying to round the value for 2nd rank as done for 1st rank. Its not taking the recently updated value(i,e adjusted value in rounding of 1st rank).
    This is becoz of using a cursor having a value which is of old value.
    Is there any way to handle such scenario's where cursor records gets dynamically updated when a table record is updated.
    Any help really appreciated.
    Thanks in Advance

    Hi,
    Below is the scenario. Which I am looking for.
    ITEM_ID(A)
    ITEM_ID Value Date
    A          3     D1     
    A          5     D2
    A          3     D3     
    A          5     D4
    A          3     D5     
    A          5     D6
    Rounding for Item A has to be done for the rows less then D2 and rounding value is
    x and value adjustment to be done from very next row.
    --For record D1 rounding to be done and value adjustment is to be done from D2 to till the end untill the adjustment value is 0.
    --For record D2 (updated value has to be taken from rounding which updated in D1 row rounding) and the adjustment has to be done from very next row D3 to till the end or adjustment value is o.
    --For D3 row onwards no rounding has to be done.
    ITEM_ID(B)
    B          7     D1     
    B          8     D2
    B          9     D3     
    B          5     D4
    B          4     D5     
    B          3     D6
    Rounding for Item has to be done for the rows less then D3 and rounding value is
    y and value adjustment to be done from very next row.
    --For record D1 rounding to be done and value adjustment is to be done from D2 to till the end untill the adjustment value is 0.
    --For record D2 (updated value has to be taken from rounding which updated in D1 row rounding) and the adjustment has to be done from very next row D3 to till the end or adjustment value is o.
    --For record D3 (updated value has to be taken from rounding which updated in D2 row rounding) and the adjustment has to be done from very next row D4 to till the end or adjustment value is o.
    --For D4 row onwards no rounding has to be done.
    Thanks in Advance
    Edited by: unique on Apr 16, 2010 11:20 PM

  • Changing Decimal Places in CUNI

    hello,
    my company's requirement as of the moment is to increase the decimal places being displayed during service request for Activity Unit (AU).  current setup is 3 decimal places.  we need it to at least 10 to ensure almost exact computation.
    i tried changing the decimal places in TC CUNI, but it wouldn't let me proceed.  Per error message the ISO code for AU is similar with PC, which is PCE.  Upon checking in DEV, PC has no ISO code, but it has in PRD (PCE).
    1. how do i go about the ISO code error?
    2. what is the impact of changing the decimal places now that the system is live for 8 months now? will it affect existing POs?
    3. if it is no longer advisable to change the setup, how will we dispose the difference between the billed amount of contractor against the amount generated during GR/IR and MIR7?
    thanks in advance, gurus.

    thank you for your inputs, Jeevan.  we've tried up to 100,000 since any more will make the PO exceed the original contract amount.
    the contract involved will be delivered in a span of many months, and billing and payments will depend on percentage of completion.
    i hope someone can enlighten me as to how other companies do it, best practice or not.  i'm pretty sure those in construction or property development will find this case familiar. or maybe point me to an article or anything.
    thank you for taking the time.

Maybe you are looking for

  • How to make managed masters available in Finder & other apps

    Hi all, In discussing a Referenced vs Managed storage, one of the issues is not being able to see your Masters in the Finder, so other apps can access them. You can get at the Masters in your managed Library quite easily, although BEWARE... DO NOT MO

  • Restrictions for the use of MapKit in a paid iOS6 app that caches map tiles.

    Can anybody advise what restrictions exist for the use of MapKit for a paid app that caches map tiles for off-line use.  The app is targetted at iOS6 and above.  I haven't found any clear answers on this, Is there a cost associated with using map til

  • Blinking property not available in PDA Module?

    Hi All, Is the Blinking property not available for a Boolean indicator in PDA Module? hellolv

  • Configuring cross company charge

    Happy new year to all! I'd like to know if anyone has been successful at configuring EBP to allow an user to charge across multiple companies in one shopping cart. If so, could you please provide some info here on how to go about setting that up? Or

  • Abstract Portal Component VS Dynpage

    Can any one explain the differences between Abstract portal component and JSP DYN PAGE? When to use where ? How can we provide communication between iViews with in the same component / different components. Useful answers will be rewarded with points