[[2011080910263048663 , 6318518 , FVB another component title 2, NEW , DEFAULT , /ExtViewer/OMSItem/displayTableExpansion/2011080910263048663+++++], [2011080910313148732 , 6318519 , FVB new fce title, NEW , DEFAULT , /ExtViewer/OMSItem/displayTableExpansion/2011080910313148732+++++], [2011080910213148644 , 6318516 , FVB new package title, NEW , DEFAULT , /ExtViewer/OMSItem/displayTableExpansion/2011080910213148644+++++], [2011080910213148653 , 6318517 , FVB new component title 1, NEW , DEFAULT , /ExtViewer/OMSItem/displayTableExpansion/2011080910213148653+++++], [2011080910413148757 , 6318520 , FVB another fce title, USED , DEFAULT , /ExtViewer/OMSItem/displayTableExpansion/2011080910413148757+++++], [2011080910513148825 , 6318521 , FVB sets are being created, NEW , DEFAULT , /ExtViewer/OMSItem/displayTableExpansion/2011080910513148825+++++], [2011080910513148834 , 6318522 , FVB new related title, NEW , DEFAULT , /ExtViewer/OMSItem/displayTableExpansion/2011080910513148834+++++], [2011080910563148843 , 6318523 , FVB this title is related, NEW , DEFAULT , /ExtViewer/OMSItem/displayTableExpansion/2011080910563148843+++++], [2011080911013148888 , 6205 , Mathematical Economics (edit), NEW , DEFAULT , /ExtViewer/OMSItem/displayTableExpansion/2011080911013148888+++++], [2011080912113249183 , 6318524 , Fee for Order Router, NEW , DEFAULT , /ExtViewer/OMSItem/displayTableExpansion/2011080912113249183+++++]]
<%@ page import="com.fheg.orderrouter.OMSItem" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="main" />
<g:set var="entityName" value="${message(code: 'OMSItem.label', default: 'Item')}" />
<title><g:message code="or.item.alias.list" /></title>
<g:javascript src="DataTables-1.9.0/media/js/jquery.js"/>
<g:javascript src="DataTables-1.9.0/media/js/jquery.dataTable.js"/>
<g:javascript src="order_router.js" />
<script type="text/javascript">
var baseUrl = "${createLink(controller: 'OMSItem', action: 'displayItemsTable')}"
function makeAjaxCall(){
var jsonData = ""
$.ajax({
type:"GET",
url: baseUrl,
contentType: "application/x-www-form-urlencoded; charset=utf-8",
dataType:"json",
async:false,
// data: "q=" +
success: function(data){
// var d = jQuery.parseJSON(data);
// alert(data[1].totalRecords);
// alert(data.results[1].description);
loadDataTable(data)
},
error: function(data){
alert('error')
}
})
}
$(document).ready(function() {
makeAjaxCall();
// $('table_id').dataTable();
} );
</script>
</head>
<body >
<div class="nav">
<span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
</div>
<div class="body">
<table id="tableid">
<thead>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<script type="text/javascript">
function loadDataTable(data){
var oTable = ${'tableid'}.dataTable({
"aaData": data,
"aoColumns": [
{ "sTitle": "ItemId" },
{ "sTitle": "Item" },
{ "sTitle": "Description" },
{ "sTitle": "Class" },
{ "sTitle": "Org. Code" },
{ "sTitle": "URL" }
]
})
}
</script>
<div id="searchArea">
<h3 class="searchHeading">Search: </h3>
<span><g:select id="selList" name="selListTypeId" onchange="setQueryLength(this)" from="${searchList}" value="aliasName" noSelection="['0':'--Select--']"></g:select></span>
<div id="searchTools">
<input class="searchBox styleBox" type="text" style="width:250px; height:25px;padding-top: .5em" id="querySearch" name="querySearch" />
<a class="button medium blue" href="#" onclick="buildJsonTable()" ><span>Submit</span></a>
</div>
</div>
</div>
</body>
</html>
It looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.