Table of Contents

Class Scripter

Inheritance
Scripter
Inherited Members
Namespace
TabularEditor.TOMWrapper.Utils
Assembly
TOMWrapper.dll

Various methods for scripting TOM objects into TMSL

public static class Scripter

Methods

ScriptAlter(TabularNamedObject)

Scripts an Alter TMSL

public static string ScriptAlter(TabularNamedObject obj)

Parameters

Type Name Description
TabularNamedObject obj

Returns

Type Description
string

ScriptCreate(TabularNamedObject)

Scripts a Create TMSL

public static string ScriptCreate(TabularNamedObject obj)

Parameters

Type Name Description
TabularNamedObject obj

Returns

Type Description
string

ScriptCreateOrReplace(Database)

Scripts the entire database as a CreateOrReplace

public static string ScriptCreateOrReplace(Database database)

Parameters

Type Name Description
Database database

Returns

Type Description
string

ScriptCreateOrReplace(TabularNamedObject)

Scripts the object as a CreateOrReplace TMSL

public static string ScriptCreateOrReplace(TabularNamedObject obj)

Parameters

Type Name Description
TabularNamedObject obj

Returns

Type Description
string

ScriptDelete(TabularNamedObject)

Scripts a Delete TMSL

public static string ScriptDelete(TabularNamedObject obj)

Parameters

Type Name Description
TabularNamedObject obj

Returns

Type Description
string

ScriptMergePartitions(IList<Partition>)

Scripts a Merge Partition TMSL

public static string ScriptMergePartitions(IList<Partition> obj)

Parameters

Type Name Description
IList<Partition> obj

Returns

Type Description
string

ScriptRefresh(IEnumerable<TabularNamedObject>, RefreshType)

Generates a Refresh TMSL script for the specified objects

public static string ScriptRefresh(IEnumerable<TabularNamedObject> objects, RefreshType refreshType = RefreshType.Automatic)

Parameters

Type Name Description
IEnumerable<TabularNamedObject> objects
RefreshType refreshType

Returns

Type Description
string

ScriptRefresh(TabularNamedObject, RefreshType)

Generates a Refresh TMSL script for the specified object

public static string ScriptRefresh(TabularNamedObject obj, RefreshType refreshType = RefreshType.Automatic)

Parameters

Type Name Description
TabularNamedObject obj
RefreshType refreshType

Returns

Type Description
string

ScriptTranslations(Model, IEnumerable<Culture>)

Scripts the translation

public static string ScriptTranslations(Model model, IEnumerable<Culture> translations)

Parameters

Type Name Description
Model model
IEnumerable<Culture> translations

Returns

Type Description
string