Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 4

Table of Contents

*(Under Review for V2)

Introduction

Fields replaces the old additional fields functionality. The old functions have been updated and adapted to the new access methods. Other than this, the functions should work the same as they always have. 

...

Open-AudIT can store information in additional fields that are associated with each device.

...

To make another network go to menu : Manage -> Admin -> Fields -> Create Field. 

Image RemovedImage Added

Image Removed

 

View Field Details

Go to menu : Manage -> Admin -> Fields -> List Fields.

Image Added

You will see a list of fields. You can view a field by clicking on the

...

it's ID (in green). You can also edit or delete

...

the field.

Image Removed

 

Database Schema

Code Block
themeEclipse
languagetext
Create Table: CREATE TABLE `fields` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(200) NOT NULL DEFAULT '',
  `org_id` int(10) unsigned NOT NULL DEFAULT '1',
  `group_id` int(10) unsigned NOT NULL DEFAULT '1',
  `type` enum('varchar','list') NOT NULL DEFAULT 'varchar',
  `values` text NOT NULL,
  `placement` enum('custom','system') NOT NULL DEFAULT 'system',
  `edited_by` varchar(200) NOT NULL DEFAULT '',
  `edited_date` datetime NOT NULL DEFAULT '2000-01-01 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

Example Database Entry

Image Added

Fields Field are stored in the database in the "fieldsadditional_field" table. A typical entry will look as below.

...

themeEclipse
languagetext

...

 

       id: 3
 group_id: 1

...

     name: 

...

Additional Field
     type: varchar

...

   values:

...

 
placement: 

...

system

API / Web Access?

You can access the /fields collection using the normal Open-AudIT JSON based API. Just like any other collection. Please see the API documentation for further details.

...