Solved

How to move cursor to the end of a field (not begining)?

Posted on 2011-02-17
3
1,097 Views
Last Modified: 2013-12-18
Here is a piece of my lotus script code when a button is pressed:
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument

uidoc.EditMode = True
Call uidoc.GoToField( "fieldName")

Open in new window

It puts the cursor in the field that will be edited. The problem is that the cursor goes to the begining of the field. When the field is quite long, it takes time to scroll down to the end of the field when some one is trying to add some text to the field. Is there a way to change the code and make the cursor go to the end of the fiield?
0
Comment
Question by:dominoPgr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 22

Accepted Solution

by:
mbonaci earned 500 total points
ID: 34922071
How about using @Formula?

If it's not the last field on your form, first position the cursor in the field to the right/bellow of your field and then use EditLeft to simulate pressing left arrow key on a keyboard:
@Command( [EditGotoField] ; "TheNextFieldName" )
@Command( [EditLeft] ; count )

Open in new window


If it's the last field on your form (the same as pressing Ctrl+End):
@Command( [EditBottom] )

Open in new window



You can try to do the same with LotusScript using:
    Call notesUIDocument.GotoBottom
    Call notesUIDocument.GotoField("fieldName")
    Call notesUIDocument.GotoPrevField
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 34924690
If that doesn't work, or you don't want to rely on the visibility of other fields, try this one:
http://benpoole.com/articles/sendkeys

Call uidoc.GoToField( "fieldName")
PushKeys("{^End}")

I might have the syntax wrong, so please check.
0
 

Author Closing Comment

by:dominoPgr
ID: 34928043
Using formula command EditLeft worked. Thank you!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question