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)
A Challenge?
mickdundee
I want to write a call out that only returns a value if the field didn't already have one.
This would be for our newsroom index page. We want to generate a newsletter for only the new articles they are always listed at the top of the page, the old ones cycle down and eventually drop off. I envisage this script writing the date added to the dcr for each article. If it is a new article this field will be populated with todays date and never changed.
In my presentation template I can just check the date of this field and generate the newsletter based on todays date. All Old articles will be ignored that day.
Find more posts tagged with
Comments
duartecordeiro
the question being ?
either way, I think you always have to return a value from a callout... it could be the empty string..
--
Duarte Cordeiro
Neoris Pootugal
Migrateduser
If I understand your question correctly, is that you want to add the date automatically to the DCR, but if you do a callout, when you re-open the DCR the date is updated, thus, you lose the original date. A solution for this: Let users manually enter the date. Yes they can modify it later, but well... I had a similar problem where I have to give an automatic index number to the DCRS, but every time the DCR was open, a new number was given.
Bowker
How about using FORMAPI to automatically fill in the date if there isn't one there, and if there is one there set an "onFocus" event to disallow focus being set.
duartecordeiro
If what you want is what Kiro said and you use WF:
- put the date as a <hidden> or read only.
- fire a external task that writes the system date if there is no there yet.
--
Duarte Cordeiro
Neoris Pootugal