Passing Parameters to a subscreen
Shaun Dimmick
sdimmick@milk.org
Tue, 16 Mar 2004 13:21:34 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_000F_01C40B59.9ACA2370
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: 7bit
Thanks everyone who replied, got it sorted out. I'm pretty much fresh out
of college, and having to learn powerhouse on the job as I go. Using
passing and receiving did the trick.
_____
From: powerh-l-admin@lists.sowder.com
[mailto:powerh-l-admin@lists.sowder.com] On Behalf Of Guy Werry
Sent: Tuesday, March 16, 2004 9:28 AM
To: powerh-l@lists.sowder.com
Subject: RE: Passing Parameters to a subscreen
Shaun,
When running a subscreen you can pass fields: "subscreen myscreen mode e
passing x, y, z". So, it would just be a matter of defining a field in both
menus and the subscreen and passing the menu name (or whatever) down and
using it in your select.
In the subscreen you have "screen mysubscreen receiving x, y, z". Then in
the select you can code:
FILE SOMEFILE DETAIL NOITEMS OCCURS 2
SELECT IF TYPE = "1" AND X = "MENU1" &
OR TYPE="2" AND X = "MENU2"
It's nice to see people who are concerned about making applications robust.
Happy coding!
Guy.
-----Original Message-----
From: Shaun Dimmick [mailto:sdimmick@milk.org]
Sent: March 22, 2004 8:14 AM
To: powerh-l@lists.sowder.com
Subject: Passing Parameters to a subscreen
Hi, I was wondering if there is a way to pass information to a subscreen in
qdesign. Right now I have 2 different users using the same quick screen,
but accessing different sets of records, I'm using the LOGONID function to
differentiate between the 2 users.
FILE SOMEFILE DETAIL NOITEMS OCCURS 2
SELECT IF TYPE = "1" AND D_LOGONID = "BOB" &
OR TYPE="2" AND D_LOGONID= "JOE"
Type is a field in somefile
Each user is coming to this screen from a different menu, anyone know if
there is a way to differentiate what menu the program was called from?
Perhaps pass a parameter to the subscreen to let it know what menu it was
called from. I'd rather not make it logon specific so that if "Bob" or
"Joe" goes on vacation, someone else can
Still do their work.
------=_NextPart_000_000F_01C40B59.9ACA2370
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" =
name=3D"PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:r_ansi;
panose-1:2 11 6 9 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:Arial;
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Thanks everyone who replied, got it =
sorted
out. I’m pretty much fresh out of college, and having to =
learn powerhouse
on the job as I go. Using passing and receiving did the =
trick.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>
<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>
</span></font></div>
<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>
powerh-l-admin@lists.sowder.com [mailto:powerh-l-admin@lists.sowder.com] =
<b><span
style=3D'font-weight:bold'>On Behalf Of </span></b>Guy Werry<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Tuesday, March 16, =
2004 9:28
AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> <st1:PersonName =
w:st=3D"on">powerh-l@lists.sowder.com</st1:PersonName><br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> RE: Passing =
Parameters to
a subscreen</span></font><o:p></o:p></p>
</div>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:blue'>Shaun,</span></font><o:p></o:p></p>
</div>
<div>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:blue'>When running a subscreen you can =
pass
fields: "subscreen myscreen mode e passing x, y, z". So, =
it
would just be a matter of defining a field in both menus and the =
subscreen and
passing the menu name (or whatever) down and using it in your =
select.</span></font><o:p></o:p></p>
</div>
<div>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:blue'>In the subscreen you have =
"screen
mysubscreen receiving x, y, z". Then in the select you can =
code:</span></font><o:p></o:p></p>
</div>
<div>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"r_ansi"><span
style=3D'font-size:10.0pt;font-family:r_ansi;color:blue'>FILE SOMEFILE =
DETAIL
NOITEMS OCCURS 2<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"r_ansi"><span
style=3D'font-size:10.0pt;font-family:r_ansi;color:blue'> =
SELECT IF
TYPE =3D "1" AND X =3D "MENU1" =
&<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"r_ansi"><span
style=3D'font-size:10.0pt;font-family:r_ansi;color:blue'> &nbs=
p;
OR TYPE=3D"2" AND X =3D =
"MENU2"</span></font><o:p></o:p></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:blue'>It's nice to see people who are =
concerned
about making applications robust.</span></font><o:p></o:p></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> <o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:blue'>Happy =
coding!</span></font><o:p></o:p></p>
<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:blue'> =
Guy.</span></font><o:p></o:p></p>
</div>
<blockquote =
style=3D'margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'>
<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original =
Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> Shaun Dimmick =
[mailto:<st1:PersonName
w:st=3D"on">sdimmick@milk.org</st1:PersonName>]<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> March 22, 2004 8:14 =
AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> <st1:PersonName =
w:st=3D"on">powerh-l@lists.sowder.com</st1:PersonName><br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> Passing =
Parameters to a
subscreen</span></font><o:p></o:p></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hi, I was wondering if there is a way to pass =
information to
a subscreen in qdesign. Right now I have 2 different users using =
the same
quick screen, but accessing different sets of records, I’m =
using
the LOGONID function to differentiate between the 2 users. =
<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"r_ansi"><span =
style=3D'font-size:10.0pt;
font-family:r_ansi'>FILE SOMEFILE DETAIL NOITEMS OCCURS =
2<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"r_ansi"><span =
style=3D'font-size:10.0pt;
font-family:r_ansi'> SELECT IF TYPE =3D "1" AND =
D_LOGONID =3D
"BOB" &<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"r_ansi"><span =
style=3D'font-size:10.0pt;
font-family:r_ansi'> OR
TYPE=3D"2" AND D_LOGONID=3D =
"JOE"<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"r_ansi"><span =
style=3D'font-size:10.0pt;
font-family:r_ansi'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Type is a field in =
somefile<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"r_ansi"><span =
style=3D'font-size:10.0pt;
font-family:r_ansi'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Each user is coming to this screen from a different =
menu,
anyone know if there is a way to differentiate what menu the =
program was
called from? Perhaps pass a parameter to the subscreen to let it =
know
what menu it was called from. I’d rather not make it logon =
specific
so that if “Bob” or “Joe” goes on vacation, =
someone
else can<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Still do their work.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"r_ansi"><span =
style=3D'font-size:10.0pt;
font-family:r_ansi'> =
</span></font><o:p></o:p></p>
</blockquote>
</div>
</body>
</html>
------=_NextPart_000_000F_01C40B59.9ACA2370--