Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Window Sub-file w/ function keys.

1,047 views
Skip to first unread message

rick dewitt

unread,
Sep 24, 1996, 3:00:00 AM9/24/96
to

Hello everyone,

What I'm trying to accomplish (with absolutely no success) is to get a
display record with just function keys on it to display below the sub-file
in a window! I've tried creating two windows (one WDWSFL and one WINDOW)
and writing the WINDOW then EXFMT the WDWSFL, like I would with a "reqular"
sub-file, but for windows this doesn't work? (or am I missing something) I
tried the OVERLAY and ASSUME keywords (KEEP won't work with windows) and
still I can only "see" the window sub-file and not my function key
definitions. Has anyone else had this problem and would you please let me
know how you solved it!!!!

Thank you....


-Rick

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Home :
Voice :(207)846-1455
Fax :call me first
e-mail :ri...@server.seis.com
web :http://www.seis.com/~rickd
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Work :
Voice :(207)729-3380 ext. 16
Fax :(207)729-2860
e-mail:ma...@ime.net
web :http://www.ime.net/mason

MP @ Comp Dev Dept

unread,
Sep 25, 1996, 3:00:00 AM9/25/96
to

ri...@seis.com (rick dewitt) wrote:


>Hello everyone,

>What I'm trying to accomplish (with absolutely no success) is to get a
>display record with just function keys on it to display below the sub-file
>in a window! I've tried creating two windows (one WDWSFL and one WINDOW)
>and writing the WINDOW then EXFMT the WDWSFL, like I would with a "reqular"
>sub-file, but for windows this doesn't work? (or am I missing something) I
>tried the OVERLAY and ASSUME keywords (KEEP won't work with windows) and
>still I can only "see" the window sub-file and not my function key
>definitions. Has anyone else had this problem and would you please let me
>know how you solved it!!!!
>Thank you....
>-Rick

Convoluted possible answer coming up ...

Try creating an empty WINDOW for the background, then create one WDWSFL (header)
and a SFL (subfile) controlled by this, and then one other WINDOW for your
function keys (footer). These should all have the empty window as the referenced
window
OVERLAY should be on for the header, subfile and footer records.

WRITE the background record, WRITE the header (& sfl), WRITE the footer and then
READ the header.

The function key indicators should be active on the header for them to work.

HTH
MP @ Comp Dev Dept
http://users.colloquium.co.uk/~WALK_GEO/whome.htm
mailto:WALK...@cqm.co.uk


Igor Birman

unread,
Sep 25, 1996, 3:00:00 AM9/25/96
to

rick dewitt wrote:
>
> Hello everyone,
>
> What I'm trying to accomplish (with absolutely no success) is to get a
> display record with just function keys on it to display below the sub-file
> in a window! I've tried creating two windows (one WDWSFL and one WINDOW)
> and writing the WINDOW then EXFMT the WDWSFL, like I would with a "reqular"
> sub-file, but for windows this doesn't work? (or am I missing something) I
> tried the OVERLAY and ASSUME keywords (KEEP won't work with windows) and
> still I can only "see" the window sub-file and not my function key
> definitions. Has anyone else had this problem and would you please let me
> know how you solved it!!!!
>
> Thank you....

Rick,

Put the OVERLAY in the SFLCTL record, put the FKEYS in the WINDOW
record. In the RPG, WRITE the WINDOW record, and then EXFMT the SFLCTL
record. Let me know if that helps.

Igor

Kendall F. Stratton III

unread,
Sep 25, 1996, 3:00:00 AM9/25/96
to

>What I'm trying to accomplish (with absolutely no success) is to
>get a
>display record with just function keys on it to display below the
>sub-file
>in a window! I've tried creating two windows (one WDWSFL and one
>WINDOW)
>and writing the WINDOW then EXFMT the WDWSFL, like I would with a
>"reqular"
>sub-file, but for windows this doesn't work? (or am I missing
>something) I
>tried the OVERLAY and ASSUME keywords (KEEP won't work with
>windows) and
>still I can only "see" the window sub-file and not my function key
>definitions. Has anyone else had this problem and would you please
>let me
>know how you solved it!!!!
>
>Thank you....
>
>
I don't think that it can be done!!! Been there, Tried everything! I had to create a regular screen with x number of each field and make it look like a subfile. I wanted to create a *window* with the bottom border having text in it (<F1>-Help <F7>-End, etc) and could only do it this way. If you find out how to put text in your windows borders, "Please" let me know.

Thanks!

Kendall F. Stratton III
Fort Fairfield, Maine
kfst...@kfsthree.sdi.agate.net

Scott Newell

unread,
Sep 26, 1996, 3:00:00 AM9/26/96
to

Rick,

You have to designate one window as the "primary" window and any other
screen to appear in the window has to reference the "primary". For
example, if SFCTL is the subfile control, SFDTL is the subfile detail, and
CMDKEY is the command key screen.....I would define SFCTL as the "primary"
window and when you define CMDKEY as a window, you have the option to
either define the window parameters or reference another window. At that
point, you reference SFCTL.

Does this make sense? If not, I'd be happy to send code examples.

Scott Newell
sdne...@flash.net
Oasis Technologies
(405) 948-6500 X36


rick dewitt <ri...@seis.com> wrote in article
<Dy9Fs...@server.nlbbs.com>...
>
> Hello everyone,


>
> What I'm trying to accomplish (with absolutely no success) is to get a
> display record with just function keys on it to display below the
sub-file
> in a window! I've tried creating two windows (one WDWSFL and one WINDOW)

> and writing the WINDOW then EXFMT the WDWSFL, like I would with a
"reqular"
> sub-file, but for windows this doesn't work? (or am I missing something)
I
> tried the OVERLAY and ASSUME keywords (KEEP won't work with windows) and
> still I can only "see" the window sub-file and not my function key
> definitions. Has anyone else had this problem and would you please let
me
> know how you solved it!!!!
>
> Thank you....
>
>

José Hipólito

unread,
Sep 27, 1996, 3:00:00 AM9/27/96
to

We just had this problem today and it can be done. There are 2
different ways to do it, depending on the information shown in the
screen:

1. You don't have a header or title in the window:
- You create only your WDWSFL and WDWCTL and your WDWCTL will be the
lower part of the screen, with your function keys.

2. You have a header or title in the window:
- You need your WDWSFL, WDWCTL and a normal WINDOW, this one with the
keys.

In both cases you have to be aware that the window needs a line for
error messages, that has to be the last one in the window. Another
thing is that apparently the AS400 does not like when you let blank
lines between your constant fields for the keys and the line for error
messages, so you have to put your text just in the second line from the
bottom of the window.

In our case wi did not have any blank lines in the window but I think it
can be done.

To give you an idea how was the subfile look at the following design:

.................................................
: Title :
: ______________________________________ :
: ______________________________________ :
: ______________________________________ :
: ______________________________________ :
: Bottom :
: F3=Exit :
: Error messages line :
:...............................................:

We put OVERLAY yes in both WDWCTL and WINDOW.

I hope it can help.

Regards.

Kendall F. Stratton III wrote:
>
> >What I'm trying to accomplish (with absolutely no success) is to
> >get a
> >display record with just function keys on it to display below the
> >sub-file
> >in a window! I've tried creating two windows (one WDWSFL and one
> >WINDOW)
> >and writing the WINDOW then EXFMT the WDWSFL, like I would with a
> >"reqular"
> >sub-file, but for windows this doesn't work? (or am I missing
> >something) I
> >tried the OVERLAY and ASSUME keywords (KEEP won't work with
> >windows) and
> >still I can only "see" the window sub-file and not my function key
> >definitions. Has anyone else had this problem and would you please
> >let me
> >know how you solved it!!!!
> >
> >Thank you....
> >
> >

rick dewitt

unread,
Sep 28, 1996, 3:00:00 AM9/28/96
to

In article <01bbabbf$c46865e0$13ccc2d0@dno007>,

"Scott Newell" <sdne...@flash.net> wrote:
>Rick,
>
>You have to designate one window as the "primary" window and any other
>screen to appear in the window has to reference the "primary". For
>example, if SFCTL is the subfile control, SFDTL is the subfile detail, and
>CMDKEY is the command key screen.....I would define SFCTL as the "primary"
>window and when you define CMDKEY as a window, you have the option to
>either define the window parameters or reference another window. At that
>point, you reference SFCTL.


My thanks go to both Scott Newell and Thomas Chamberlain whose solutions
to the problem arrived at "the same time". Filling the referenced window
parameter (instead of the window position and size parameters) does exactly
what I wanted. Thank you again.

Matt Sargent

unread,
Oct 1, 1996, 3:00:00 AM10/1/96
to

>In both cases you have to be aware that the window needs a line for
>error messages, that has to be the last one in the window. Another

No, the error message line has be optional for some time now. All you
have to do is specify *NOMSGLIN as an option of the WINDOW() keyword.
When you do this, your error messages will appear at the bottom of the
screen, instead of at the bottom of the window.

_____________________________________________________________________
"But there must be something more to death than surfing all the time"
- Dar Williams


Mark Russo

unread,
Oct 10, 1996, 3:00:00 AM10/10/96
to

Igor Birman <bir...@ix.netcom.com> wrote:

>rick dewitt wrote:

>> What I'm trying to accomplish (with absolutely no success) is to get a
>> display record with just function keys on it to display below the sub-file
>> in a window! I've tried creating two windows (one WDWSFL and one WINDOW)
>> and writing the WINDOW then EXFMT the WDWSFL, like I would with a "reqular"
>> sub-file, but for windows this doesn't work? (or am I missing something) I
>> tried the OVERLAY and ASSUME keywords (KEEP won't work with windows) and
>> still I can only "see" the window sub-file and not my function key
>> definitions. Has anyone else had this problem and would you please let me
>> know how you solved it!!!!

>Put the OVERLAY in the SFLCTL record, put the FKEYS in the WINDOW


>record. In the RPG, WRITE the WINDOW record, and then EXFMT the SFLCTL
>record. Let me know if that helps.

Actually, if I'm reading the original message correctly, you need to
define the window in the format with the function keys, and then in
the subfile control format, reference the window from the first
format. So for instance, if your function key format was FMT1, then
your subfile control format would contain the window keyword as
WINDOW(FMT1). Be sure to specify OVERLAY in your control format, and
write it after you write your function key format (FMT1).

--Mark Russo (mru...@infinet.com)
______________________________________________________________________
| | |
| Mark Russo | I wish I were a brewer's horse; |
| | Then when the coast was clear, |
| mru...@infinet.com | I'd turn my head where tail should be |
| | And drink up all the beer. |
| | |
| | - Unknown author |
| | 19th century Scottish poem |
|______________________________|_______________________________________|


Orangtang

unread,
Oct 10, 1996, 3:00:00 AM10/10/96
to

Yes...it can be done...You need to create a separate format for the
function keys and reference it with the window format..if you need more
details..I can send...Ron

0 new messages