In tablename-dv.js:

$j(function() {
	$j('h1').addClass('col-sm-8');
	$j('h1').after('<h1 class="col-sm-4">
		<form id="form_search" action="table6_view.php" method="post">
		<div class="input-group" id="quick-search">
		<input type="text" id="SearchString" name="SearchString"  class="form-control" placeholder="Quick Search">
			<span class="input-group-btn">
			<button name="Search_now" value="1" id="Search_now" type="submit"  class="btn btn-default" title="Quick Search">
			<i class="glyphicon glyphicon-search"></i>
			</button></span></div></form></h1>');
	})

In tablename _init function

	function TABLE_init(&$options, $memberInfo, &$args) {
		if (!empty($_POST['SearchString']) && $_POST['current_view']='DV') {
			$res=sql("SELECT * from TABLE where containercode like '%".$_POST['SearchString']."%'",$eo);
			if (db_num_rows($res) == 1) {
				$row = db_fetch_assoc($res);
				redirect("table6_view.php?SelectedID=".$row['TABLE_PK']);
				exit;
			}
		}