engine:sync:addmovedateadjustment
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
engine:sync:addmovedateadjustment [2018/10/18 23:01] – [Example] Scott Cunliffe | engine: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**// | + | |
- | string //field;//\\ | + | '' |
- | string //filter;//\\ | + | |
- | integer //years;//\\ | + | |
- | integer //months;//\\ | + | |
- | integer //days;//\\ | + | |
- | |field | + | ^ Variable ^ Type ^ Description ^ Min Length ^ Max Length ^ Min Value ^ Max Value ^ |
- | |filter |A filter value to compare the field value against. | | + | |field |
- | |years |The number of years to add to the Next Move Date. | | + | |filter |
- | |months |The number of months to add to the Next Move Date. | | + | |years | Integer |
- | |days |The number of days to add to the Next Move Date.| | + | |months | Integer |
+ | |days | Integer | ||
==== Example ==== | ==== Example ==== | ||
+ | Add 7 years to the Next Move Date if the Description contains YEARLY | ||
- | <sxh> | + | <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, | Extract(MOVEDATE, | ||
- | # | + | |
# Set the MOVEDATE format. | # Set the MOVEDATE format. | ||
SetMoveDateFormat(" | SetMoveDateFormat(" | ||
- | # | + | |
# 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, | Extract(DESCRIPTION, | ||
- | # | + | |
# 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, | AddMoveDateAdjustment(DESCRIPTION, | ||
- | </sxh> | + | </code> |
+ | |||
+ | ===== See Also ===== | ||
+ | |||
+ | [[engine: | ||
+ | [[cli: | ||
+ | [[cli: | ||
+ | |||
+ | {{tag> import_engine}} |
engine/sync/addmovedateadjustment.1539903667.txt.gz · Last modified: 2025/01/21 22:07 (external edit)