Precisely Speaking
May 18, 2012, 03:45:26 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: So what's news with you?  Tell us about it in "Getting To Know You"!
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Any Startup Options for INVOKE.TEXT.ED??  (Read 4644 times)
Tom Pellitieri
Rock Star
*****
Posts: 170


Tom Pellitieri - Toledo, Ohio


« on: September 03, 2009, 10:21:41 AM »

I've had a request to have certain note fields jump to the last line when the screen opens.  The field uses INVOKE.TEXT.ED for editing.  Is there an option to tell it to jump to the end? 

I know in a regular MV entry I can set RTN.FLAG to I0.lastmv, but how can I do this at the start of INVOKE.TEXT.ED?

--Tom
Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« Reply #1 on: September 03, 2009, 10:40:00 AM »

That's an interesting question.  All INVOKE.TEXT.ED does is this one paragraph line:

IF NOT(@GUI) THEN DATA '@23'

There's an edit key #21 that supposedly does a "Bottom of Text" but SB+ doesn't properly handle data stacking function keys while in INVOKE.TEXT.ED.  So... if there's a way to do it, I can't think of what it might be.  In the interim, however, they should be able to press F7 and enter 999 to go to the bottom within 5 keystrokes.  Not perfect, of course, but possible.
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
Tom Pellitieri
Rock Star
*****
Posts: 170


Tom Pellitieri - Toledo, Ohio


« Reply #2 on: September 03, 2009, 11:17:27 AM »

...they should be able to press F7 and enter 999 to go to the bottom within 5 keystrokes.  Not perfect, of course, but possible.

Yeah... well... that's what they want me to have them avoid.  Too often they miss the F7 and wind up adding 999 to the text field...


--Tom
Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« Reply #3 on: September 03, 2009, 11:24:01 AM »

Well, it's a goofy way around the issue - admittedly - but why not program their F12 key in SBClient to send the characters?
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
Tom Pellitieri
Rock Star
*****
Posts: 170


Tom Pellitieri - Toledo, Ohio


« Reply #4 on: September 03, 2009, 11:42:29 AM »

why not program their F12 key in SBClient to send the characters?

That's a bit difficult when they use AccuTerm  Grin

I'll try a few things and let you know.

--Tom
Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« Reply #5 on: September 03, 2009, 11:48:56 AM »

Hey, that's a VERY good point!  But Accuterm should have ... something like that, right?
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
Tom Pellitieri
Rock Star
*****
Posts: 170


Tom Pellitieri - Toledo, Ohio


« Reply #6 on: September 03, 2009, 12:04:19 PM »

Okay... I tried setting up my own version of INVOKE.TEXT.ED.  I tried:

DATA "@23","@21"
DATA "@23","@37","999"

and a few other permutations.  No luck.

AccuTerm has no keystrokes defined for Ctrl+F7, so I changed that to match <F7>999<CR> - that let me use Ctrl+F7 to jump to the end once I was in the field.

Now, I just have to get it approved by the powers that be....

Thanks for the suggestion!
Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« Reply #7 on: September 03, 2009, 12:12:09 PM »

Glad it's a workable plan.  Thank YOU for not laughing me out of the sandbox! Smiley
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
Tom Pellitieri
Rock Star
*****
Posts: 170


Tom Pellitieri - Toledo, Ohio


« Reply #8 on: September 04, 2009, 11:38:56 AM »

Glad it's a workable plan.

Not only workable, but with a little extra research, I was able to write an SB+ Process to configure AccuTerm and save the settings!
Logged
Tom Pellitieri
Rock Star
*****
Posts: 170


Tom Pellitieri - Toledo, Ohio


« Reply #9 on: September 08, 2009, 06:11:10 AM »

I found another alternative, since some of our users still use Link MC5 terminals.

In /TERM.DEFN under F7-Keys+, I was able to define a key for Bottom of Text (@21).  In the Edit Key Function column, I specified "21", and then used F3 followed by my chosen Function Key to specify a keystroke to use
Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« Reply #10 on: September 08, 2009, 06:16:46 AM »

Clever!  I've never been able to get that Keys+ thing to work; what's the secret?
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
Tom Pellitieri
Rock Star
*****
Posts: 170


Tom Pellitieri - Toledo, Ohio


« Reply #11 on: September 08, 2009, 10:43:35 AM »

I've never been able to get that Keys+ thing to work; what's the secret?

Umm.. just what I said in my previous post?

Here are the full keystrokes (where each line represents a carriage return, and <Fx> is a function key) to set F11 to be End of Text:

/TERM.DEFN
termid
<F7>arrow down21
<F3><F11>F11 Key
<F2><F2>

Then, log off to reload the Terminal Definition.  Now, F11 jumps to End of Text after INVOKE.TEXT.ED.

The Keys+ screen shows the following for my terminal definition:

Edit Key Function     Decimal ASCII Val  Key Description
22 Tab (Skip MV Set)  15                 Shift-Down Arrow
21 Bottom of Text     1 74 13            F11 Key





Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« Reply #12 on: September 08, 2009, 11:10:42 AM »

Huh.  Wonder what I've been doing wrong all these years?
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!