{
  "synLogic": "int $ret \u003d $api($1, $2);",
  "help": "The ns_encode_save_string is used to encode string and then save this encoded value to NS variable",
  "notes": "",
  "returns": "int",
  "arguments": "\u003ctable class\u003d\"newGuiTable\" style\u003d\"width:100%\" \u003e  \u003ctr\u003e \u003cth\u003e Argument \u003c/th\u003e  \u003cth\u003e Description \u003c/th\u003e  \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Parameter Value  \u003c/td\u003e \u003ctd\u003e This is a pointer to a string that contains the value to be encoded and saved to an NS variable. \u003c/td\u003e \u003c/tr\u003e  \u003ctr\u003e \u003ctd\u003e Parameter Name  \u003c/td\u003e   \u003ctd\u003e This is a pointer to a string that contains the name of the NS variable to which the encoded value will be saved. \u003c/td\u003e  \u003c/tr\u003e \u003c/table\u003e",
  "parameterization": "",
  "name": "ns_encode_save_string",
  "syntax": "int ns_encode_save_string(const char* param_value, const char* param_name)",
  "javaSyntax": "",
  "cEx": "flow()\n{\n  int encode_save;\n  encode_save = ns_encode_save_string(null, param);\n  printf(\"%d\", encode_save); \n}",
  "javaEx": "",
  "insertStrC": "ns_encode_save_string(const char* param_value, const char* param_name);",
  "insertStrJava": "",
  "description": "The ns_encode_save_string is used to encode string and then save this encoded value to NS variable",
  "component": [
    {
      "id": "$1",
      "type": "TEXT_VAR",
      "label": "Parameter Value",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter Parameter Value",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox":"If parameter value is a program variable.",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      }
    },
	{
      "id": "$2",
      "type": "TEXT_VAR",
      "label": "Parameter Name",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter Parameter Name",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox":"If parameter name is a program variable.",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      }
    },
	{
      "id": "$ret",
      "type": "TextField",
      "label": "Return Variable",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter Return Variable",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
	  "title": "First character must be Alpha.\r\nOther characters are Alpha, Numeric or Underscore",
      "validate": {
        "inputType": "Text",
		"pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,63}$",
        "disabled": false,
        "required": false,
        "min": 0,
        "max": 0,
        "method": "isValidVar(arg)"
      }
    }
  ]
}
