Example 1: Assigning from a Math Expression
MyTable myTableBuffer; ; update_recordset myTableBuffer setting field1 = field1 * 1.10;
Example 2: Using a Where ClauseMyTable myTableBuffer; ; update_recordset myTableBuffer setting field1 = 1, field2 = fieldX + fieldY where field1 == 0;Example 3: Joining Tables in an Updatestatic void Join22aJob(Args _args) { TableEmployee tabEmpl; TableDepartment tabDept; TableProject tabProj; ; update_recordset tabEmpl setting currentStatusDescription = tabDept .DeptName + ", " + tabProj .ProjName join tabDept where tabDept .DeptId == tabEmpl .DeptId join tabProj where tabProj .ProjId == tabEmpl .ProjId; info(strFmt("Number of records updated is %1." ,tabEmpl .rowCount())); }Happy DAXing.........
No comments:
Post a Comment