Passing Parameters to a subscreen

Guy Werry guy.werry@hbms.ca
Tue, 16 Mar 2004 08:28:02 -0600


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_01C40B62.E3865A30
Content-Type: text/plain;
	charset="iso-8859-1"

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_001_01C40B62.E3865A30
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.50.4522.1800" name=GENERATOR>
<STYLE>@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-compose
}
DIV.Section1 {
	page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=320341914-16032004>Shaun,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=320341914-16032004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=320341914-16032004>When 
running a subscreen you can pass fields: "subscreen myscreen mode e passing x, 
y, z".&nbsp; 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></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=320341914-16032004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=320341914-16032004>In the 
subscreen you have "screen mysubscreen receiving x, y, z".&nbsp; Then in the 
select you can code:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=320341914-16032004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=320341914-16032004>
<P class=MsoNormal><FONT face=r_ansi size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: r_ansi"><FONT color=#0000ff>FILE SOMEFILE 
DETAIL NOITEMS OCCURS 2<o:p></o:p></FONT></SPAN></FONT></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: r_ansi"><FONT 
color=#0000ff>&nbsp;&nbsp; SELECT IF TYPE = "1" AND&nbsp;<SPAN 
class=320341914-16032004>X = "MENU1" </SPAN>&amp;<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: r_ansi"><FONT 
color=#0000ff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OR TYPE="2" 
AND&nbsp;<SPAN class=320341914-16032004>X = "MENU2"</SPAN></FONT></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: r_ansi"><FONT 
color=#0000ff><SPAN class=320341914-16032004></SPAN></FONT></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: r_ansi"><FONT 
face=Arial color=#0000ff><SPAN class=320341914-16032004>It's nice to see people 
who are concerned about making applications robust.</SPAN></FONT></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: r_ansi"><FONT 
face=Arial color=#0000ff><SPAN 
class=320341914-16032004></SPAN></FONT></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: r_ansi"><FONT 
face=Arial color=#0000ff><SPAN class=320341914-16032004>Happy 
coding!</SPAN></FONT></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: r_ansi"><FONT 
face=Arial color=#0000ff><SPAN class=320341914-16032004>&nbsp;&nbsp;&nbsp; 
Guy.</SPAN></FONT></SPAN></P></SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Shaun Dimmick 
  [mailto:sdimmick@milk.org]<BR><B>Sent:</B> March 22, 2004 8:14 
  AM<BR><B>To:</B> powerh-l@lists.sowder.com<BR><B>Subject:</B> Passing 
  Parameters to a subscreen<BR><BR></FONT></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi, I was wondering if there is a 
  way to pass information to a subscreen in qdesign.&nbsp; Right now I have 2 
  different users using the same quick screen, but accessing different sets of 
  records,&nbsp; I&#8217;m using the LOGONID function to differentiate between the 2 
  users.&nbsp; <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=r_ansi size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: r_ansi">FILE SOMEFILE DETAIL NOITEMS 
  OCCURS 2<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=r_ansi size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: r_ansi">&nbsp;&nbsp; SELECT IF TYPE = "1" 
  AND D_LOGONID = "BOB" &amp;<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=r_ansi size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: r_ansi">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  OR TYPE="2" AND D_LOGONID= "JOE"<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=r_ansi size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: r_ansi"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Type is a field in 
  somefile<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=r_ansi size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: r_ansi"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Each user is coming to this 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 parameter to the 
  subscreen to let it know what menu it was called from.&nbsp; I&#8217;d rather not 
  make it logon specific so that if &#8220;Bob&#8221; or &#8220;Joe&#8221; goes on vacation, someone 
  else can<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Still do their 
  work.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=r_ansi size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: r_ansi">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  </SPAN></FONT><o:p></o:p></P></DIV></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C40B62.E3865A30--