TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


engine:sync:addmovedateadjustment

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
engine:sync:addmovedateadjustment [2018/10/18 23:00] – [Example] Scott Cunliffeengine:sync:addmovedateadjustment [2025/01/21 22:07] (current) – external edit 127.0.0.1
Line 1: Line 1:
-addmovedateadjustment +====== AddMoveDateAdjustment ======
- +
-==== AddMoveDateAdjustment ====+
 Add a specific number of days, months, years to the Next Move Date if a field value matches a filter value. Add a specific number of days, months, years to the Next Move Date if a field value matches a filter value.
  
-==== Phase ====+===== Phase =====
 This instruction is used by the TapeTrack Synchronization Engine. This instruction is used by the TapeTrack Synchronization Engine.
  
-==== Syntax ==== +===== Syntax =====
-**AddMoveDateAdjustment**//(field, filter, years, months, days);//+
  
-string //field;//\\ +''AddMoveDateAdjustment(fieldfilteryearsmonthsdays);''
-string //filter;//\\ +
-integer //years;//\\ +
-integer //months;//\\ +
-integer //days;//\\+
  
-|field  |The field to compare against. | +^ Variable ^ Type ^ Description ^ Min Length ^ Max Length ^ Min Value ^ Max Value ^ 
-|filter |A filter value to compare the field value against. | +|field  | String | The field to compare against. | 1|40
-|years |The number of years to add to the Next Move Date. | +|filter | String | A filter value to compare the field value against. |1|256
-|months |The number of months to add to the Next Move Date. | +|years | Integer | The number of years to add to the Next Move Date. |1|10|-214748364 | 2147483647
-|days |The number of days to add to the Next Move Date.|+|months | Integer | The number of months to add to the Next Move Date. |1|10|-214748364 | 2147483647
 +|days | Integer | The number of days to add to the Next Move Date.|1|10|-214748364 | 2147483647|
  
 ==== Example ==== ==== Example ====
-**AddMoveDateAdjustment: Add 7 years to the Next Move Date if the Description contains YEARLY** 
-|Extract(MOVEDATE, 4, 10, 0); |Extract the MOVEDATE from offset 4, length 10 of the report body.| 
-|SetMoveDateFormat("%%d/%%m/%%Y");|Set the MOVEDATE format.| 
-|Extract(DESCRIPTION, 5, 100, 0);|Extract the DESCRIPTION from offset 5, length 100 of the report body.| 
-|AddMoveDateAdjustment(DESCRIPTION, "*YEARLY*"; 7, 0, 0);|Adjust the extracted MOVEDATE by 7 years if the DESCRIPTION matches the pattern *YEARLY*.|   
  
-<sxh>+Add 7 years to the Next Move Date if the Description contains YEARLY 
 + 
 +<code>
 # #
 # Extract the MOVEDATE from offset 4, length 10 of the report body. # Extract the MOVEDATE from offset 4, length 10 of the report body.
 Extract(MOVEDATE, 4, 10, 0); Extract(MOVEDATE, 4, 10, 0);
-#+
 # Set the MOVEDATE format. # Set the MOVEDATE format.
 SetMoveDateFormat("%%d/%%m/%%Y"); SetMoveDateFormat("%%d/%%m/%%Y");
-#+
 # Extract the DESCRIPTION from offset 5, length 100 of the report body. # Extract the DESCRIPTION from offset 5, length 100 of the report body.
 Extract(DESCRIPTION, 5, 100, 0); Extract(DESCRIPTION, 5, 100, 0);
-#+
 # Adjust the extracted MOVEDATE by 7 years if the DESCRIPTION matches the pattern *YEARLY*. # Adjust the extracted MOVEDATE by 7 years if the DESCRIPTION matches the pattern *YEARLY*.
 AddMoveDateAdjustment(DESCRIPTION, "*YEARLY*"; 7, 0, 0); AddMoveDateAdjustment(DESCRIPTION, "*YEARLY*"; 7, 0, 0);
-</sxh>+</code> 
 + 
 +===== See Also ===== 
 + 
 +[[engine:import|Import Engine Functions]] \\ 
 +[[cli:sync_fields|Sync Engine Fields]] \\ 
 +[[cli:tmss10sync|TMSS10Sync]] 
 + 
 +{{tag> import_engine}}
engine/sync/addmovedateadjustment.1539903628.txt.gz · Last modified: 2025/01/21 22:07 (external edit)