22.12.2024, 05:45 | #1 |
Участник
|
Find all tables with relations to a given field
Источник: http://alexvoy.blogspot.com/2024/12/...-to-given.html
============== Sometimes we need to know which tables are related to a given table on a given field. Unfortunately, none of AI generative tools I tried was able to provide me with a working code. So, I wrote this code manually based on Microsoft doc and some articles. <div style="background: rgb(255, 255, 255); border-color: gray; border-image: initial; border-style: solid; border-width: 0.1em 0.1em 0.1em 0.8em; border: solid gray; overflow: auto; padding: 0.2em 0.6em; width: auto;">static void findAllTablesWithRelations(TableId _tableId, FieldId _fieldId) { Dictionary dict = new Dictionary(); DictTable dictTable; DictRelation dictRelation; TableId tableId; int i, j; int linesCnt; int relationLine; int c; int numOfTables = dict.tableCnt(); boolean relationFound; // Loop through all tables in the system for (j=1 ; j
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|