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

Similar Messages

  • "Link That Displays Item In Folder Area " option for a Text Item not there in 9.0.2

    Hi,
    In the previous version of Portal when you created a content area item of type text. there were four display options
    1) Item Displayed Directly In Folder Area
    2) Link That Displays Item In Folder Area (i.e on a page for a folder)
    3) Link That Displays Item In Full Browser Window
    4) Link That Displays Item In New Browser Window.
    In release2 of protal the option number 2) is removed.
    We were using option 2 as we added different portlets and style sheets on content area page because of which we were able to get the desired page.
    Now in the new release this option is not there.
    Any pointers to the issue.
    or Is there a default style and page design which is used while opening the details of the text and whether that default can be modified or not?
    Regards
    Kapil

    Hi,
    Please post this question in the content areas discussion folder.
    Thanks,
    Sharmila

  • Locating the cursor position

    Is it possible to locate the cursor position in a text item? in other words can I find the number of characters to the left of the cursor in a text item?
    I really appreciate any kind of input on this.
    null

    I have to insert user selected variables that show up in a LOV into the text item at the cursor position.
    A sloppy workaround for this problem is asking the user to put in a pre defined symbol where ever he/she wants to insert the variables and then replace the variable with the value selected from the LOV using the REPLACE function. There is always a chance of error here!
    Instead if there is a way to know the cursor position, like the no. of characters to the left of the cursor or the cursor co-ordinates.............

  • Invalid Cursor Position Error

    Help!
    I am using JRun3.1 and developing a web interface to a database. In this particular screen, I am using CachedRowSet (I downloaded this and added it to jrun classpath). I am getting "Invalid cursor position" error.
    I feel there is a problem with the usebean tag.
    This is my code:
    what is wrong with this?
    <%@ page language = "java" import="java.sql.*, java.util.*, javax.sql.*, sun.jdbc.rowset.*" %>
    <%
    String indSub = request.getParameter("indSub");
    String areaname = request.getParameter("selarea");
    %>
    <jsp:useBean id="crs" class="CachedRowSet" scope="session" >
    <%
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    crs.setUrl("jdbc:odbc:asphData");
    crs.setCommand("SELECT siccode, sicdesc from siccode where sictitle = '" + indSub + "'");
    crs.execute();
    %>
    </jsp:useBean>
    <%@ include file="header2.htm" %>
    <link rel="stylesheet" href="http://localhost:8100/empData/almis.css" type="text/css">
    <br>
    <br>
    <table align="center">
    <tr><td class="moduleDesign" align="center">Employers Database</td></tr>
    </table>
    <br><br>
    <font size="+2" face="verdana sans-serif">
    <form action="employerDetail.jsp" method="post">
    <p><center><font color="Blue">Employers in the �<%= indSub %>� Industry
    <br>
    SIC Code:�<%= crs.getString("siccode") %>
    <br>State: Utah<br>
    Region: �<%=areaname %><br>
    </font></center></p>
    <p>
    <b>Description:</b>�<%= crs.getString("sicdesc") %>
    </p>
    </form>
    <jsp:include page="footer2.htm" />
    </body>
    </html>
    srajaman2

    Never mind!
    I have to issue a next() command to get to the first line of the resultset!
    srajaman2

  • b Track Text Item Change /b

    Hi all,
    I'm using Forms 6i.
    I want to track the changes in a Text item.
    I want to uncheck one check box, when the user changing the value of the particular text item. There are two ways to change the value of the text item.
         1. The user can directly enter the value.
         2. They can select the value from LOV associated with that text      item. Sometimes they will not select the value from LOV simply cancel it also.
    Which trigger shall i use.
    I cannot use Validation & navigational triggers. since the cursor may or may not going to that particular text item and also the navigational(Both Mouse & keyboard) property is no.
    Thanks in Advance.
    Aravind

    Hello,
    I cannot use Validation & navigational triggers. since the cursor may or may not going to that particular text item and also the navigational(Both Mouse & keyboard) property is no.
    So, how the end user can change the value if the focus is not in this particular item ?
    Francois

  • Issue with Tabular text item block

    Hi,
    This is the psuedo form structure. First block contains search text item and ok button.
    Second block is a multi tabular form block with text items. only last text item in column is editable by user to enter values.
    | |
    | Search text OK |
    |_____________________________|
    | multi item-tabular block |
    | text item |
    | text item |
    | text item |
    | text item |
    | text item |
    User will enter search text and hit enter and it will trigger LOV and it will display list, of which user will select one and again hit enter. then the second multi tabular block is populated with values and cursor goes to text item and user can enter values in that text item.
    Problem is cursor is blinking in the middle of text item and if I try to enter some then value is displayed from the middle of text item. I tried adding a condition check if there r any nulls and removed nulls then cursor is at the right (which is correct) but after I enter some value and hit ENTER then again cursor is staying in same text item at the middle but the cursor record has moved to next record.
    Looks something like this- cursor at the middle of text item.
    233| $.00
    I have Validate-trigger, key-next-item, key-prev-item.
    Thanks in advance
    Sai

    Thanks a lot to all who spared their time looking into my question and replying.
    This is an Oracle BUG! You can check it in Metalink.
    Whenever there is any Timer enabled(with 1ms ONLY) in the form and If user is trying to move cursor in the Multi record block using Keyboard then it will not work.
    So I changed the Timer from 1ms to 2 ms (which is does not make much difference to application) then it worked fine.
    Thanks
    Sai

  • Cursor Position inSAP Script

    How to know the Cursor Position is SAP Script

    Hi!
    There is no cursor in the SAPScript. What do you want to know exactly?
    Regards
    Tamá

  • How to control the cursor position on a text item..

    Hello,
    How can we control the cursor position programmatically on a text item.
    i.e. how do we move the cursor to home or end of the text item.
    TIA,
    Hiten

    If you have an access to metalink.oracle.com, take a look at notes:
    Note 61656.1 (V45) HIGHLIGHTING A REGION OF TEXT
    Note 131028.1 Default Highlighting in Forms (Client Server)
    and threads from metalink forum:
    531481.996 "Select_All not working in 6.0.8.25.2", 153092.995 "Text item cursor position"

  • How to position the cursor in a text

    I there a better way to position the cursor in a text portion other than trying it several times until the OS picks the right space? I know the iPad has a good way to do it by zooming in.
    Or is RIM working on it.....

    I've been pretty successful at getting the cursor to hit where I want in text entry boxes.
    Maybe some more practice will make perfect. Worked for me, until I got used to,and then again maybe my using a touchscreen smartphone, the process just comes second nature for me.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Invisible Text  item cursor in forms 4.5... How to resolve?

    In certain Text items in forms 4.5, the txt cursor is not displayed. The propertys are the same that other text items, the display propertys are:
    -Font : MS SanSerif
    -Size : 8
    -type : plain
    -weight : DemiLight
    Foreground : Black
    Background : White
    What i need to do to make this cursor visible?

    Try making the fields a bit taller - I seem to remember that there was a bug on this way back in 4.5 so it may be that you're hitting.

  • Positioning cursor in editable text-field

    It is almost impossible to position the cursor in a text-field. Even though I have very thin finger it takes me more than two tries to position the cursor. Would be nice if on a future PlayBook-update the behaviour of text-selection and cursor-positioning would be improved. Works much better on Android-devices (okey, they often have a scrollball) and iPhone.
    Check out my apps in the BlackBerry World
    Visit my developer blogs /dev/alopix and /home/alopix
    BBM Channel: C0047B612

    i dont have that issue with my fat fingers anymore with some practice. are you lightly touching or mashing while you select? i found mashing to make it less accurate. remember it is the first part that touches that makes the selection and not the top of your finger or thumb.
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • Setting the cursor at the end of a text item Forms 10g

    Is there a way in 10g forms to set the cursor at the end of the text item without highlighting the text.
    I have a text item field when I query it and tab to the field, it highlights the whole text inside the block item. Users sometimes type without thinking so, we made it set the cursor at the end.
    I know in 6i forms there was a client package (d2kwutil) that accomplished this and if I have too, I'll use it via the WebUtil. I just was not sure if there was anything in 10g forms that accomplished the same task.
    Any help is appreciated.
    Chris

    Hello,
    You can also use the good old win_api_shell.sendkeys() d2kwutil function, that works also fine with Web versions.
    For instance, in a When-New-Item-Instance trigger:
    win_api_shell.sendkeys(get_window_property('WINDOW1',window_handle),'{End}',TRUE); Francois

  • Is there a way to obtain the text item's value when the mouse pointer at?

    Hi,
    Is there a way to obtain the text item's value when the mouse pointer at? Mouse pointer may be located somewhere out of current record and even out of current block.

    There is a when-mouse-over trigger and that works fine in client-server mode for Forms 5/6/6i, but that is less indicated when deployed using Application Server.
    In that trigger you may write whatever code is necessary, restricted package procedures.
    Still, I think, for your case, if you do not have to deal with a multi-record block, you should use the HINT property for that item and set_item_property with the HINT argument for that item in order to set the hint to the item's value - this should set_item_property should be called on the when-new-record-instance .

  • 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.

  • How to get the cursor position in the text edit box?

    Hi, all.
    I want to get the cursor position in the text edit box
    to insert some data.
    But I don't know how to get.
    Can someone give me some advice?
    BestRegard.
    Miya.

    Hi Miya,
    Write your own textSelectionSuite for this.
    and use ITextTarget->GetRange() function.
    Thanks and Regards,
    Yopangjo.

Maybe you are looking for