xowiki::Page instproc www-clipboard-add (public)
<instance of xowiki::Page> www-clipboard-add
Defined in /var/www/openacs.org/packages/xowiki/tcl/xowiki-www-procs.tcl
This web-callable method adds elements to the clipboard based on the names provided by the form variable "objects". The objects are resolved below the current object, which is treated as containing folder. After adding elements to the clipboard, redirect either to the return_url of the calling page.
- Testcases:
- No testcase defined.
Source code: if {![:exists_form_parameter "objects"] && [ns_conn method] eq "POST"} { :msg "nothing to copy" } ::xowiki::clipboard add [:get_ids_for_bulk_actions [:form_parameter objects:int32,0..n]] # # When called via AJAX, we have reason to make a redirect. # if {[ns_set iget [ns_conn headers] "X-Requested-With"] eq "XMLHttpRequest"} { ns_log notice "HEADERS: got X-Requested-With" return OK } else { #ns_log notice "HEADERS: no X-Requested-With" :return_redirect_without_params }XQL Not present: Generic, PostgreSQL, Oracle