| DRS - Help | |
| Variables |
Applies to: wmDRS.dll
The following variables are available within DRS scripts and are replaced with their appropriate value:
<DRDKey>. can be omitted if you are referring the last used DRD or if you have set the DRD key previously with the USEDRD command.
<DMSName>. can be omitted if you are referring to the last used DMS or if you have set the DMS previously with the USEDMS command.
The following variables are always resolved during script runtime:
|
Variable |
Description |
| %[<DRDKey>.]DRDSTRING% | DRD data as string (you must use the BUILDDRDSTRING command before to update the DRD string to match the current DRD data contents. |
| %[<DRDKey>.]DRDACTION% | Action option of addressed DRD. |
| %[<DRDKey>.]DRDPURPOSE% | Purpose option of addressed DRD. |
| %[<DRDKey>.]DRDDOCID% | <Lib>-#<DocNr> (Lib and DocNr option of addressed DRD). |
| %[<DRDKey>.]DRDDOCFILE% | DocFile option of addressed DRD. |
| %[<DRDKey>.]DRDDOCFULLPATH% | Full path of DocFile option in addressed DRD. |
| %[<DRDKey>.]DRDDOCPATH% | Path (without drive) of DocFile option in addressed DRD. |
| %[<DRDKey>.]DRDDOC[FILE]EXT% | File extension of DocFile option in addressed DRD. |
| %[<DRDKey>.]DRDDOCFILENAME% | DocFile option of addressed DRD without path. |
| %[<DRDKey>.]DRDDOCFNAME% | DocFile option of addressed DRD without extension and without path. |
| %[<DRDKey>.]DRDLIB% | Lib option of addressed DRD. |
| %[<DRDKey>.]DRDDOCNR% | DocNr option of addressed DRD. |
| %[<DRDKey>.]DRDVERSION% | Version option of the addressed DRD. |
| %[<DRDKey>.]DRDTITLE%|%[<DRDKey>.]DRDDOCNAME% | Title option of the addressed DRD. |
| %[<DRDKey>.]DRDFILE% | DRD filename (if DRD was previously saved to a file or has been loaded from a file). |
| %[<DRDKey>.]DRDFILENAME% | DRD filename without path (if DRD was previously saved to a file or has been loaded from a file). |
| %[<DRDKey>.]DRDFNAME% | DRD filename without path and extension (if DRD was previously saved to a file or has been loaded from a file). |
| %[<DRDKey>.]DRDINDEX% | DRD index (if DRD was previously saved to a file or has been loaded from a file). |
| %[<DRDKey>.]DRDCOUNT% | Total number of DRDs in currently open DRD file. |
| %[<DRDKey>.]DRDORIGINAL% | Original DRD string (if DRD has been loaded from a file). |
| %[<DRDKey>.]DRDCURRENTSECTION% | Name of last addressed section in DRD using the ADDDRDLINE command. |
| %[<DRDKey>.]DRDROUTEERRORSTOAPPERRS% | Returns 1 if occuring DRD errors are added to script errors automatically (which is usually the case if DRD.RouteErrorsToAppErrs property has not been changed by a called VBScript). |
| %[<DRDKey>.]DRDURL% | Returns an URL corresponding to the Lib, DocNr and Version options. Complete URL style is depending on DMS option. |
| %[<DRDKey>.]DRDDMS% | DMS option of the addressed DRD. |
| %<DRDKey>.OPT.<Name>%|%DRD.OPT.<Name>% | Value of the specified option name of the addressed DRD (OPT section). |
| %<DRDKey>.VAR.<Name>%|%DRD.VAR.<Name>% | Value of the specified variable name of the addressed DRD (VAR section). |
| %<DRDKey>.PRF.<Name>%|%DRD.PRF.<Name>% | Value of the specified profile field of the addressed DRD (PRF section). |
| %<DRDKey>.SEC.<usr.|grp.><Name>%|%DRD.SEC.<usr.|grp.><Name>% | Value of the specified security entry of the addressed DRD (SEC section). |
| %<DRDKey>.CMP.<Version>%|%DRD.CMP.<Version>% | Filename of the specified component entry of the addressed DRD (CMP section). |
| %<DRDKey>.TAG.<Name>%|%DRD.TAG.<Name>% | Value of the specified tag name of the addressed DRD (TAG section - not saved when a DRD is saved!). |
| %LASTUSEDDMS% | Currently affected DMS if DMS parameter would be missing. Usually the parameter passed to last processed USEDMS code line. |
| %LASTUSEDDRD% | Currently affected DRD if DRD parameter would be missing. Usually the parameter passed to last processed USEDRD code line. |
DRD variables are usually resolved upon processing against DMS. With the RESOLVEDRDVARS command they can be resolved immediately during script runtime (see also DRD Definition documentation):
|
Variable |
Description |
| %LIB%|%LIBRARY% | Lib option of current DRD. |
| %DOCNR% | DocNr option of current DRD. |
| %VERSION% | Version option of current DRD. |
| %TITLE%|%DOCNAME% | Title option of current DRD. |
| %DOCFILE% | DocFile option of current DRD. |
| %DOCID% | <Library>-#<DocNr> |
| %DOCIDLONG% | <Library>-#<DocNr>-v<Version> - <Title> |
| %DRDFILE%|%DRDFULLNAME% | Filename of current DRD file. |
| %DRDFULLPATH% | Full path to current DRD file. |
| %DRDPATH% | Path to current DRD file (without drive information and with leading backslash). |
| %DRDEXT% | File extension of current DRD file (usually "DRD"). |
| %DRDFILENAME% | Filename (without path) of current DRD file. |
| %DRDFNAME% | Filename without extension (and without path) of current DRD file. |
| %DRDFILEDATE% | File date of current DRD file in default date format (from control panel settings). |
| %DRDFILETIME% | File time of current DRD file in default time format (from control panel settings). |
| %DRDFILEISODATE% | File date of current DRD file in ISO format (yyyy-mm-dd). |
| %DRDFILEISOTIME% | File time of current DRD file in ISO format (hh:nn:ss). |
| %DRDFILEDATE:<Format>% | File date/time of current DRD file in specified format (use abbrevations shown above or see application script date and time formats). |
| %DRDINDEX% | Index of current DRD in open DRD file. |
| %DRDCOUNT% | Total number of DRDs in currently open DRD file. |
| %DOCFILE%|%DOCFULLNAME%|%DOCUNCNAME% | DocFile option of current DRD. |
| %DOCFULLPATH% | Document file full path of current DRD. |
| %DOCPATH% | Document file path (without drive information) of current DRD. |
| %DOCEXT%|%DOCFILEEXT% | Document file extension of current DRD. |
| %DOCFILENAME% | Document filename (without path) of current DRD. |
| %DOCFNAME% | Document filename without extension (and without path) of current DRD. |
| %DOCFILEDATE% | File date of current DRD document file in default date format (from control panel settings). |
| %DOCFILETIME% | File time of current DRD document file in default time format (from control panel settings). |
| %DOCFILEISODATE% | File date of current DRD document file in ISO format (yyyy-mm-dd). |
| %DOCFILEISOTIME% | File time of current DRD document file in ISO format (hh:nn:ss). |
| %DOCFILEDATE:<Format>% | File date/time of current DRD document file in specified format (use abbrevations shown above or see application script date and time formats). |
| %DIR<Index>% | n. subfolder in current DRD document file path. For a document file C:\Poll\Dept01\TestDoc.doc %DIR1% results in "C:". |
| %LASTDIR<Index>% | n. subfolder in current DRD document file path but counted from last/deepest subfolder. For a document file C:\Poll\Dept01\TestDoc.doc %LASTDIR1% results in "Dept01". |
| %OPT.<Name>% | Value of the specified option name of the current DRD (OPT section). |
| %VAR.<Name>% | Value of the specified variable name of the current DRD (VAR section). |
| %PRF.<Name>% | Value of the specified profile field of the current DRD (PRF section). |
| %SEC.<usr.|grp.><Name>% | Value of the specified security entry of the current DRD (SEC section). |
| %CMP.<Version>% | Filename of the specified component entry of the current DRD (CMP section). |
| %TAG.<Name>% | Value of the specified tag name of the current DRD (TAG section - not saved when a DRD is saved!). |
Further available all wmACScr1 variables.