bm_handle_bookmark_double_click (public)

 bm_handle_bookmark_double_click bookmark_id errmsg return_url

Defined in packages/bookmarks/tcl/bookmarks-procs.tcl

Parameters:
bookmark_id (required)
errmsg (required)
return_url (required)

Partial Call Graph (max 5 caller/called nodes):
%3 packages/bookmarks/www/bookmark-add-one-2.tcl packages/bookmarks/ www/bookmark-add-one-2.tcl bm_handle_bookmark_double_click bm_handle_bookmark_double_click packages/bookmarks/www/bookmark-add-one-2.tcl->bm_handle_bookmark_double_click packages/bookmarks/www/folder-add-2.tcl packages/bookmarks/ www/folder-add-2.tcl packages/bookmarks/www/folder-add-2.tcl->bm_handle_bookmark_double_click ad_return_template ad_return_template (public) bm_handle_bookmark_double_click->ad_return_template ad_returnredirect ad_returnredirect (public) bm_handle_bookmark_double_click->ad_returnredirect ad_script_abort ad_script_abort (public) bm_handle_bookmark_double_click->ad_script_abort db_string db_string (public) bm_handle_bookmark_double_click->db_string template::adp_level template::adp_level (public) bm_handle_bookmark_double_click->template::adp_level

Testcases:
No testcase defined.
Source code:
    # check and see if this was a double click
    set dbclick_p [db_string dbclick "select count(*) 
                                          from   bm_bookmarks 
                                      where  bookmark_id = :bookmark_id"]
    
    if {$dbclick_p == 1} {   
        ad_returnredirect  -allow_complete_url $return_url
            ad_script_abort
    } else {

        upvar \#[template::adp_level] n_errors n_errors
        upvar \#[template::adp_level] error_list error_list

        set n_errors 1
        set error_list [list "There was an error making this insert into the database. $errmsg"]

          uplevel \#[template::adp_level] {
          ad_return_template "complaint"
          }
            ad_script_abort
    }
Generic XQL file:
<fullquery name="bm_handle_bookmark_double_click.dbclick">
    <querytext>
      select count(*) 
                                          from   bm_bookmarks 
	                                  where  bookmark_id = :bookmark_id
      </querytext>
</fullquery>
packages/bookmarks/tcl/bookmarks-procs.xql

PostgreSQL XQL file:
packages/bookmarks/tcl/bookmarks-procs-postgresql.xql

Oracle XQL file:
packages/bookmarks/tcl/bookmarks-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: