Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt

Represents the settings set by a custom node, containing methods for retrieving setting values.


Code Block
public class Settings

Example

The following example demonstrates retrieving a few settings of various types using the Settings class. These settings are controlled by the user interface established by Custom Node HTML. In the following code, a target index and file path are retrieved from the node settings using GetIntSetting method and the GetStringSetting method. 

Code Block
public class
{
    var targetPage = Settings.GetIntSetting("Target Page");
	var newPagePath = Settings.GetStringSetting("New Page Path");
	Process.Document.ReplacePage(targetPage, newPagePath);
}

Remarks

The Settings class is the main way of interacting with custom node settings. It retrieves setting values that are controlled and set by the user interface of the custom node. Settings can be controlled in a default capacity within the Custom Nodes UI of the administration panel, or per workflow at design time, when a Custom Node is dropped onto the surface. The settings of a node are established by values entered into custom HTML stored in the node.html file within the custom node. Information about how to design Custom Node HTML can be found here: Designing Custom Node HTML.

Properties

Dictionary<string, Setting>

Dictionary containing the settings set by the Custom Node.

Methods

Insert excerpt
CN:GetSetting MethodCN:
GetSetting Method
nopaneltrue

Insert excerpt
CN:GetStringSetting MethodCN:
GetStringSetting Method
nopaneltrue

Insert excerpt
CN:GetIntSetting MethodCN:
GetIntSetting Method
nopaneltrue

Insert excerpt
CN:GetBooleanSetting MethodCN:
GetBooleanSetting Method
nopaneltrue

Insert excerpt
CN:GetListSetting MethodCN:
GetListSetting Method
nopaneltrue