yes, but they looks the same, so you need to provide more details
Hi again, the second code doesnt work and is what I've tried to modify. When I use the form and click the view button it does nothing.
Below is the code I have started but it does not work correctly, I believe it is nearly there;-
function viewOrder(){
var row = $('#dg').datagrid('getSelected');
if (row){
$('#fm').form('load',row);
url = '/include/functions/reports/purchase_order.php?id='+row.id;