Re: Possible to dynamically define DESNAME?

From: David <snapkad_at_post.cz>
Date: Wed, 22 Nov 2000 16:31:34 +0100
Message-ID: <3a1be9ca_at_news.cvut.cz>


Don't use DESNAME in command line when you call RUNTIME and than you can change DESNAME in Before Report Trigger (I do this in After Parameter Form Trigger but should be the same)

I use this without problems, though I don't run RUNTIME from command line but Run_Product from Menu.

Menu:
declare

   v_pl paramlist;
begin

   v_pl := create_parameter_list('rep_list');    run_product(reports, 'drs0001', asynchronous, runtime, filesystem, v_pl);    destroy_parameter_list(v_pl);
end;

After Parameter Form Trigger: -- creates name from username and sysdate and reportname

:destype := 'FILE' ;
:desname := 'c:\temp\'||rtrim(substr(rpad(user,4,'
'),1,2)||substr(rpad(user,4,' '),-2,
2))||'-'||to_char(sysdate,'yyyymmdd')||'drr0005.txt';

If it doesn't work for you I have no clue.

David Received on Wed Nov 22 2000 - 16:31:34 CET

Original text of this message