To build an input list for query functions, use the following statements:
stm_id act_id;
stm_list list, act_list;
int status;
...
act_id = stm_r_ac("A1", &status);
list = stm_list_create (act_id, end_of_list, &status);
act_list = stm_r_ac_physical_sub_of_ac (list, &status);
.
.
The variable
act_id
contains the ID of the activityA1
. The input list is built by calling thestm_list_create
function. In this case, the input list consists of only one element. You would use the same function to build a list of multiple elements.Note that the input list is built from element IDs, not from element names.