Skip to main content

SetLayoutRTF

Structure

SetLayoutRTF(sLayoutRTF) : String

Type

Procedure

Description

Use this function to set the full rtf text (including formatting) for the current layout. Typically this function is only used during 'Before Layout Merge' trigger action), and is used in conjunction with the GetLayoutRTF function so custom replacements can be executed through scripting.

Parameters

ParameterTypeDescription
sLayoutRTFStringfull rtf text (including formatting)

Example

sLayoutRTF = GetLayoutRTF
if not InProfileGroup("EDITORS", LookupCurrentUser) then
sLayoutRTF = Replace(sLayoutRTF, "!EMBED=WORK ORDER EDIT!", "")
End If
SetLayoutRTF(sLayoutRTF)