Can PowerHouse "catch" an arrow key stroke?
Fry, Mark
Mark.Fry@cognos.com
Fri, 16 Jul 2004 10:24:56 +0100
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C46B16.C2E180F6
Content-Type: text/plain
Hi Martijn,
If you remap the cursor keys [and you'd need to do all four (up, down, left,
right) for consistency in the screen] to be the cursor movement plus a
carriage return, this gives you another problem in your menu screen. I am
assuming that the user expects to highlight an option (seeing the relevant
description each time) then hit the Enter key if they want to select that
option? In that case you need to be a bit clever with the designer
procedure behind the cluster field, because now you want the carriage return
to do two different things - display the description first time, and call
the option second time.
The way I'd approach this would be to declare a temporary field in the
screen to store the value of occurrence, and use a condition in the designer
procedure to check the value in the temporary.
Eg
Temp t-occ num*4 initial 9999 reset at startup
procedure designer 01
begin
if t-occ ne occurrence
then
begin
let t-occ = occurrence
display <your description field>
end
else
run screen <your screen to be called>
end
Best regards,
Mark Fry
Mark.Fry@Cognos.com
-----Original Message-----
From: powerh-l-admin@lists.sowder.com
[mailto:powerh-l-admin@lists.sowder.com] On Behalf Of Martijn Nabben
(Fairfax)
Sent: 15 July 2004 22:19
To: powerh-l@lists.sowder.com
Subject: RE: Can PowerHouse "catch" an arrow key stroke?
Thanks for this!
How can I remap the arrow key? Is that a TIC - FM (fieldmarking) setting?
Cheers,
Martijn
-----Original Message-----
From: Peter Bateman [mailto:pfbcs@hotmail.com]
Sent: Friday, 16 July 2004 6:11
To: powerh-l@lists.sowder.com
Subject: RE: Can PowerHouse "catch" an arrow key stroke?
Hi Martijn Nabben:
You could try to remap the arrow key to be arrow key plus carriage return.
This would at least give you access to the occurence with the key stroke.
I am not sure but since your description field is outside the occuring
cluster you are seeing just the first. DESCRIPTION is a PowerHouse reserved
word, therefore to ensure that DESCRIPTION is referring to the data item I
used the % in front of the identifier.
You could create a define item
Define d_Desc character * 60 = %DESCRIPTION of FILE_A
Field d_Desc
Procedure designer 01
begin
display FIELD_1
display d_Desc
end
Regards,
Peter Bateman
_________________________________________________________________
Free yourself from those irritating pop-up ads with MSn Premium. Get 2months
FREE*
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=htt
p://hotmail.com/enca&HL=Market_MSNIS_Taglines
= = = = = = = = = = = = = = = = = = = = = = = = = = = = Mailing list:
powerh-l@lists.sowder.com
Subscribe: "subscribe" in message body to powerh-l-request@lists.sowder.com
Unsubscribe: "unsubscribe <password>" in message body to
powerh-l-request@lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = Mailing list:
powerh-l@lists.sowder.com
Subscribe: "subscribe" in message body to powerh-l-request@lists.sowder.com
Unsubscribe: "unsubscribe <password>" in message body to
powerh-l-request@lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.
This message may contain privileged and/or confidential information. If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so. Thank you.
------_=_NextPart_001_01C46B16.C2E180F6
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2657.73">
<TITLE>RE: Can PowerHouse "catch" an arrow key =
stroke?</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2>Hi Martijn,</FONT>
</P>
<P><FONT SIZE=3D2>If you remap the cursor keys [and you'd need to do =
all four (up, down, left, right) for consistency in the screen] to be =
the cursor movement plus a carriage return, this gives you another =
problem in your menu screen. I am assuming that the user expects =
to highlight an option (seeing the relevant description each time) then =
hit the Enter key if they want to select that option? In that =
case you need to be a bit clever with the designer procedure behind the =
cluster field, because now you want the carriage return to do two =
different things - display the description first time, and call the =
option second time.</FONT></P>
<P><FONT SIZE=3D2>The way I'd approach this would be to declare a =
temporary field in the screen to store the value of occurrence, and use =
a condition in the designer procedure to check the value in the =
temporary.</FONT></P>
<P><FONT SIZE=3D2>Eg</FONT>
</P>
<P><FONT SIZE=3D2>Temp t-occ num*4 initial 9999 reset at startup</FONT>
</P>
<P><FONT SIZE=3D2>procedure designer 01</FONT>
<BR><FONT SIZE=3D2>begin</FONT>
<BR><FONT SIZE=3D2> if t-occ ne occurrence</FONT>
<BR><FONT SIZE=3D2> then</FONT>
<BR><FONT SIZE=3D2> begin</FONT>
<BR><FONT SIZE=3D2> let t-occ =3D occurrence</FONT>
<BR><FONT SIZE=3D2> display <your description =
field></FONT>
<BR><FONT SIZE=3D2> end</FONT>
<BR><FONT SIZE=3D2> else</FONT>
<BR><FONT SIZE=3D2> run screen <your screen to be =
called></FONT>
<BR><FONT SIZE=3D2>end</FONT>
</P>
<P><FONT SIZE=3D2>Best regards,</FONT>
</P>
<P><FONT SIZE=3D2>Mark Fry</FONT>
<BR><FONT SIZE=3D2>Mark.Fry@Cognos.com</FONT>
</P>
<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: powerh-l-admin@lists.sowder.com [<A =
HREF=3D"mailto:powerh-l-admin@lists.sowder.com">mailto:powerh-l-admin@li=
sts.sowder.com</A>] On Behalf Of Martijn Nabben (Fairfax)</FONT>
<BR><FONT SIZE=3D2>Sent: 15 July 2004 22:19</FONT>
<BR><FONT SIZE=3D2>To: powerh-l@lists.sowder.com</FONT>
<BR><FONT SIZE=3D2>Subject: RE: Can PowerHouse "catch" an =
arrow key stroke?</FONT>
</P>
<P><FONT SIZE=3D2>Thanks for this!</FONT>
</P>
<P><FONT SIZE=3D2>How can I remap the arrow key? Is that a TIC - FM =
(fieldmarking) setting?</FONT>
</P>
<P><FONT SIZE=3D2>Cheers,</FONT>
<BR><FONT SIZE=3D2>Martijn</FONT>
</P>
<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Peter Bateman [<A =
HREF=3D"mailto:pfbcs@hotmail.com">mailto:pfbcs@hotmail.com</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Friday, 16 July 2004 6:11</FONT>
<BR><FONT SIZE=3D2>To: powerh-l@lists.sowder.com</FONT>
<BR><FONT SIZE=3D2>Subject: RE: Can PowerHouse "catch" an =
arrow key stroke?</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=3D2>Hi Martijn Nabben:</FONT>
</P>
<P><FONT SIZE=3D2>You could try to remap the arrow key to be arrow key =
plus carriage return.</FONT>
<BR><FONT SIZE=3D2>This would at least give you access to the occurence =
with the key stroke.</FONT>
</P>
<P><FONT SIZE=3D2>I am not sure but since your description field is =
outside the occuring cluster you are seeing just the first. DESCRIPTION =
is a PowerHouse reserved word, therefore to ensure that DESCRIPTION is =
referring to the data item I used the % in front of the =
identifier.</FONT></P>
<P><FONT SIZE=3D2>You could create a define item</FONT>
</P>
<P><FONT SIZE=3D2>Define d_Desc character * 60 =3D %DESCRIPTION of =
FILE_A</FONT>
</P>
<P><FONT SIZE=3D2>Field d_Desc</FONT>
</P>
<P><FONT SIZE=3D2>Procedure designer 01</FONT>
<BR><FONT SIZE=3D2>begin</FONT>
<BR><FONT SIZE=3D2> display FIELD_1</FONT>
<BR><FONT SIZE=3D2> display d_Desc</FONT>
<BR><FONT SIZE=3D2>end</FONT>
</P>
<P><FONT SIZE=3D2>Regards,</FONT>
<BR><FONT SIZE=3D2>Peter Bateman</FONT>
</P>
<P><FONT =
SIZE=3D2>_______________________________________________________________=
__</FONT>
<BR><FONT SIZE=3D2>Free yourself from those irritating pop-up ads with =
MSn Premium. Get 2months</FONT>
</P>
<P><FONT SIZE=3D2>FREE*</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://join.msn.com/?pgmarket=3Den-ca&page=3Dbyoa/prem&xAPID=3D1=
994&DI=3D1034&SU=3Dhtt" =
TARGET=3D"_blank">http://join.msn.com/?pgmarket=3Den-ca&page=3Dbyoa/prem=
&xAPID=3D1994&DI=3D1034&SU=3Dhtt</A></FONT>
<BR><FONT =
SIZE=3D2>p://hotmail.com/enca&HL=3DMarket_MSNIS_Taglines</FONT>
</P>
<P><FONT SIZE=3D2>=3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =
=3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D Mailing =
list: powerh-l@lists.sowder.com</FONT>
<BR><FONT SIZE=3D2>Subscribe: "subscribe" in message body to =
powerh-l-request@lists.sowder.com</FONT>
<BR><FONT SIZE=3D2>Unsubscribe: "unsubscribe =
<password>" in message body to =
powerh-l-request@lists.sowder.com <A =
HREF=3D"http://lists.sowder.com/mailman/listinfo/powerh-l" =
TARGET=3D"_blank">http://lists.sowder.com/mailman/listinfo/powerh-l</A><=
/FONT></P>
<P><FONT SIZE=3D2>This list is closed, thus to post to the list you =
must be a subscriber.</FONT>
<BR><FONT SIZE=3D2>=3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =
=3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D Mailing =
list: powerh-l@lists.sowder.com</FONT>
<BR><FONT SIZE=3D2>Subscribe: "subscribe" in message body to =
powerh-l-request@lists.sowder.com</FONT>
<BR><FONT SIZE=3D2>Unsubscribe: "unsubscribe =
<password>" in message body to =
powerh-l-request@lists.sowder.com <A =
HREF=3D"http://lists.sowder.com/mailman/listinfo/powerh-l" =
TARGET=3D"_blank">http://lists.sowder.com/mailman/listinfo/powerh-l</A><=
/FONT></P>
<P><FONT SIZE=3D2>This list is closed, thus to post to the list you =
must be a subscriber.</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=3D2>This message may contain privileged and/or =
confidential information. If you have received this e-mail in =
error or are not the intended recipient, you may not use, copy, =
disseminate or distribute it; do not open any attachments, delete it =
immediately from your system and notify the sender promptly by e-mail =
that you have done so. Thank you.</FONT></P>
</BODY>
</HTML>
------_=_NextPart_001_01C46B16.C2E180F6--