I just created a support case for the following... Thought I'd share it.
Regarding the ENV variables available in an inline script in a datacapture.cfg, the doc (tst.650a.dg.pdf) says (p.49):
When a server-side inline callout program is executed, it inherits the following environment variables: .. IW_DCT: The file system path to the datacapture.cfg in use (for example, /iwmnt/default/main/development/WORKAREA/maudlin/templatedata/press/events/datacapture.cfg). .. IW_WORKAREA: The vpath to the current workarea (for example, ///default/main/development/WORKAREA/chris). (...) |
I was testing this with this bit of code:
open(TEMPFILE,">>/tmp/temp.txt");
foreach my $key (keys %ENV){
print TEMPFILE $key . " = " . $ENV{$key} ."\n";
}
under TS 6.5 sp2 + patchid 1614
IW_USER = g60921
IW_ROLE = master
IW_DCT = //sdas0005/default/main/bzws/ccc_ll/WORKAREA/devwa/templatedata/businessadvisor/BA_feature/datacapture.cfg
IW_WORKAREA = //sdas0005/default/main/bzws/ccc_ll/WORKAREA/devwa
and under TS 5.5.2 sp4
IW_ROLE = editor
IW_DCT = /default/main/bzws/bel_fr/WORKAREA/userWA/templatedata/businessadvisor/BA_feature
IW_WORKAREA = /default/main/bzws/bel_fr/WORKAREA/userWA
IW_USER = g60921
Seems to me that I'm not getting a filesystem path for IW_DCT, but rather a vpath. Is this a documentation bug, or an implementation bug?
Can I rely on IW_DCT being and staying a vpath?