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)
Getting the DCR name from an inline
System
We're trying to determine the name of the DCR from an inline.
What we're trying to achieve is a system that can read self defined extended attributes from a DCR and reuse that info when displaying the DCR. The extended attributes are set when the file is generated. Basically we're trying to find out whether the file has been generated already or not, without going to the database (which is possible, I know, when you use DAS or so).
In the manual I was only able to find IWDCT, IWROLE and IWUSER. There is no IWDCR. Anyone made such a functionality once?
Thanks,
Trip
**** doesn't play dice.
-- Albert Einstein
Find more posts tagged with
Comments
Michael
Yep inline doesn't receive a DCR name -- which certainly makes sense if it is a new DCR as it would not have a name at the time of executing the inline. I am guessing the in the templating engine inline's are processed prior to considering which DCR to apply to the DCT.
An alternative might be to use formAPI. If you are going to stick with using extended attributes than you are probably going to have to use a callServer request I guess. This could be problematic if it doesn't complete prior to your DCR rendering etc...
As an alternative, perhaps you could update a hidden field (with some more formAPI
when you generate the DCR. Then you could very easily check this using regular formAPI.
I hope this helps -- perhaps they will add access to EAs in future releases of formAPI?
Cheers
Michael