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)

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: