create_sub_item(item_id, text)


Description

This function allow the user to enter a new child item to the current item_id into ecco through program control
When created the item_id of the child item is returned to the program.

Example

Pitemid=create_item("This is a test of adding a child item")
set_folder_value("Release",Pitemid,"3.x.x")
Citemid=create_sub_item(Pitemid,"This is a child item")
set_folder_value("Release",Citemid,"4.x.x")

These lines of code will create an item with text "This is a test of adding a child item" and set the Release folder value to3.x.x.
Using the itemid of the parent a new child item is created "This is a child item" and the Release folder value is set to 4.x.x

Related Rules

create_item()