{
  "synLogic": "int $ret = $api($1, $2);",
  "help": "The ns_save_string assigns the specified string to the NS parameter.To determine the value of the parameter, use the ns_eval_string api.",
  "notes": "",
  "returns": "int",
  "arguments": "",
  "parameterization": "You cannot use standard parameterization for any arguments in this function.",
  "name": "ns_save_string",
  "syntax": "int ns_save_string(const char* param_value, const char* param_name);",
  "javaSyntax": "int ns_save_string(const char* param_value, const char* param_name);",
  "cEx": "flow()\n{\n     //This sets the value of NS parameter PhaseType to Rampup.\n      ns_save_string(\"Rampup\",\"PhaseType\");\n\n}",
  "javaEx": "flow()\n{\n     //This sets the value of NS parameter PhaseType to Rampup.\n      nsApi.ns_save_string(\"Rampup\",\"PhaseType\");\n\n}",
  "insertStrC": "ns_save_string(const char* param_value, const char* param_name);",
  "insertStrJava": "ns_save_string(const char* param_value, const char* param_name);",
  "description": "Saves a string as a NS parameter.",
  "component": [
    {
      "id": "$1",
      "type": "TEXT_VAR",
      "label": "Variable Value",
      "labelVarCheckbox": "If Variable Value is a program variable.",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter value argument",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": true
      }
    },
    {
      "id": "$2",
      "type": "TextField",
      "label": "Variable Name",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "",
      "placeHolder": "Enter parameter name",
      "style": "",
      "isDisabled": "",
      "list": [],
      "validate": {
        "inputType": "Text",
        "required": true
      }
    },
    {
      "id": "$ret",
      "type": "TextField",
      "label": "Return Variable",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter return variable",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": true,
        "method": "isValidVar(arg)"
      }
    }
  ]
}
