Counting the number of rows of the record after deleting rowsCounting the number of rows of the record after deleting rowsRE: Counting the number of rows of the record after deleting rowsSabin Popescuhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=3266572015-06-22T10:23:40Z2015-06-22T10:20:47ZHi, Fadi.<br /><br />When doing the command call <br />CC "Core" GET_REC_ATTR_ROW_COUNT objid: (id_classid) attrid: (id_InstId)<br /><br />you are passing the classid as parameter objid, but you should pass the intance ID.<br /><br />Try the following calls:<br /><br />CC "Core" GET_ATTR_ID classid: (id_clasid) attrname: "Attributes"<br />SETL id_attrid: ( attrid )<br />CC "Core" GET_REC_ATTR_ROW_COUNT objid: (id_InstId) attrid: (id_attrid)<br /><br />SabinSabin Popescu2015-06-22T10:20:47ZCounting the number of rows of the record after deleting rowsFadi Al Machothttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=3266302015-06-22T10:14:43Z2015-06-22T10:14:43Z I am trying to count the number of rows of the record after deleting rows, unfortunately, it does not work, <br />It returns -1.<br />The record name is „Attributes“ and has 3 elements „Name“, „Range“ and „Value“.<br /> <br /> ON_EVENT "DeleteInstance" {<br /> SETG id_InstId: (instid)<br /> SETG id_classid: (classid)<br /> SETG id_modelid: (modelid)<br /> SETG str_InstanceName: (name)<br /> CC "Core" GET_REC_ATTR_ROW_COUNT objid: (id_classid) attrid: (id_InstId)<br /> SETL nCount : (count)<br /> CC "AdoScript" INFOBOX (" ID " + STR nCount)<br /> }Fadi Al Machot2015-06-22T10:14:43Z