2022.2

Table Of Contents
Method Description Script type
"getVariable()"on
thefacingpage
Retrievesavalueofavariablestoredintheboundariesobject. Boundaries
"set()"onpage373 Setsanewrecordboundary.(See:"Recordboundaries"onpage226.) Boundaries
"setVariable()"on
page374
Setsaboundariesvariabletothespecifiedvalue,automaticallycre-
atingthevariableifitdoesn'texistyet.
Boundaries
find()
Methodoftheboundariesobjectthatfindsastringinaregionofthedatasourcefile.Themethod
returnstheregioninwhichthestringwassearched(PDFfile)ortheexactregioninwhichthestring
wasencountered(Textfile).
Tocheckifthecalltoboundaries.find()wassuccessful,youcanreadtheregionobject'sproperty
found(see"region"onpage394).
Note: InPlanetPressConnect1.8andpreviousversions,theDataMapper'sboundaries.find
()functionreturnedtheregionsearchedwithinPDFfiles,whereasfortextfilesitreturnedthe
exactregionwherethetextwasfound.In2018.1thiswaschangedsothatboundaries.find
()onPDFswouldreturntheexactregionwherethetextwasfound,thesameasfortextfiles.
However,itwassubsequentlyfoundthatthiscouldcauseissueswithpreviouslycreatedtem-
platesusingthefunctiononPDFfiles.Consequently,thischangewasrevertedin2018.1.1.
find(stringToFind, in_Region)
FindsthestringstringToFindinarectangularregiondefinedbyin_Region.
stringToFind
Stringtofind.
in_Region
Thein_Regionregioncanbecreatedpriortothecalltofind()withtheregion.createRegion()method.It
dependsonthetypeofdatasourcehowaregionisdefined;see"createRegion()"onpage395.
WhenusedtosearchthroughaTextfile,thefind()methodreturnsadifferentregionobject(see
"region"onpage394)whoserangepropertyisadjustedtopointtotheexactphysicallocationwhere
thematchwasfound.Thiswillalwaysbeasubsetofthein_Region.rangeproperty.Itcanbeused
todeterminetheexactlocationwherethematchoccurred.
Useboundaries.get()toretrievetheactualtextfromtheresultingregion;see"get()"onthefacing
page.
Page 371