switch ($index) { case C_TRANSACTIONINDEX["SO_CREATE_HEADER"]: /* New Sales Order Header */ $A_columnList = array(); $A_aliasPattern = array(); $A_flippedResultSet = array(); $resultSet = array(); $S_commaSeparatedKey = ""; $S_commaSeparatedValue = ""; $_POST["CNL_1501"] = "NULL"; $nav_obj->A_propertyList = $_POST; $salesType = $nav_obj->s_salesType; $latestID = $nav_obj->nwx_dbc_create_sales_header(); if ($nav_obj->s_transSucceeded == DBO_SUCCESS_CREATE) { $A_aliasPattern = C_TRANSLATION_DICTIONARY["TR002"]; $A_columnList = $nav_obj->nwx_translate_alias_to_column($A_aliasPattern); $resultSet = $nav_obj->nwx_dbc_get_header_row($latestID, $A_columnList); $resultSet = $resultSet[0]; $A_flippedResultSet = array_flip($resultSet); $S_commaSeparatedKey = implode(",", $A_flippedResultSet); $S_commaSeparatedValue = implode(",", $resultSet); /* Print the latest header created */ print $S_commaSeparatedKey . "[++]" . $S_commaSeparatedValue; } //end condition break; case C_TRANSACTIONINDEX["SO_CREATE_DETAIL"]: /* New Sales Order Detail */ $A_columnList = array(); $A_aliasPattern = array(); $A_flippedResultSet = array();