{
  "synLogic": "int $ret \u003d $api($1, $2, $3, $4, $5, $6, $7, $8, $9, $10);",
  "help": "Please note that ns_db_odbc_init(), ns_db_connect(), ns_db_alloc_stmt_handle() and ns_db_prepare() API\u0027s must be called in this sequence before calling this API.",
  "notes": "",
  "returns": "This api returns '0' on success and '-1' on failure.",
  "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 conn_str \u003c/td\u003e                 \u003ctd\u003e This is the connection string that is used to connect the Database Source using ODBC \u003c/td\u003e             \u003c/tr\u003e      \u003c/table\u003e",
  "parameterization": "",
  "name": "ns_db_bindparameter",
  "syntax": "int ns_db_bindparameter(void *in_stmt, unsigned short p_no, signed short int io_type, signed short int v_type, signed short int p_type, unsigned long col_size, signed short int d_digit, void             *p_value_ptr, long buf_len, long *strlen_indptr)",
  "javaSyntax": "",
  "cEx": "If(ns_db_bindprepare(in_stmt, 1, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR, 10, 0, department, 0, \u0026plength) \u003d\u003d -1)\n{\n  handle_error();\n}",
  "javaEx": "",
  "insertStrC": "ns_db_bindparameter(void *in_stmt, unsigned short p_no, signed short int io_type, signed short int v_type, signed short int p_type, unsigned long col_size, signed short int d_digit, void             *p_value_ptr, long buf_len, long *strlen_indptr);",
  "insertStrJava": "",
  "description": "The ns_db_bindparameter API binds a buffer to a parameter marker in an SQL statement.\n",
  "component" : [
         {
      "id": "$1",
      "type": "TEXT_VAR",
      "label": "Statement",
      "labelVarCheckbox": "If statement is a program variable.",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter the attribute value",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": true
      }
    },
    {
      "id": "$2",
      "type": "TextField",
      "label": "Parameter number",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter parameter number",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Number",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 2147483647,
        "method": ""
      }
    },
    {
      "id": "$3",
      "type": "Dropdown",
      "label": "Parameter Type",
      "value": SQL_PARAM_INPUT,
      "css": "p-grid p-align-center w-100-p",
      "title": "Attribute need to be retrieved",
      "placeHolder": "select attribute name",
      "style": "",
      "isDisabled": "",
      "list": [
        {
          "label": "SQL_PARAM_INPUT",
          "value": SQL_PARAM_INPUT
	},
        {
          "label": "SQL_PARAM_INPUT_OUTPUT",
          "value": SQL_PARAM_INPUT_OUTPUT
 	},
         {
          "label": "SQL_RESULT_COL",
          "value": SQL_RESULT_COL
        },
         {
          "label": "SQL_PARAM_OUTPUT",
          "value": SQL_PARAM_OUTPUT
        },
         {
          "label": "SQL_RETURN_VALUE",
          "value": SQL_RETURN_VALUE
        }
      ],
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      }
    },
     {
      "id": "$4",
      "type": "Dropdown",
      "label": "C datatype",
      "value": SQL_C_CHAR,
      "css": "p-grid p-align-center w-100-p",
      "title": "Attribute need to be retrieved",
      "placeHolder": "select attribute name",
      "style": "",
      "isDisabled": "",
      "list": [
        {
          "label": "SQL_C_CHAR",
          "value": SQL_C_CHAR
        },
        {
          "label": "SQL_C_LONG",
          "value": SQL_C_LONG
        },
         {
          "label": "SQL_C_SHORT",
          "value": SQL_C_SHORT
        },
         {
          "label": "SQL_C_FLOAT",
          "value": SQL_C_FLOAT
        },
         {
          "label": "SQL_C_DOUBLE",
          "value": SQL_C_DOUBLE
        }
      ],
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      }
    },
     {
      "id": "$5",
      "type": "Dropdown",
      "label": "SQL datatype",
      "value": SQL_CHAR,
      "css": "p-grid p-align-center w-100-p",
      "title": "Attribute need to be retrieved",
      "placeHolder": "select attribute name",
      "style": "",
      "isDisabled": "",
      "list": [
        {
          "label": "SQL_CHAR",
          "value": SQL_CHAR
        },
        {
          "label": "SQL_INTEGER",
          "value": SQL_INTEGER
        },
         {
          "label": "SQL_SMALLINT",
          "value": SQL_SMALLINT
        },
         {
          "label": "SQL_REAL",
          "value": SQL_REAL
        },
         {
          "label": "SQL_DOUBLE",
          "value": SQL_DOUBLE
        }
      ],
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      }
    },
    {
      "id": "$6",
      "type": "TextField",
      "label": "Column Size",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter size of column",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Number",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 2147483647,
        "method": ""
      }
    },
    {
      "id": "$7",
      "type": "TextField",
      "label": "Decimal digit",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter decimal digit of the column",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Number",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 2147483647,
        "method": ""
      }
    },
    {
      "id": "$8",
      "type": "TEXT_VAR",
      "label": "Buffer",
      "labelVarCheckbox": "If buffer is a program variable.",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter pointer to a buffer for the parameter's data",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": true
      }
    },
    {

      "id": "$9",
      "type": "TextField",
      "label": "Buffer length",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter Length of the p_value_ptr buffer in bytes",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Number",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 2147483647,
        "method": ""
      }
    },
    {
      "id": "$10",
      "type": "TEXT_VAR",
      "label": "Buffer for parameter length",
      "labelVarCheckbox": "If Buffer for parameter length is a program variable.",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter pointer to a buffer for the parameter's length",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": true
      }
    }

  ]
}
