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)
adding a delete button inside DCT
ratzz
Hi All,
Is it possible to add a delete button in the DCT which will delete the particular dcr?
can we customize the DCT to hold a delete button?
ratzz
Find more posts tagged with
Comments
gzevin
no, this is not possible
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
Adam Stoller
Greg - so quick to respond with a negative? Where's that old-time hacker's spirit?
You *might* be able to add a callout button with an onCallout handler that initiated a CallServer() on a script residing on the server that would, assuming it was passed the path to an existing DCR, perform the deletion and perhaps even the submission - and when calling back to the DCT perform a close on it.
Or - perhaps even easier - have the callout run a script with a redirection to the CCI URL for deleting the DCR - something like:
...
tsserver>http://
tsserver
/iw-cc/delete?vpath=/default/main/.../data/
dcrname
However, according to the manual (UICG) if you don't have the permissions to perform the operation in the regular UI - you won't have permissions to perform the operations through the CCI URL either.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
ratzz
but again the callout button will appear inside the dct as an item..but cannot be a part of the dct toolbar right?(top or bottom toolbars inside the dct comprising of preview, generate or finish,cancel buttons)
please correct me if i'm wrong.
ratzz
LooseCannon
In reply to:
but cannot be a part of the dct toolbar right
Just about anything can be accomplished with javascript
1) load the buttonframe in DOM
2) iterate through the button images
3) change the the onlclick and scr properties for a particliar button
this is obviously not supported
gzevin
I was talking about a *]clean* way of doing it. Maybe it's because that I deeply dislike call server stuff... and formAPI in general... does not feel clean to me.. always looked as hacks ..
but yeah, /*something* could be done.. but as it was already mentioned, you cannot add a clean 'delete' button..
If I were to do this...I probably would do it via a CGI callout... but again.. does not look clean
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU