Home » Developer & Programmer » Reports & Discoverer » problem with system parameters
problem with system parameters [message #88947] Thu, 03 July 2003 08:55 Go to next message
seka
Messages: 11
Registered: November 2001
Junior Member
My report runs okay, I want to be able to choose DESTYPE as one of the parameters in live previewer,i.e when I run report I want it to promt me to choose printer,screen,file or e-mail. Please Help

Thanking you in advance.
Re: problem with system parameters [message #88951 is a reply to message #88947] Mon, 07 July 2003 01:39 Go to previous message
sujit
Messages: 94
Registered: April 2002
Member
Hi,
You can do that by setting the destype parameter in the parameter form. then you can do it by passing parameters from calling form let's say. for printer type you will have to add COPIES as a parameter (No. Of Copies) for file, DESNAME (the path where file will be stored,
hope the code will help.
add_parameter(pi_id,'DESTYPE',TEXT_PARAMETER,:radio_options );
IF :radio_options ='PRINTER' THEN
N_COPIES := :COPIES;
add_parameter(pi_id,'COPIES',TEXT_PARAMETER,N_COPIES );
END IF;

IF :radio_options ='FILE' THEN
File :=:FILENAME;
add_parameter(pi_id,'DESNAME',TEXT_PARAMETER,File);
END IF;
Previous Topic: crystal report
Next Topic: How to do this - Newbie ??
Goto Forum:
  


Current Time: Thu Mar 28 09:09:57 CDT 2024