Keep-cursor-position crashes runtime

In Forms 6.0 I have a text-item in a multi-record block with keep-cursor-position set to "yes".
On my computer it worked OK, I don't know why?
On 3 other computers it crashed when clicking from one record to another in that block.
We all have NT4 SP6.
The dump says nothing I can understand. Except that a whn-new-record trigger succeeded.
After setting the keep-cursor-position set to "no", it works.
Any other suggestions?
null

Thanks for the reply.
I think there is a bug in the new forms version.
When a timer goes off, focus is switched to
a block to clear block, then focus is given back to
the text field is highlighted and the cursor goes
to the beginning of the text field!
This is unacceptable if a user is typing in a text
field and in the 'background'-unknown to the user- the timer goes off....goes to a block, performs clear block,
and returns focus to the text item. The text the user has typed will be overwritten if even one keystroke
is performed by the user when the text is highlighted.
AND, now the cursor is at the beginning of the text
field, not the end!
I have create a PJC for a text field that SORT of works <see code below>
What is does is when the text area is 'selected' perforsm
a keystroke of VK_END. The problem arises when the user tries to use the arrow left key.
The CursorPosTextArea might not work. I'm not exactly sure what forms is doing wrong...I'll look at it though. Thanks for the suggestion.
---signed-PJC-cod---------------------
import oracle.forms.ui.*;
import java.awt.event.*;
import java.awt.Robot;
import oracle.ewt.lwAWT.lwText.SelectionListener;
import oracle.ewt.lwAWT.lwText.SelectionEvent;
public class GO_TO_END extends VTextField
public GO_TO_END()
super();
this.addSelectionListener(new SelectionListener()
public void selectionChanged(SelectionEvent e)
this_selectionChanged(e);
void this_selectionChanged(SelectionEvent e)
Robot robot = null;
try
robot = new Robot();
catch(Exception f)
f.printStackTrace();
robot.keyPress(KeyEvent.VK_END);
robot.keyRelease(KeyEvent.VK_END);

Similar Messages

  • Select All Keep Cursor Position

    Is there a way to have Dreamweaver keep current cursor
    position when I use Select All (Ctrl + A) instead of moving all the
    way down to the end of the document.
    It's very frustrating.

    Thanks for the reply.
    I think there is a bug in the new forms version.
    When a timer goes off, focus is switched to
    a block to clear block, then focus is given back to
    the text field is highlighted and the cursor goes
    to the beginning of the text field!
    This is unacceptable if a user is typing in a text
    field and in the 'background'-unknown to the user- the timer goes off....goes to a block, performs clear block,
    and returns focus to the text item. The text the user has typed will be overwritten if even one keystroke
    is performed by the user when the text is highlighted.
    AND, now the cursor is at the beginning of the text
    field, not the end!
    I have create a PJC for a text field that SORT of works <see code below>
    What is does is when the text area is 'selected' perforsm
    a keystroke of VK_END. The problem arises when the user tries to use the arrow left key.
    The CursorPosTextArea might not work. I'm not exactly sure what forms is doing wrong...I'll look at it though. Thanks for the suggestion.
    ---signed-PJC-cod---------------------
    import oracle.forms.ui.*;
    import java.awt.event.*;
    import java.awt.Robot;
    import oracle.ewt.lwAWT.lwText.SelectionListener;
    import oracle.ewt.lwAWT.lwText.SelectionEvent;
    public class GO_TO_END extends VTextField
    public GO_TO_END()
    super();
    this.addSelectionListener(new SelectionListener()
    public void selectionChanged(SelectionEvent e)
    this_selectionChanged(e);
    void this_selectionChanged(SelectionEvent e)
    Robot robot = null;
    try
    robot = new Robot();
    catch(Exception f)
    f.printStackTrace();
    robot.keyPress(KeyEvent.VK_END);
    robot.keyRelease(KeyEvent.VK_END);

  • KEEP CURSOR POSITION...

    Hello guys, i want your immediate help in a not so difficult question i think so. I am in a datablock item and i edit a value. When a value i give is not valid, i don't want the cursor to leave the position that it were. I tries the keep_position property of the item but it doesn't function. Any idea?
    Thanx a lot.
    Rgds,
    Bill Kepaptsoglou.

    Well, without all the details it will be difficult to offer anything except to say that there were some known issues with KEEP_CURSOR_POSITION which have been corrected in the latest Forms versions. Be sure you are using the latest version of both Forms and Jinitiator.
    Latest versions:
    Forms:
    6.0.8.26 (Error Correction Support ended)
    9.0.2.3 (Error Correction Support ended)
    9.0.4.2
    10.1.2.0.2
    Jinitiator:
    1.1.8.25 (ONLY SUPPORTED WITH FORMS 6i)
    1.3.1.23

  • Keep coursor position row number 5 in tabular forms.

    Hi all,
    I am facing some problem , In tabular forms there are around 10 rows.
    I want to keep cursor position in number 5 position. Data moves up and down by pressing up and down key but always cursor remain in 5th position. I think u get my point.
    Thanks,
    Md.Muniruzzaman Khan
    Email : [email protected]

    Ok it may not exactly what you want but it's really close.
    put on your block a hey-up and key-down trigger with the following code
    declare
         counter NUMBER(10);
    begin
    if :system.cursor_record < 5 then
         go_record(5);
    else
         -- suppose you have 10 records displayed you can make it dynamic by retrieving the block's displayed record and round(num/2)
         -- instead of the fixed 5
         SCROLL_DOWN;
         counter := :system.cursor_record;
         go_record(counter+5);
    end if;
    end;
    hope you can do something with this

  • Cursor Position in text item - almost there

    Searching the forum I found a post relating to the same problem I am facing but still without solution. The text was :
    "Q:Does anyone know of a way to add a value from a LOV into a text editor, inserting the value at the current cursor position (ie. possibility in the middle of lines of text)."
    Mr. Duncan Mills replied the following but it didn't worked:
    "1) Set Keep Cursor position on in the text field
    2) Have the LOV return into a "working field" possibly hidden
    3) Aftre the LOV has returned a value do a Go_ITEM to the working feild and issue SELECT_ALL; COPY_REGION;
    4) GO_ITEM back to the text Field (the cursor should return to where you left it) and PASTE_REGION."
    I was trying this and I finally found solution just changing "paste_region" to "win_api_shell.sendkeys(whnd,'^V',FALSE)". It's working, but I am getting the message FRM-41008 - Undefined function key.
    How can I disable this message ? (I tried to set :system.message_level to 25 but it didn't work).

    You can trap error messages like that in a Re: Error Trapping

  • Keep horizontal cursor position

    Hi, i have problem in Dreamweaver 8.02. In product Homesite
    5.5 is the best settings for editor - keep horizontal cursor
    position and allow cursor past end of line. Where is this settings
    in Dreamweaver 8? I frustration of this.
    Thanx for anything help.. Thomas

    I don't know what you are asking, but I don't believe there
    is such a
    setting in DW.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "tomastomb" <[email protected]> wrote in
    message
    news:egm80j$fka$[email protected]..
    > Hi, i have problem in Dreamweaver 8.02. In product
    Homesite 5.5 is the
    > best
    > settings for editor - keep horizontal cursor position
    and allow cursor
    > past end
    > of line. Where is this settings in Dreamweaver 8? I
    frustration of this.
    > Thanx for anything help.. Thomas
    >

  • How to get the current cursor position in word report?

    I am generating a word report. But I would like to keep the table in one page. However, I did not find the way to do it in labview. Somebody would give me some suggestions? I appreciate a lot.
    One way I think I can do is to find the current cursor position. Since I know the table size so I can figure out if the left space in the current page is enough to hold the table. But I do not know how to locate the curent cursor position in word document in labview programmatically. I appreciate any suggestions on this question.
    Thanks.

    Hi,
    when you insert data in a word document you have to refer to bookmarks rather than cursor position.
    If you are using the Report Generation Toolkit for Office it is explained in the manual chapter 3-1.
    See also the example: Generate Report From Template (Word).vi included in the toolkit.
    If you aren't using the toolkit, you still have to refer to bookmark as reference points to insert and/or fetch data.
    The principle is:
    - First create a document in which you insert bookmarks where you wish and save it as a template
    - In LV open your template document and insert in it your data referring to bookmarks as insertion points
    - At the end save your report with another name, so you still have the template
    I hope I have been clear enough, if not just as
    k!
    Good luck,
    Alberto

  • Cursor position

    I ahve a program written and all but it looks like I distorted the cursor position. I want to set the cursor position to where it can be moved by clicking and i cant figure it out. I know i have the magnify on is that why if so is there a way to keep both.
    Attachments:
    windchime2.vi ‏53 KB

    Press Here.
    Tim
    Johnson Controls
    Holland Michigan

  • Inserting text into a field at the current cursor position

    Does anyone know how to insert text into a field at the current cursor position? I would like it to work similar to the Syntax Palette in Forms. I cannot figure out how to retrieve the current cursor position in order to manipulate the text.
    Any help would be great.
    Thanks.

    Hi,
    If the button and the textfield are on in the same subform then this code should work in the click event of the button
    (This is JavaScript code so make sure the code is set to JavaScript and Client on the drop downs in the script window)
    (assuming the name of the textfield is TextField1)
    TextField1.rawValue = "some value";
    If they are in different subforms then you have 2 options
    Please note in both these options it is easier if the subforms have names ( I am assuming this to keep samples simple)
    option 1 -
    use the parent object to move up the tree till you are at the same level as that of the subform that contains the textfield
    e.g. 
    (Click Event of the button)
    this.parent.subformname.TextField1.rawValue = "some value";
    option 2 -
    Use the resolve node to make your way down from the top level of the form
    xfa.resolveNode ("form1.subformname.TextField1").rawValue = "some value";
    Hope this helps
    Malcolm
    p.s. I am making assumptions as the image/file you attached did not appear for me.

  • Cursor positions can't extract waveform subset

    Hi there,
    I'm trying to get two cursor positions on a waveform graph to be the inputs for the code below, which will begin a process that will analyse a subset of the waveform. The two cursors define the start and end point for the waveform (Cursor 0 is the start point, cursor 1 is the end point). However, I'm having issues as Labview keeps telling me that the values I've chosen are not multiple integers of dt. I'm not sure what to set to avoid this problem. I've tried to get the cursor plots to be single plot types so they snap to x values (I assume this is what single plot means) but it's not making any difference. Note that there are 2 plots initially going to this waveform graph (original and average waveform) but the selection should only be from one of them (single plot is assigned to original waveform). Please help!
     edit - Just a quick update. I noticed that if I re-run the VI, and activate this part of the VI that takes the waveform subset, I actually get what I want. Therefore, I assume I haven't set something properly in another part of the VI where I have an event structure that updates the cursor positions into numeric indicators. Could this be the issue?
    Solved!
    Go to Solution.
    Attachments:
    Clipboard01.jpg ‏64 KB

    I've solved the problem. Having both cursors on set to single plot on the original waveform should have prevented this issue, but I didn't notice that I was feeding in another waveform beforehand which automatically changed the assignment of the cursor, causing my issue.
    Now the cursors stay fixed on the single plot I want after some tweaking.

  • Cursor Position Discrepancies

    Hi, and first off --- thanks for reading this! 
    The issue I have encountered with AS has been mentioned by a few people on this vast land of the internet, but I have found no solution, yet.
    When a text field / textarea is set to render as HTML, I can access the cursor position of the "plain" text quite easily even if some HTML has already been inserted either by setting it through ---
         field.htmlText = . . . ;
    OR
         setTextFormat( . . . );
    However, to know exactly how many characters precede the cursor (both "plain" and hidden HTML characters), there is no setting.
    This doesn't make sense to me since AS obviously knows how many hidden HTML characters are coming before the cursor. Otherwise, the built-in formatting functions would corrupt the code.
    Of course, I could be misinterpreting it, and the built-ins just run through checking for < characters . . . this seems repetitive to me, though, and thus unlikely.
    Is there something I am missing? I have tried so many workarounds that didn't work that I'm even more impressed by the fact that I can't find one . . .

    Well, after working with it all day, I have concluded that this will not work --- in my application. Even if I could work out the final bug, it's much too expensive in computation time to be used.
    The final bug that I mentioned is getting it to recognize new lines. Currently, it interprets a new line as nothing at all. I tried getting it to backtrack the cursor position to a recognizable character, but no soap.
    I could keep trying different options, but this is becoming too expensive with my time, as well.
    I plan on taking this up with Adobe Support, and I'll post their response here for posterity.
    Anyway, thank you very much, kglad, for your help. I really appreciate it.
    For anyone who's interested, here's the solution I tried based on kglad's suggestion:
    function html_caret(plain_caret:Number, html_area:Object):Number {
           var match:String = html_area.text.charAt(plain_caret);
           var matches:Array = html_area.text.substring(0, plain_caret).split(match);
           var match_number:Number = matches.length;
           var html_length:Number = html_area.htmlText.length;
           for(var new_caret:Number = 0; new_caret < html_length; new_caret ++) {
                  if(html_area.htmlText.charAt(new_caret) == "<") {
                         while(html_area.htmlText.charAt(new_caret) != ">") {
                                new_caret ++;
                  } else if(html_area.htmlText.charAt(new_caret) == match) {
                         if(match_number > 1) {
                                match_number --;
                         } else {
                                break;
           return new_caret;

  • Pro*Cobol Cursor position holding

    I've gotten the error that the data is out of sequence when it goes thru (cursorx opened before this loop of do until);
    START LOOP
    EXEC SQL
    FETCH CURSORX
    INTO ...
    END-EXEC.
    COMMIT
    EXEC SQL
    SELECT ...
    INTO ...
    FROM CMASTER
    WHERE ...
    END-EXEC.
    EXEC SQL
    SELECT ...
    INTO ...
    FROM DMASTER
    WHERE ...
    END-EXEC.
    COMMIT
    EXEC SQL OPEN CURSORD END-EXEC.
    EXEC SQL
    FETCH CURSORD
    INTO ...
    END-EXEC.
    EXEC SQL
    SELECT ...
    INTO ...
    FROM EMASTER
    WHERE ...
    END-EXEC.
    EXEC SQL
    SELECT ...
    INTO ...
    FROM FMASTER
    WHERE ...
    END-EXEC.
    EXEC SQL CLOSE CURSORD END-EXEC.
    EXEC SQL OPEN CURSORE END-EXEC
    PERFORM
    EXEC SQL FETCH CURSORD INTO ... END-EXEC
    UNTIL CONTACT-SW = 'Y'
    EXEC SQL CLOSE CURSORD END-EXEC
    ETC.
    END LOOP.
    My background is Mainframe COBOL... and handling something like this would be done (IBM quoted) if I got it right as;
    Application:
    DECLARE CURSORX CURSOR WITH HOLD FOR SELECT UDF1() ...
    OPEN CURSORX
    FETCH CURSORX ...
    COMMIT
    Care to help me out... not seeing a similar function of "WITH HOLD" to keep the cursor position when it gets back to the top of the loop.

    Hi and welcome to the forum.
    You need to commit only ONCE in Oracle, at the total and complete END of your transaction.
    Never commit INSIDE a loop.
    Only commit when your transaction has completed.
    (Preferrably you let the client, the caller, commit)
    See:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:546822742166
    Can you please post the exact error message as well?
    I'm only guessing it's:
    ORA-01002: fetch out of sequence
    Cause: This error means that a fetch has been attempted from a cursor which is no longer valid. Note that a PL/SQL cursor loop implicitly does fetches, and thus may also cause this error. There are a number of possible causes for this error, including: 1) Fetching from a cursor after the last row has been retrieved and the ORA-1403 error returned. 2) If the cursor has been opened with the FOR UPDATE clause, fetching after a COMMIT has been issued will return the error. 3) Rebinding any placeholders in the SQL statement, then issuing a fetch before reexecuting the statement.
    Action: 1) Do not issue a fetch statement after the last row has been retrieved - there are no more rows to fetch. 2) Do not issue a COMMIT inside a fetch loop for a cursor that has been opened FOR UPDATE. 3) Reexecute the statement after rebinding, then attempt to fetch again.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14219/e900.htm#sthref425

  • Controling the cursor position

    Hi all,
    I have two x, and y signal outputs from a dll module and I plan to use them to control the cursor position. One problem I'm facing is that my signals are variable enough to cause the cursor to vibrate in stationary setting. So, I use hysterysis (putting threshold) to eliminate these fluctuations but the drawback is that keeping the treshold high enough to eliminate the fluctuations keeps me from getting a nice, smooth movement when the speed of movement (rate of x and y changing) is low. Any ideas or suggestions will be appreciated.
    p.s. I am using "SetCursorPos".dll as you might have already guessed.
    Thank you,
    Elnaz

    The formula for an exponential filter of degree D is the following:
    New Average = (New Value + (D-1)*Old Average)/D
    I usually add a special case for startup so that D is never greater than the number of points. 
    As I said, it is a low-pass filter, much like using a running average.  I usually like it because the state is simply a single value (Old Average) instead of the array of values you have to keep around to do a running average.
    As to the new question of separating high-frequency noise from your high-frequency signal, that is a bit more complicated (obviously).  You should take a power spectrum of the noise to see if there is a characteristic feature you can use (cutoff frequency, strong peaks).

  • Popup tooltip at cursor position

    Carl's example at http://apex.oracle.com/pls/otn/f?p=11933:121 works great but it uses the following snippet of code to position the popup div at the right edge of the triggering element.
                $x_Style('rollover','left',findPosX(pThis)+pThis.offsetWidth+5);
                $x_Style('rollover','top',findPosY(pThis)-($x('rollover').offsetHeight/2)+($x(pThis).offsetHeight/2));Depending on the size of the triggering element, this may not always be desirable.
    Is there a way to position the div right where the cursor is? Getting the cursor position in a cross-browser way seems to be a little tricky, any help appreciated.
    Thanks

    Thanks, will keep that in mind.
    To answer my own question, all I needed to do was pass in the "event" object to the click/mouseover handler so the event handler can use a script like this to get the mouse position and then use that to position the div.

  • How can I keep cursor stable when moving X scroll?

    Dear All,
           How can I keep cursor stable in the graph when moving X scroll?
           Normally, the cursor is moving while moving X scroll, because the X scroll changes.
    Thank you!

    Hi Hugo,
    the cursor has it's x- and y-coordinate. If you move the x scroll-bar, the cursor moves too.
    To avoid this you have to move the cursor with the x scroll bar. To do so you have to get the cursor position and the x-scale min/max before movement. While movement you have to calculate a new cursor position relativ to the new x-scale and set the cursor accordingly. (Problems may arise if the cursor is connected to a plot...)
    That's what property nodes are used for!
    Message Edited by GerdW on 09-01-2006 10:14 AM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

Maybe you are looking for

  • Adf mobile app accessing e-business suite 12.1.3

    Hi, I'm very new with ADF development, let alone with building a mobile app. We are in an exploratory stages of building a mobile application on top of the e-business suite using ADF. Ideally, we will use the ebusiness suite login (FND USER) to login

  • Deleting Request from cube based on Selection Condition

    HI All, I have a scenario where i have three selection condition while i update from ODS to CUBE . I keep getting differnet versions of the file so the latest version should replace the old version , to do this i tired using the option Delte Request

  • Queue+socket problem

    I have several client programs and server programs.I execute all the server program first and while the servers are listening for incoming connections, I start my clinets connecting randomly to the servers.But before the connection is established, I

  • Rescue & Recovery BSOD

    Every time I try to use the R&R "Optimize Backup Storage Space" feature I get Windows BSOD. After a restart Windows notifies me that it had "recovered from a serious error". I have reinstalled the factory install as well as R&R but the problem persis

  • Seamless transitions from GB- iTunes

    I've been trying to export simple audio tracks into iTunes. But when I do, it always adds about 3 seconds of "nothing" at the very end. So when it's in iTunes, there's always an extra 3 seconds at the end that wasn't there before. It's very frustrati