GetRouting

Description

Get nodes within a condition

Signature
SurveySchema GetRouting(string key, string projectId, bool projectSpecific)

Parameters

Name Data Type Description

key

string required

The authentication key

projectId

string required

ID of the project

projectSpecific

bool required

Not-in-use

Response

Data Type Description

ObjectStructure containing the Routing Nodes

Example

// Create instance of the webservice
var authoring = new AuthoringSoapClient();

//***************************************************
//
// Get Routing, Change, Update
//
//***************************************************

// Get the routing
SurveySchema def = authoring.GetRouting(key,projectID,true);

// Add a new Directive to Routing

// Create Directive
Directive directive = AuthoringUtil.NewDirective(DirectiveDataType.Single);
ArrayList nodes = new ArrayList((Array)def.Root.Nodes);
// Insert as item #3
nodes.Insert(3,directive);
def.Root.Nodes = (Node[])nodes.ToArray(typeof(Node));

// Update
authoring.Update(key,projectID,def);