calendar::item_type_new (public)

 calendar::item_type_new -calendar_id calendar_id \
    [ -item_type_id item_type_id ] -type type

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

creates a new item type

Switches:
-calendar_id (required)
-item_type_id (optional)
-type (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_calendar_basic_api calendar_basic_api (test calendar) calendar::item_type_new calendar::item_type_new test_calendar_basic_api->calendar::item_type_new db_dml db_dml (public) calendar::item_type_new->db_dml db_nextval db_nextval (public) calendar::item_type_new->db_nextval packages/calendar/www/item-type-new.tcl packages/calendar/ www/item-type-new.tcl packages/calendar/www/item-type-new.tcl->calendar::item_type_new

Testcases:
calendar_basic_api
Source code:
    if {$item_type_id eq ""} {
        set item_type_id [db_nextval cal_item_type_seq]
    }

    db_dml insert_item_type {}

    return $item_type_id
Generic XQL file:
<fullquery name="calendar::item_type_new.insert_item_type">
    <querytext>
	insert into cal_item_types
	(item_type_id, calendar_id, type)
	values
	(:item_type_id, :calendar_id, :type)
    </querytext>
</fullquery>
packages/calendar/tcl/calendar-procs.xql

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

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

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