Passing Parameters to a subscreen

Ian Wedge ian.wedge@ramesys.com
Fri, 19 Mar 2004 09:40:27 -0000


This is a multi-part message in MIME format.

------=_NextPart_000_0111_01C40D96.35D08510
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

What platform are you using Shaun? I sometimes use setsystemval and
getsystemval as a means of passing parameters on Unix based platforms.

Ian Wedge
  -----Original Message-----
  From: powerh-l-admin@lists.sowder.com
[mailto:powerh-l-admin@lists.sowder.com]On Behalf Of Shaun Dimmick
  Sent: 16 March 2004 18:22
  To: powerh-l@lists.sowder.com
  Subject: RE: Passing Parameters to a subscreen


  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_0111_01C40D96.35D08510
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=3D"http://www.w3.org/TR/REC-html40" xmlns:v =3D=20
"urn:schemas-microsoft-com:vml" xmlns:o =3D=20
"urn:schemas-microsoft-com:office:office" xmlns:w =3D=20
"urn:schemas-microsoft-com:office:word" xmlns:st1 =3D=20
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR><!--[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 name=3D"PersonName"=20
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"></o:SmartTagT=
ype><!--[if !mso]>
<STYLE>st1\:* {
	BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
	font-family: Tahoma;
}
@font-face {
	font-family: r_ansi;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
	COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal
}
SPAN.EmailStyle18 {
	COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
	page: Section1
}
</STYLE>
</HEAD>
<BODY lang=3DEN-US vLink=3Dpurple link=3Dblue>
<DIV><SPAN class=3D717333109-19032004><FONT face=3DArial size=3D2>What =
platform are=20
you using Shaun? I sometimes use setsystemval and getsystemval as a =
means of=20
passing parameters on Unix based platforms.</FONT></SPAN></DIV>
<DIV><SPAN class=3D717333109-19032004><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D717333109-19032004><FONT face=3DArial size=3D2>Ian=20
Wedge</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B>=20
  powerh-l-admin@lists.sowder.com =
[mailto:powerh-l-admin@lists.sowder.com]<B>On=20
  Behalf Of </B>Shaun Dimmick<BR><B>Sent:</B> 16 March 2004 =
18:22<BR><B>To:</B>=20
  powerh-l@lists.sowder.com<BR><B>Subject:</B> RE: Passing Parameters to =
a=20
  subscreen<BR><BR></FONT></DIV>
  <DIV class=3DSection1>
  <P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thanks =
everyone who=20
  replied, got it sorted out. &nbsp;I&#8217;m pretty much fresh out of =
college, and=20
  having to learn powerhouse on the job as I go. &nbsp;Using passing and =

  receiving did the trick.<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <DIV>
  <DIV class=3DMsoNormal style=3D"TEXT-ALIGN: center" =
align=3Dcenter><FONT=20
  face=3D"Times New Roman" size=3D3><SPAN style=3D"FONT-SIZE: 12pt">
  <HR tabIndex=3D-1 align=3Dcenter width=3D"100%" SIZE=3D2>
  </SPAN></FONT></DIV>
  <P class=3DMsoNormal><B><FONT face=3DTahoma size=3D2><SPAN=20
  style=3D"FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: =
Tahoma">From:</SPAN></FONT></B><FONT=20
  face=3DTahoma size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Tahoma">=20
  powerh-l-admin@lists.sowder.com =
[mailto:powerh-l-admin@lists.sowder.com]=20
  <B><SPAN style=3D"FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Guy=20
  Werry<BR><B><SPAN style=3D"FONT-WEIGHT: bold">Sent:</SPAN></B> =
Tuesday, March=20
  16, 2004 9:28 AM<BR><B><SPAN style=3D"FONT-WEIGHT: =
bold">To:</SPAN></B>=20
  <st1:PersonName=20
  w:st=3D"on">powerh-l@lists.sowder.com</st1:PersonName><BR><B><SPAN=20
  style=3D"FONT-WEIGHT: bold">Subject:</SPAN></B> RE: Passing Parameters =
to a=20
  subscreen</SPAN></FONT><o:p></o:p></P></DIV>
  <P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
  style=3D"FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <DIV>
  <P class=3DMsoNormal><FONT face=3DArial color=3Dblue size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: =
Arial">Shaun,</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
  style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal><FONT face=3DArial color=3Dblue size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">When =
running a=20
  subscreen you can pass fields: "subscreen myscreen mode e passing x, =
y,=20
  z".&nbsp; So, it would just be a matter of defining a field in both =
menus and=20
  the subscreen and passing the menu name (or whatever) down and using =
it in=20
  your select.</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
  style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal><FONT face=3DArial color=3Dblue size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">In the =
subscreen you=20
  have "screen mysubscreen receiving x, y, z".&nbsp; Then in the select =
you can=20
  code:</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
  style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal><FONT face=3Dr_ansi color=3Dblue size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: r_ansi">FILE =
SOMEFILE DETAIL=20
  NOITEMS OCCURS 2<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3Dr_ansi color=3Dblue size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: =
r_ansi">&nbsp;&nbsp; SELECT=20
  IF TYPE =3D "1" AND&nbsp;X =3D "MENU1" =
&amp;<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3Dr_ansi color=3Dblue size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: =
r_ansi">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  OR TYPE=3D"2" AND&nbsp;X =3D "MENU2"</SPAN></FONT><o:p></o:p></P>
  <P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
  style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial color=3Dblue size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">It's nice =
to see=20
  people who are concerned about making applications=20
  robust.</SPAN></FONT><o:p></o:p></P>
  <P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
  style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial color=3Dblue size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Happy=20
  coding!</SPAN></FONT><o:p></o:p></P>
  <P class=3DMsoNormal><FONT face=3DArial color=3Dblue size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: =
Arial">&nbsp;&nbsp;&nbsp;=20
  Guy.</SPAN></FONT><o:p></o:p></P></DIV>
  <BLOCKQUOTE style=3D"MARGIN-TOP: 5pt; MARGIN-BOTTOM: 5pt; =
MARGIN-RIGHT: 0in">
    <P class=3DMsoNormal style=3D"MARGIN-BOTTOM: 12pt"><FONT =
face=3DTahoma=20
    size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Tahoma">-----Original=20
    Message-----<BR><B><SPAN style=3D"FONT-WEIGHT: =
bold">From:</SPAN></B> Shaun=20
    Dimmick [mailto:<st1:PersonName=20
    w:st=3D"on">sdimmick@milk.org</st1:PersonName>]<BR><B><SPAN=20
    style=3D"FONT-WEIGHT: bold">Sent:</SPAN></B> March 22, 2004 8:14=20
    AM<BR><B><SPAN style=3D"FONT-WEIGHT: bold">To:</SPAN></B> =
<st1:PersonName=20
    w:st=3D"on">powerh-l@lists.sowder.com</st1:PersonName><BR><B><SPAN=20
    style=3D"FONT-WEIGHT: bold">Subject:</SPAN></B> Passing Parameters =
to a=20
    subscreen</SPAN></FONT><o:p></o:p></P>
    <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi, I was wondering if =
there is=20
    a way to pass information to a subscreen in qdesign.&nbsp; Right now =
I have=20
    2 different users using the same quick screen, but accessing =
different sets=20
    of records,&nbsp; I&#8217;m using the LOGONID function to =
differentiate between=20
    the 2 users.&nbsp; <o:p></o:p></SPAN></FONT></P>
    <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=3DMsoNormal><FONT face=3Dr_ansi size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: r_ansi">FILE SOMEFILE DETAIL =
NOITEMS=20
    OCCURS 2<o:p></o:p></SPAN></FONT></P>
    <P class=3DMsoNormal><FONT face=3Dr_ansi size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: r_ansi">&nbsp;&nbsp; SELECT =
IF TYPE =3D=20
    "1" AND D_LOGONID =3D "BOB" &amp;<o:p></o:p></SPAN></FONT></P>
    <P class=3DMsoNormal><FONT face=3Dr_ansi size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
r_ansi">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
    OR TYPE=3D"2" AND D_LOGONID=3D "JOE"<o:p></o:p></SPAN></FONT></P>
    <P class=3DMsoNormal><FONT face=3Dr_ansi size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
r_ansi"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Type is a field in=20
    somefile<o:p></o:p></SPAN></FONT></P>
    <P class=3DMsoNormal><FONT face=3Dr_ansi size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
r_ansi"><o:p>&nbsp;</o:p></SPAN></FONT></P>
    <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Each user is coming to =
this=20
    screen from a different menu, &nbsp;anyone know if there is a way to =

    differentiate what menu the program was called from?&nbsp; Perhaps =
pass a=20
    parameter to the subscreen to let it know what menu it was called=20
    from.&nbsp; I&#8217;d rather not make it logon specific so that if =
&#8220;Bob&#8221; or &#8220;Joe&#8221;=20
    goes on vacation, someone else can<o:p></o:p></SPAN></FONT></P>
    <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Still do their=20
    work.<o:p></o:p></SPAN></FONT></P>
    <P class=3DMsoNormal><FONT face=3Dr_ansi size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
r_ansi">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
    =
</SPAN></FONT><o:p></o:p></P></BLOCKQUOTE></DIV></BLOCKQUOTE></BODY></HTM=
L>

------=_NextPart_000_0111_01C40D96.35D08510--