xowiki::test::get_object_name (private)

 xowiki::test::get_object_name node

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

This proc obtains the "value" attribute of an input field named "__object_name". This can be used to obtain the object_id behind a form. This object_id is used as well in the construction of HTML ids.

Parameters:
node

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_form_with_form_instance create_form_with_form_instance (test xowiki) xowiki::test::get_object_name xowiki::test::get_object_name test_create_form_with_form_instance->xowiki::test::get_object_name test_create_form_with_numeric create_form_with_numeric (test xowiki) test_create_form_with_numeric->xowiki::test::get_object_name test_form_validate form_validate (test xowiki) test_form_validate->xowiki::test::get_object_name security::parameter::validated security::parameter::validated (public) xowiki::test::get_object_name->security::parameter::validated xowiki::test::create_form xowiki::test::create_form (public) xowiki::test::create_form->xowiki::test::get_object_name xowiki::test::edit_form_page xowiki::test::edit_form_page (public) xowiki::test::edit_form_page->xowiki::test::get_object_name

Testcases:
create_form_with_form_instance, create_form_with_numeric, form_validate
Source code:
        set result [$node selectNodes {string(//form//input[@name="__object_name"]/@value)}]
        if {$result ne ""} {
            set result [::security::parameter::validated $result]
        }
        return $result
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: