1 Add a new column hasTrackedFieldChanged (EDT: NoYesId) in the SysDatabaseLog-table
2 Create a new method hasTrackedFieldChanged in the Application-class
boolean hasTrackedFieldChanged(TableId _tableId, container changedFields, DatabaseLogType _logType) { boolean hasField = false; DatabaseLog dbLog;//contains the information about tracked tables/ fields int counter; FieldId fieldId, extFieldId; ; if (conlen(changedFields) > 0) //are there items in the container? { for(counter = 0; counter <= conlen(changedFields); counter++) // loops all elements in the container { extFieldId = conpeek(changedFields, counter); //gets the extended fieldId if (extFieldId != 0) //extFieldId is 0 if it concerns the entire table { fieldId = fieldExt2Id(extFieldId); //gets the fieldId based on the extFieldId SELECT FIRSTONLY recID FROM dbLog WHERE dbLog.logfield == fieldId //is the changed field in the list of tracked fields... && dbLog.LogTable == _tableId //...for that table... && dbLog.LogType == _logType ; //...and the current action (Update) if(dbLog) { hasField = true; break; //no need to continue } } } } return hasField; }3 Change the logUpdate-method in the Application class
sysDatabaseLog.hasTrackedFieldChanged = this.hasTrackedFieldChanged(recordUpdated.TableId, changedFields, DatabaseLogType::Update);It is now easy to filter all logs for tracked fields:
This comprehensive guide explores the process of registering for an Alibaba account while prioritizing privacy and security. It highlights Alibaba's role as a leading global e-commerce platform connecting buyers and suppliers, providing insights into its key features and safety measures. The article addresses the necessity of phone number verification for account registration and introduces the solution of using virtual phone numbers from PVApins. Step-by-step instructions are provided for obtaining a Brazil virtual number, enabling users to verify their accounts without disclosing personal information. Ideal for individuals looking to navigate the Alibaba marketplace securely, this article combines practical advice with an emphasis on maintaining online privacy. Visit us:- https://pvapins.com/?/EN
ReplyDelete