ad_form_new_p (public)

 ad_form_new_p -key key

Defined in packages/acs-tcl/tcl/form-processing-procs.tcl

This is for pages built with ad_form that handle edit and add requests in one file. It returns 1 if the current form being built for the entry of new data, 0 if for the editing of existing data.

It does not make sense to use this in pages that don't use ad_form.

Switches:
-key
(required)
the name of the key element. In the above example: ad_form_new_p -key item_id

Partial Call Graph (max 5 caller/called nodes):
%3 test_fs_create_folder fs_create_folder (test file-storage) ad_form_new_p ad_form_new_p test_fs_create_folder->ad_form_new_p test_fs_edit_folder fs_edit_folder (test file-storage) test_fs_edit_folder->ad_form_new_p packages/acs-subsite/www/admin/applications/application-add.tcl packages/acs-subsite/ www/admin/applications/application-add.tcl packages/acs-subsite/www/admin/applications/application-add.tcl->ad_form_new_p packages/calendar/www/cal-item-new.tcl packages/calendar/ www/cal-item-new.tcl packages/calendar/www/cal-item-new.tcl->ad_form_new_p packages/categories/lib/tree-form.tcl packages/categories/ lib/tree-form.tcl packages/categories/lib/tree-form.tcl->ad_form_new_p packages/categories/www/cadmin/tree-form.tcl packages/categories/ www/cadmin/tree-form.tcl packages/categories/www/cadmin/tree-form.tcl->ad_form_new_p packages/faq/www/admin/faq-add-edit.tcl packages/faq/ www/admin/faq-add-edit.tcl packages/faq/www/admin/faq-add-edit.tcl->ad_form_new_p

Testcases:
fs_create_folder, fs_edit_folder
Source code:
    return [expr {![ns_queryexists $key] || [ns_queryget __new_p] == 1}]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: