create_extattr


NAME

create_extattr - creates extended attribute table for item which haven't had it


SYNOPSIS

Called by appropriate link from typeedit.

  /scripts/create_ext_attr?SERVER=...&TYPE_ID=?


DESCRIPTION

Web interface create to extended attributes table. for certain item type. Requiress CHIEF privelegies

This script shows a web form with two buttons - Next and Finish. Fill in field description and press Next until all attributes would be presented.

When pressing Finish table would be created and there would be no way to alter its structure via web interface.

While you are editing structure, you are able to delete and add field.


BUGS

You may not fill in internationalized description for attribute while typing in its name. Only when you've pressed next, it is possible to correctly set up size of data field and i18n description.

main

Main routine of script. Checks authentication, checks neccessary attributes and dispatches action to add_attr, check_attr,delete_attr and create_table If work is done, redirects back to typeedit, otherwise - shows form by calling show_form

16 октябрь 2007 13:45