ATC: ADD ITEM fieldname value

This command adds an Item to the current document and sets the named fields to the value specified. Multiple fieldname and values can be specified, separated by semicolon.

  • fieldname is required and can be any fieldname in the DocItem or DocItemTask table. The table name is not required.
  • value is required and can include nested bookmarks

Note: after this command, you can use TargetRow to reference the last table mentioned in your ADD ITEM command.

Examples

ATC: ADD ITEM ProjEntity 15000; AccountCategory Labor; Description Mechanical;

The above example means “add an Item with Cost Code 15000 [DocItemTask.ProjEntity], an Account Category of Labor, and a Description of Mechanical

Use ATC: SETHTML for enhanced text in the Description field:

ATC: ADD ITEM ProjEntity 15000; Specification Major Stuff;
ATC: SETHTML TargetRow.Description = Way too cool

The above example means “add an Item with Cost Code 15000 [DocItemTask.ProjEntity] and a Spec [DocItem.Specification] of Major Stuff, then set the Description field [DocItem.Description] to Way too cool, formatted as shown.”


Last updated: October 24, 2018 at 9:29 am; green text = new

Related Post

ATC: SAVEATC: SAVE

ATC: SAVE WITH options This command saves the current document. Errors during the save are catch-able (see ATC: CATCH). You can specify WITH followed by these options (space separated): Release – Releases

ATC: ASSIGNATC: ASSIGN

ATC: ASSIGN role TO who ON project This command assigns a specified role to a specific user, optionally for specific projects. role is required. The role must exist in the

ATC: ADD WBCODEATC: ADD WBCODE

ATC: ADD WBCODE costcode description |  FROM projectid  LIKE mask This command adds one or more cost codes to the project identified by the current target document. No save is required. This command is