Monthly Archives: November 2007

Understanding the ]po[ Data Model: Dynfields

# —————————————————— # Show extension fields # —————————————————— set dynamic_fields_p 0 if {[db_table_exists im_dynfield_attributes]} { set dynamic_fields_p 1 set object_type “im_company” set form_id “company_view” template::form create $form_id -mode “display” -display_buttons {} im_dynfield::append_attributes_to_form -object_type $object_type -form_id $form_id -object_id $company_id -form_display_mode “display” }

Basics Programming: Show components (plug-in)

Overview a) Code to create html output for plugins can be found in the package procs (e.g.: intranet-timesheet2-tasks-procs.tcl) Example: plugin to create a list of tasks: im_timesheet_task_list_component How to create a db entry for a plugin select im_component_plugin__new ( null, — plugin_id ‘acs_object’, — object_type now(), — creation_date null, — creation_user null, — creattion_ip null, [...]