xowiki::Page instproc www-clipboard-content (public)

 <instance of xowiki::Page[i]> www-clipboard-content

Defined in packages/xowiki/tcl/xowiki-www-procs.tcl

This web-callable method displays the content of the clipboard. Finally redirect either to the return_url of the calling page.

Partial Call Graph (max 5 caller/called nodes):
%3 util_user_message util_user_message (public) xowiki::Page instproc www-clipboard-content xowiki::Page instproc www-clipboard-content xowiki::Page instproc www-clipboard-content->util_user_message

Testcases:
No testcase defined.
Source code:
set clipboard [::xowiki::clipboard get]
if {$clipboard eq ""} {
  util_user_message -message "Clipboard empty"
} else {
  foreach item_id $clipboard {
    if {[::xo::db::CrClass get_instance_from_db -item_id $item_id] ne ""} {
      util_user_message -message [::$item_id pretty_link]
    } else {
      util_user_message -message "item $item_id deleted"
    }
  }
}
:return_redirect_without_params
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: