Problem when setting cursor position property

I'm trying to use property nodes to set the cursor position programmatically, following an arrow keypress.  When my actual data file plotted, the position assignment doesn't work properly.  If I clear the data from the graph (right click, clear graph), then the cursor responds properly.  I've attached a zipped file with VI that demonstrates the problem.  Sorry the file is large--I had to include my data file to properly demonstrate the problem.
Thanks for any advice that help me clear this up,
Allan
Solved!
Go to Solution.
Attachments:
My Source Distribution.zip ‏541 KB

bracker wrote:
I'm trying to use property nodes to set the cursor position programmatically, following an arrow keypress.  When my actual data file plotted, the position assignment doesn't work properly.  If I clear the data from the graph (right click, clear graph), then the cursor responds properly.  I've attached a zipped file with VI that demonstrates the problem.  Sorry the file is large--I had to include my data file to properly demonstrate the problem.
Thanks for any advice that help me clear this up,
Allan
Include this code in 'Initialize' state.
I am not allergic to Kudos, in fact I love Kudos.
 Make your LabVIEW experience more CONVENIENT.

Similar Messages

  • Setting Cursor position

    Pls help me for the following query:
    how to set cursor position at the beginning of text field(JTextField) after setting text inside it.

    RTFM
    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/text/JTextComponent.html#setCaretPosition(int)

  • Set cursor position in console

    Hello,
    I would like to set the position of the cursor in the console (command prompt).
    Is ther a way to do this ?
    public void printChar(int x, int y, char ch) {
         <set cursor position>(x,y);
             System.out.println(ch);
        }Thanks

    Ymas wrote:
    Do i have to add something like import java.???
    No, nothing starting with "java.*" will help you. There is no way you can do that using only what Java provides itself, you will need to use external libraries.
    Chances are, you don't want to do this right now and forget about it, just write one line after another.
    If it s not too long could you write me the code for <*set cursor position*>(x,y);Find, download, learn to use JCurses or a similar library and write it. If that sounds like a lot of work for such a "simple" functionality then yes: that is a lot of work for such a little thing.
    It's generally not worth doing.

  • Pda cursor position property does not work

    Hi!
    I have a problem with cursor positionX propery on PDA.
    I use PDA Module 8.2 and Windows Mobile 5 OS on PocketPC.
    Actually problem is only when I try to get value of two cursors, it return the same value for both cursors (you can test it with attached VI), but when I set values it work fine.
    I have also worked with PDA Module 8.0.1 in past and I remember that get cursor position value worked, so I have no idea why it doesn't work in newer version.
    Thanks,
    andrej
    Attachments:
    cursor test.vi ‏21 KB

    Hello andrej,
    Unfortunately I also see the same behavior on a PDA using this "active cursor" property. It appears to me that this property is not being written successfully. I say this because it appears that the value displayed is always from the most recently repositioned cursor rather than either the 0 or 1 which is set by the property node.
    What I will do at this point is to file a corrective action request so that this behavior is corrected for a future release of the LabVIEW PDA module. I apologize for the inconvenience that this causes for your application. Please let me know if I can help at all as you modify your application to work around this behavior. Thanks,
    Mike D.
    National Instruments
    Applications Engineer

  • Mixed Signal Graph: Cursor Position Property for Multi-Plot Cursor

    I'm working 6 waveforms on 3 different plot areas in a mixed signal graph in LV2009.  When I try to pull the Cursor.PosY property from my cursor (in which Watch All Plots is True, and is set to Multi-Plot in the graph properties), it returns the value of only the first plot in the cluster of waveforms fed into the graph.  I've tried changing the active plot, active plot area, nothing changes.  I am able to retrieve each value via the cursor legend, but I cannot pull each of those values into another portion of my program.  Also, I noticed that when setting events in an event structure, any events relating to a cursor drag aren't present as they are in a waveform graph.  My workaround is to create an indicator for the Cursor.PosX property and monitor when that value changes, but I feel there should be an easier way.  Any help is appreciated.
    Thank you in advance!

    Jeanius,
       I am not quite sure why the cursor pos in the Wavegraph reference does not change when you change the active plot, but if you grab a reference to the specific cursor and then change the active plot things you receive the expected behavior.
    Ben J.
    National Instruments
    Applications Engineer
    Attachments:
    MODDEDmixed graph cursor ex.vi ‏41 KB

  • [ADF Faces] set cursor position to the first column input text in ADF table

    How do i set the cursor position to the first column input text when i Insert a blank row?
    My idea is to implement using javascript. document.setfocus() but how do i do it from the backing bean code? or how do i install custom js to call document.setfocus()?
    any ideas?
    Message was edited by:
    user450391

    Did you try by iterating the selected row?
    Bind the table with the managed bean and then try with below code:
    RichTable empTable;
    RowKeySet selectedEmps = getEmpTable().getSelectedRowKeys();   
    Iterator selectedEmpIter = selectedEmps.iterator();
    DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding empIter = bindings.findIteratorBinding("EmpView1Iterator");
    RowSetIterator empRSIter = empIter.getRowSetIterator();
    while(selectedEmpIter.hasNext()){
       Key key = (Key)((List)selectedEmpIter.next()).get(0);
       Row currentRow = empRSIter.getRow(key);
       System.out.println(currentRow.getAttribute("Ename"));

  • Set cursor position within table control while scrolling

    hi,
    Anybody can guide me how to set the cursor with in table control while scrolling down,normally it is going to first input filed.
    Thanks and Regards,
    palani.

    Hi Palani,
    Could you please share with me what all you have done regarding get and set cursor. I am facing similar problem where
    I have made a Z Table Control where i have given vertical and horizontal scrolling . Now when I scroll and try to select a row, then ZTABLE_CONTROL-CURRENT_LINE fetches line number not from the top, it fetches from the current top of ztablecontrol.
    It is onlyy changing the value on scrolling, if i do not scroll table control then value is coming correct.
    My requirement is whenever i select any row of ZTABLE CONTROL i need to get the curent line number from top. Please guide me what should i do.
    Early reply will be rewarded.
    Thanks.

  • Set cursor position

    Hi gurus,
        In the transaction COIB (creation of serialized assemblies).I need to do the following... Program name  (SAPLCOIB - Standard program in module pool)
          After i give the material no and serial no (in serialized assembly) by a barcode scanner, when i press enter i have to call EXPLODE in Application toolbar and my cursor position should come to serial no(in Assigned serialized components).
          After i give all the serial no by a bar code scanner i have to call TRANSFER button.
         After that my cursor should come to serial no ( in Serialized assembly).
       can you help me regarding this requirement....
      Urgent please...
    Thanks in Advance,
    Navaneeth.

    You can set the codes below :-
    1. SET CURSOR FIELD f.  ---> It will set the cursor at the begining of the field f
    You can use the additions :-  OFFSET off
                                               LINE   lin  (In step loop )
    Regards
    Srikanta Gope

  • Problem in setting desired position for JPanel in JScrollPane!!!

    Dear Friends,
    I am having problem to set desired Scrollable(JScrollPane) JPanel position. I have a JPanel in a JFrame which is scrolable with lot of objects. It automatically displays on the top position inside JScrollPane, I want to set scroll position on the middle for the panel.
    I went through the search for the same in this forum, i found some posts related to this but they are linked with JTextArea(setCaretPosition). With JPanel i can't set caret position.
    Could anyone guide me how to set the scroll position on middle.
    Regards..
    Jayshree

    Replace:
    if(view.getValueAt(row,column) instanceof ImageIcon){
            ((Component)view.getColumnModel().getColumn(column).getCellRenderer().
            getTableCellRendererComponent(view,view.getValueAt(row,column),true,true,row,column)).setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
          else
            ((Component)view.getColumnModel().getColumn(column).getCellRenderer().
            getTableCellRendererComponent(view,view.getValueAt(row,column),true,true,row,column)).setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
          }with:
    if(view.getValueAt(row,column) instanceof ImageIcon)
            view.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
          else
           view.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));

  • Problem in setting the target property to _SELF of LinkToURL UI Element

    Hi,
    I have a LinkToURL UI Element in my web page which has to open up another page in the same window.
    I tried setting the target property to _SELF, but it's not working.Instead the page is opened in a new child window.
    Please tell me whether to set any other property to get that.
    Thanks and Regards,
    Padma Usha.

    Hi,
    Please give the target value in lowercase "_self".
    Regards, Anilkumar

  • How to set Cursor position in ALV

    Hi,
    i have an issue that how can i set cursor in alv grid.
    i am using alv function modules.
    if user enters wrong info (i have one input enabled filed) then i must show this row as first row and place the cursor in that wrong entry column.
    does anybody worked on this kind of issue..?if so,plz send me the example code
    Thanks

    I think that you have to use OO ALV and use
    CALL METHOD <ref.var. to CL_GUI_ALV_GRID > ->set_current_cell_via_id
       EXPORTING
          IS_ROW_ID    =   <structure of type LVC_S_ROW > ( obsolete )
          IS_COLUMN_ID =   <structure of type LVC_S_COL >
          IS_ROW_NO    =   <structure of type LVC_S_ROID >.
    Hopefully, you can find the object reference of you REUSE ALV by using FM 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    (But i never try it)
    Regards.

  • How can I set cursor position inside TextInput or TextArea

    Hallo.. I can't find the way for changing che cursor position inside a String in the TextInput or TextArea Component.. I hope you can help me..
    Thx
    Max

    setSelection(index, index);

  • Problems when setting SSL for a MQSeries Adapter

    I'm trying to enable SSL and so far these are the steps I've done:
    - I've been using the DemoIdentity.jks and DemoTrust.jks files located under <MIDDLEWARE_HOME>\wlserver_10.3\server\lib for all my certificate operations.
    - I created a PrivateKey and imported it to my DemoIdentity store, created a certificate request and when I got the response imported it back using the same alias. Something I want to highlight here is that when I created the PrivateKey I left the password field empty so it supposed inherit the keystore's.
    - I also imported the CA cert into the DemoTrust.jks
    My MQAdapter is all set and when I used it with no SSL it was working just fine so I think I have the problem isolated.
    Anyway, now when I try to connect this is what I'm getting in the logs:
    at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAConnectionMa
    nager$JCAConnectionPool.createJCAConnection(JCAConnectionManager.java:1335)
    ... 59 more
    Caused by: java.security.UnrecoverableKeyException: Cannot recover key at sun.security.provider.KeyProtector.recover(KeyProtector.java:311)
    at sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:121
    at sun.security.provider.JavaKeyStore$JKS.engineGetKey(JavaKeyStore.java
    :38)
    at java.security.KeyStore.getKey(KeyStore.java:763)
    at com.sun.net.ssl.internal.ssl.SunX509KeyManagerImpl.<init>(SunX509KeyM
    anagerImpl.java:113)
    at com.sun.net.ssl.internal.ssl.KeyManagerFactoryImpl$SunX509.engineInit
    (KeyManagerFactoryImpl.java:48)
    at javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:239)
    at oracle.tip.adapter.mq.ManagedConnectionImpl.setupSSLSocketFactory(Man
    agedConnectionImpl.java:670)
    Googling this it seems like it's a problem with the keystore and private key passwords being different but I changed the private key's to match the keystore (something that I shouldn't be necessary because of the keytool's default behavior when generating the key) with no positive results.
    Anyway, any ideas would be really appreciated. I've been spinning my wheels on this issue for 3 days now.
    BTW, here's I'm using Oracle SOA11g.

    Hello MV,
    I don't need to access my console through SSL as this is not part of what I'm trying to do.This will confirm whether SSL has been enabled on your weblogic. In your case it seems that SSL has not been enabled.
    the demo keystore and truststore are regular stores and I was able to successfully import certificates into them using keytool.Demo keystores are not recommended to be used in production. Moreover DemoIdentity.jks already has a private (secret) key so importing another key may cause an issue. I don't think any application server supports multiple private keys for SSL.
    I'll go ahead anyway and create a brand new set of keystores just to rule out that's not the problem here.Please test with new custom keystores and let us know the results.
    Regards,
    Anuj

  • JTextArea: set cursor position

    Hello, i have a problem with my JTextArea: When I'm pressing Enter, the message in the JTextArea should vanish and the cursor should go back to his first position: first row, But the cursor jumps into the next row. These are the things I've tried as yet:
    area.setText(null);
    area.setText("");
    setCaretPosition(...);
    please, help me!
    THANKS

    If you must use a JTextArea, here is how: by overriding the JTextArea's processKeyEvent(...) method. In doing this, you intercept the key event before it is processed and the char gets written to the text area. This allows you to check the event so that if it is VK_ENTER (meaning the user hit the <enter> key), you can avoid writing it to the text area and, instead, call some method that writes the text to a socket (or whatever). Since the <enter> does not get written to the JTextArea, the cursor ends up back on the first line after you setText("").
    You will have to create your own class extending JTextArea and, in that class, override processKeyEvent(...). Some sample code is pasted below:
    import java.awt.event.KeyEvent;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTextArea;
    import java.awt.BorderLayout;
    import java.awt.event.KeyEvent;
    import java.awt.Dimension;
    public class MyTextArea extends JTextArea {
         public MyTextArea() {
              this.setLineWrap(true);
         public void sendText(){
              //some code here to send text somewhere
              this.setText("");
         public void processKeyEvent(KeyEvent e){
              if(e.getKeyChar() == KeyEvent.VK_ENTER){
                   sendText();
              }else {
                   super.processKeyEvent(e);
         public static void main(String[] args) {
              Dimension d = new Dimension(200,100);
              MyTextArea textArea = new MyTextArea();
              textArea.setPreferredSize(d);
              JFrame frame = new JFrame();
              JPanel contentPane = (JPanel)frame.getContentPane();
              contentPane.add(textArea, BorderLayout.CENTER);
              frame.pack();
              frame.setVisible(true);
    }

  • Problem when setting encoding to ISO-8859-1

    Hi. Is there something I'm missing when it comes to setting
    encoding? Here are the code in the mxml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    </Application>
    In the html-template I'm setting:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=ISO-8859-1" />
    The code for sending data from the app:
    <mx:HTTPService
    id="service"
    url="encoding.jsp"
    method="post"
    showBusyCursor="true"
    result="onResult(event)"
    resultFormat="xml"
    contentType="application/xml"
    fault="onFault(event)"
    useProxy="false" />
    public function send():void {
    var xml:XML = <Data>{data.text}</Data>;
    service.send(xml);
    But still the respons jsp I have made says it receives the
    data in UTF-8 format? What am I doing wrong?
    Servercode:
    don't work: BufferedReader reader = new BufferedReader( new
    InputStreamReader( is ) );
    work: BufferedReader reader = new BufferedReader( new
    InputStreamReader( is, "UTF-8") );

    Are there no-one who have the same problem? I've tried
    everything imaginable, and still the serverside receives the data
    as UTF-8.
    Is it supported at all to set the encoding of the
    request?

Maybe you are looking for

  • I reset My Ipod To factory Settings and got all my apps but no music

    I reset My Ipod To factory Settings and got all my apps but no music , i have it on the computer saved but only the old music comes up that i bought on the computer ... the ones i want ,that i had on my i pod that i bought on my ipod  before i got lo

  • Cover flow re Appleworks

    I really like the Cover Flow feature in Finder, but I find that it does not display my Appleworks documents. I'm surprised that my old (forgive me) PC documents from Excel will display, but my Appleworks documents will not. Anyone else noticing this?

  • Old .idx files no longer working

    Old .idx files (index files) that worked with Reader 9 no longer work with Reader XI.  Because of this, I have not upgraded beyond Reader 9, but I love the new XI. Is there any way of converting the old .idx file so that they will work in XI?  (is th

  • Logo/ from Photoshop to Illustrator

    I have a logo I designed in Photoshop and I need to re-do it in Illustrator. I just need some tips and tricks on working in Illustrator. (Logo at Bottom) Now I used the bevel/ emboss effect a lot on this, when I go to bevel in illustrator (effects>3D

  • Writing back to a database using adobe flex

    According to the demo on [http://www.businessobjects.com/global/flash/product/catalog/crystalreports/demo_operational_reporting/operationalreporting_viewlet_swf.html|http://www.businessobjects.com/global/flash/product/catalog/crystalreports/demo_oper