Getting Ids of a connected element with a specific relationGetting Ids of a connected element with a specific relationRE: Getting Ids of a connected element with a specific relationSabin Popescuhttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=3266652015-06-22T11:19:35Z2015-06-22T10:39:32ZHi, Fadi.<br /><br />The operation can be done in two ways:<br /><br />1. Through AdoScript Command Calls<br /> - use GET_CONNECTORS to identify all outgoing connectors <br /><a href="http://www.adoxx.org/AdoScriptDoc/files/Message_Ports/Manipulation_APIs/Core/GET_CONNECTORS-js.html#GET_CONNECTORS">http://www.adoxx.org/AdoScriptDoc/files/Message_Ports/Manipulation_APIs/Core/GET_CONNECTORS-js.html#GET_CONNECTORS</a><br /> - use GET_CONNECTOR_ENDPOINTS to get the id of the "TO" object for each connector<br /><a href="http://www.adoxx.org/AdoScriptDoc/files/Message_Ports/Manipulation_APIs/Core/GET_CONNECTOR_ENDPOINTS-js.html#GET_CONNECTOR_ENDPOINTS">http://www.adoxx.org/AdoScriptDoc/files/Message_Ports/Manipulation_APIs/Core/GET_CONNECTOR_ENDPOINTS-js.html#GET_CONNECTOR_ENDPOINTS</a><br /><br />your code should look like:<br /><div class="code"><span class="code-lines"> 1</span>CC "Core" GET_CONNECTORS objid: ( my_objid ) out<br /><span class="code-lines"> 2</span>#-->RESULT ecode:intValue objids:strValue<br /><span class="code-lines"> 3</span>SETL sListOfObjects: ""<br /><span class="code-lines"> 4</span>FOR sObjID in: ( objids ) {<br /><span class="code-lines"> 5</span> SETL nConnectorID: ( VAL sObjID)<br /><span class="code-lines"> 6</span> CC "Core" GET_CLASS_ID objid: (nConnectorID)<br /><span class="code-lines"> 7</span> # RESULT ecode:intValue classid:intValue isrel:intValue<br /><span class="code-lines"> 8</span> CC "Core" GET_CLASS_NAME classid: ( classid )<br /><span class="code-lines"> 9</span> # RESULT ecode:intValue classname:strValue isrel:intValue<br /><span class="code-lines">10</span> IF ( classname = "Is-A") {<br /><span class="code-lines">11</span> CC "Core" GET_CONNECTOR_ENDPOINTS objid: (nConnectorID<br /><span class="code-lines">12</span> #-->RESULT ecode:intValue fromobjid:id toobjid:id<br /><span class="code-lines">13</span> SETL sListOfObject: ( tokunion ( sListOfObjects, STR toobjid, " "))<br /><span class="code-lines">14</span> }<br /><span class="code-lines">15</span>}<br /></div><br /><br /><br />2. Using AQL, with an AQL-Expression like:<br />(<"myClass">[?"Name" like "myObjectName"]->"Is-A")<br /><br /><a href="http://www.adoxx.org/live/query-adoscript">http://www.adoxx.org/live/query-adoscript</a>Sabin Popescu2015-06-22T10:39:32ZGetting Ids of a connected element with a specific relationFadi Al Machothttps://www.adoxx.org/live/c/message_boards/find_message?p_l_id=&messageId=3266462015-06-22T10:17:34Z2015-06-22T10:17:34ZHow can we know what are the Ids of the elements that are connected to a specific element with a specific relation, e.g., with a relation „Is-A“?Fadi Al Machot2015-06-22T10:17:34Z