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)
__INSERT__(&myFunction(%fullpath))
catorarn
ENV TS552SP2B Solaris:
I'd like to know if it's possible to expand a workflow macro name, e.g. %fullpath or %path within an INSERT tag. I'd ideally like to do the following,
<eastartop op="set" name="TeamSite/Templating/DCR/Type" value="__INSERT__(&myFunction(%fullpath));"/>
but it doesn't work?
I want to pass the fullpath to a function and return the correct information for setting the extended attribute.
Anyone have an answer on this query?
cheers,
Arnouxe
Find more posts tagged with
Comments
Adam Stoller
Maybe I'm missing something here - but don't things like __VALUE__('iw_workarea'); or __TAG__('iw_workarea'); -- depending on context -- provide you with the full areavpath to the area in which you are working, and any pre-selected files (or added files) can be retrieved and the paths stripped off them to find a directory path within the area?
I.e. I'm not sure you need a myFunction() and I'm not sure where '%fullpath' and '%path' are coming from.
Can you provide more context and perhaps the code [or a simplified version of it] that you are trying to get to work? Perhaps someone here might be able to look at it from a different perspective and see a solution for you?
--fish
(Interwoven Senior Technical Consultant)
james1
> I.e. I'm not sure you need a myFunction() and I'm not sure where
> '%fullpath' and '%path' are coming from.
See documentation for <eastartop> and <eafinishop>, e.g. pages 181-182 of the TeamSite 5.5.2 Workflow Developer's Guide for Windows.
The code is referencing runtime workflow engine variables in the WFT, which obviously won't work.
-- James
--
James H Koh
Interwoven Engineering
Adam Stoller
Ah - thanks James - I didn't pickup on the <ea...op> piece.
Well - in that case - most of what I said before still holds, I think. Create a variable (perhaps from the return value of a subroutine) that takes the information from the areavpath and the file path(s) - adjusted as desired, and use that variable in the __INSERT__(); statement - yes?
--fish
(Interwoven Senior Technical Consultant)