Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
how to set generate directory
adit
Hi,
Is there any way to set the directory of the output file to point to a particular directory so that when the user wants to save a file, it is saved in that directory at runtime or in otherwords is there a way to have the preview-dir functionality for generate ? i am using TS 6.5.
for instance
iwmnt/default/main/BRANCH/WORKAREA/htdocs/filename
/iwmnt/default/main/BRANCH/WORKAREA/htdocs[/somedir/somedir/]filename
any help will be greatly appreciated
Find more posts tagged with
Comments
cc96ai
In my case, the user will go through the workflow to generate the page.
which will call external task to general the file into particular directory
--------------------------------------------
TS 6.1 W2K3
OpenDeploy 6.0
CC Pro/Std
adit
thanks cc96ai,
are there any other methods that I can explore inside the tpl file itself or using formapi for the same ? maybe using
@ARGV
or so ??
Nicholas
I think you can use following
my $outputName = iwpt_get_ofile_name(); or iwpt_get_dcr_name();
then you can manupulate the path using regex in TPL.
Thanks Nicholas
adit
Hi Nicholas,
Thanks for that suggestion. Here is some code of mine that attempts to do that, but it doesnt work. Is there something that i am missing ?
<iw_perl>
<![CDATA[
#get full path to file
my $matchfile = iwpt_get_ofile_name();
my($directory, $filename) = $matchfile =~ m/(.*\/)(.*)$/;
#get dir to path
my $output_file = iwpt_get_ofile_name(dirname);
$output_file.="/htdocs/en/aboutus/".$filename;
# try to change the argv
$ARGV[6] = $output_file;
]]>
</iw_perl>
ColumnarTable.rptdesign