<% if( object.title != '' ) { %>
<% if( object.icon != '' ) { %><% } %>
<% if( object.detailwindow != '' ) { %><% } %><% if( object.collapsable == 'yes' ) { %>
<% } %>
<% } %><% if( object.cansearch == 'yes' || (object.pagination != '' && object.pagination != 'no') ) { %>
<% if( object.paginationfrom ) { %><%- object.paginationfrom %>-<%- parseInt(object.paginationfrom) + parseInt(object.paginationsize) - 1 > parseInt(object.paginationtotal) ? object.paginationtotal : parseInt(object.paginationfrom) + parseInt(object.paginationsize) - 1 %> de <%- object.paginationtotal %><% } %>
<% } %>
<% if( object.renderoptions=='client' ) { %><% calcexpressionswoc(object) %><% } %>data-link="#unidades/verunidad?idunidad=$id"<% } %> <% if( object.target != '' ) { %>data-target=""<% } %> <% if( object.detailwindow != '' ) { %>data-detail=""<% } %> <% if( object.pagination != '' && object.pagination != 'no' ) { %>data-pagination=""<% } %> style=" <% if( object.collapsable == 'yes initially collapsed' ) { %>display: none;<% } %> width:100%; " class="table table-primary vertical <%- getwidthclass(object.width) %> <%- object.cansort == 'yes' ? 'cansort' : '' %>" data-defaultsort="" data-sortby="" data-messageonnorows="" <% if( object.datasource != '' ) { %>data-dependencies="<%- arrayToString(sqldependencies(object.datasource), ',') %>"<% } %> ><% if( object.renderoptions=='client' ) { %><% if( object.children.length == 0 ) { %><%- object.buildheader() %><% } %><% calcexpressions(object.children.where('type', 'header'), object.result ? object.result.transpose() : null) %>data-href=""<% } %> <% if( object.target!='' ) { %>data-target=""<% } %> data-id="" <% if( object.delete!='' ) { %>data-delete=""<% } %> <% if( object.confirmdelete!='' ) { %>data-confirmdelete=""<% } %> data-editable="" ><% if( object.parent.multiplerowselect == 'yes' ) { %><% } %><% } %><% if( object.renderoptions=='client' ) { %><% if( object.children.length == 0 ) { %><%- object.buildrows() %><% } %> <% var _groups = object.result ? object.result.groupby(object.groupby_efe) : [[{}]]; for( var _i1 = 0; _i1 < _groups.length; _i1++ ) { var _rows = _groups[_i1]; console.log("_rows table !", _rows); %> <% calcexpressions(object.children.where('type', 'headergroup'), _rows.transpose()); %><% var _foreach = _rows; if( _foreach ) { for( var _i = 0; _i < _foreach.length; _i++ ) { object.each = _foreach[_i]; %><% calcexpressions(object.children.where('type', 'body'), object.each) %>data-href="#unidades4/verunidad?idunidad=$id"<% } %> <% if( object.target!='' ) { %>data-target=""<% } %> data-id="" <% if( object.delete!='' ) { %>data-delete=""<% } %> <% if( object.confirmdelete!='' ) { %>data-confirmdelete=""<% } %> data-editable="" ><% if( object.parent.multiplerowselect == 'yes' ) { %><% } %><% }} %><% calcexpressions(object.children.where('type', 'footergroup'), _rows.transpose()) %> <% } %> <% } %><% if( object.renderoptions=='client' ) { %><% calcexpressions(object.children.where('type', 'footer'), object.result ? object.result.transpose() : null) %><% } %><% if( object.renderoptions!='client' ) { %>data-href=""<% } %> <% if( object.target!='' ) { %>data-target=""<% } %> data-id="" <% if( object.delete!='' ) { %>data-delete=""<% } %> <% if( object.confirmdelete!='' ) { %>data-confirmdelete=""<% } %> data-editable="" ><% if( object.parent.multiplerowselect == 'yes' ) { %><% } %><% } %><% if( object.renderoptions!='client' ) { %>
data-href="#unidades4/verunidad?idunidad=$id"<% } %> <% if( object.target!='' ) { %>data-target=""<% } %> data-id="" <% if( object.delete!='' ) { %>data-delete=""<% } %> <% if( object.confirmdelete!='' ) { %>data-confirmdelete=""<% } %> data-editable="" ><% if( object.parent.multiplerowselect == 'yes' ) { %><% } %><% } %><% if( object.renderoptions!='client' ) { %><% } %>