Hey all,
I'm totally stuck with this! I can easily use something like:
and
to show the correct tables. The problem with this is it seems very clunky! The only bit of the table that needs updating is the opening tag:
<table data-options: data-options="
singleSelect:true,
collapsible:true,
rownumbers:true,
fitColumns:true,
data:data,
view:groupview,
groupField:'productid',
groupFormatter:function(value,rows){
return value + ' - ' + rows.length + ' Item(s)';
}
Does anyone have any ideas? I'm used to being able to solve a problem like this in php by storing the relevant code in a variable, and then being able to echo it when it's needed.
Thanks
AJLX