FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse mod harbour
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
xBrowse mod harbour
Posted: Thu Sep 29, 2022 09:25 PM
Hello friends,

For learning, I made a small project with mod harbour and bootstrap table.

I would like to call "xBrowse" in mod harbour as easily as with Fivewin.

Here are the first steps.
Best regards,
Otto

Fivewin


mod harbour


Build in search

toggle







Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: xBrowse mod harbour
Posted: Fri Sep 30, 2022 12:03 AM
I changed the access to DBF and some options in bs-table.

data-search="true"
data-pagination="true"
data-height="600"
data-page-size="25"
data-toggle="table"




Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: xBrowse mod harbour
Posted: Fri Sep 30, 2022 08:35 AM
prevent unnecessary re-rendering


change during first rendering to none

Code (fw): Select all Collapse
 
cHtml += '<script>'
cHtml += 'document.getElementById("table").style.display = "none";'
cHtml += '</script>'



document.ready change to show rendered table

Code (fw): Select all Collapse
$("document").ready(function(){
document.getElementById("table").style.display = "block";
$('#table').bootstrapTable( 'resetView' , {height: 600} );
});




Continue the discussion