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)
Read embedded Metadata from a TeamSite file
mpgxsvcd
Can the example_datacapture_callout.ipl file be modified to read from a text file that is in TeamSite? In addition, can the example_datacapture_callout.ipl be modified to read files other than the simple text files. I am trying to copy Metadata from an xml file that is in TeamSite into the file's extended atributes. Would it be possible to do this by only editing the example_datacapture_callout.ipl file or would it require editing the other files(ie:metadataruleview.itml, iw_cgi_wrapper.cgi).
TeamSite 5.5.2
Find more posts tagged with
Comments
Migrateduser
Based on your scenario, you should only need to modify the .ipl file. You can develop the callout to do whatever you like (including reading a file from TeamSite). You just have to make sure you insert the captured information back into the capture form.
mpgxsvcd
I looked at the example_datacapture_callout.ipl and it appears that the location of the input file is controlled by the url. However, it looks like the folder for the input file is hard coded somewhere as IWHOME/local/config/. Does anyone know how I could change this path and how would I be able to reference a file that is stored in Teamsite. I have included a segment of the example_datacapture_callout.ipl file that explains the url format.
The program will read a flat file of selection options and present them to the user. The selected option will be used to populate the datacapture item that launched the callout. The datacapture item must be a text or textarea for this example.
The flat file will be specified in the URL. A URL such as this:
/iw-bin/iw_cgi_wrapper.cgi/example_datacapture_callout.ipl/options.txt
specifies using the flat file "IWHOME/local/config/options.txt".
Migrateduser
In example_datacapture_callout.ipl, the following function appends "options.txt" to the path in iw-home:
sub make_full_filename {
my ($filename) =
@_
;
my $iw_home = TeamSite::Config::iwgethome();
my $full_filename = $iw_home . "/local/config/" . $filename;
return $full_filename;
}
You can change this Perl code to point to an area in TeamSite.