Untitled
unknown
plain_text
a month ago
948 B
2
Indexable
Never
let params = { infoTableName: 'properties' /* STRING {"defaultValue":"InfoTable"} */ , dataShapeName: 'RGShape' /* DATASHAPENAME */ }; // result: INFOTABLE let result = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params); let arr = Breadcrumb.split(" > "); let AssetName = arr[arr.length - 1]; let allProperties = Things['KepserverBasedAsset_'+AssetName].GetMetadata().propertyDefinitions; // result: INFOTABLE let tagTableRow = Resources["InfoTableFunctions"].EQFilter({ fieldName: 'AssetName' /* STRING */ , isCaseSensitive: false /* BOOLEAN {"defaultValue":false} */ , t: me.TagTable /* INFOTABLE */ , value: AssetName /* STRING */ }); let alreadyAddedTags=tagTableRow.rows.length>0?tagTableRow.rows[0].Tags:''; allProperties.rows.forEach((property) => { if (property.sourceName == AssetName && alreadyAddedTags.search(property.name)==-1) result.AddRow({ name: property.name }); });
Leave a Comment