cnsCreateView

Allows to create a new view.

Synopsis

bool cnsCreateView(string view, langString displayNames [, langString separators);

Parameters

Parameter Description
view The ID path of the new view
displayNames The display name of the new view
separators The separator for the new view. The character "." is used per default.

Return value

Returns TRUE if successful or FALSE in case of an error.

Errors

-

Description

This function creates a new view with the given display name. Furthermore it is possible to define a separator.

Note:

The following characters are not allowed for separators: '(single quotation mark),"(quotation marks),*(asterisk),?(question mark).

Moreover, numbers and letters which are already used in the view or node name must not be used.

main()
{
  langString myLang;
  setLangString(myLang,0,"View123");
  setLangString(myLang,1,"View123");
  langString newSeparator;
  setLangString(newSeparator, 0, "-");
  setLangString(newSeparator, 1, "/");
  cnsCreateView("System1.View123:", myLang, newSeparator);
}

Availability

UI, CTRL