Page 1 of 1

new nuBuilder - breadcrumbholder length

PostPosted: Thu Oct 10, 2019 4:16 am
by Janusz
Steven,
On the new version of nuBuilder the breadcrumbholder and actionholder length is frozen bazed on the browse table width and after the length remains the same on the on the edit form.
The case belowe is with the form placed inside the iframe.
Would it be possible to have the breadcrumb adjusted to the whole length of the iframe?

Image
https://drive.google.com/open?id=1TbFb1DDVHQVKd-7cRsJ2XsVCLsB-oVgr
Image
https://drive.google.com/open?id=1nccUQPHGZz7uuN2y-JPKbXL_Ew8gAEii

Re: new nuBuilder - breadcrumbholder length

PostPosted: Fri Oct 11, 2019 3:24 am
by Janusz
Steven,
I have taken the recent update from GitHub and in this one the breadcrumholder width on Edit from is fine :D
https://drive.google.com/open?id=13ETFxgwwsgGYWh6Zg80LLuQY7xIzwdAn
On the browse form it stays adjusted to the table width.
I have some forms with plenty of additonal quick search buttons:
https://drive.google.com/open?id=1DKvqKpXGFyvU1HOUMAc_eDQpLDUQXx15
Would it be possible to extend the holder as well for whole iframe width on the browse form?
Or if you would like to keep it like it is - could you please suggest what code to use locally on the JS form level to mofify the length of the holders to the iframe width?

Re: new nuBuilder - breadcrumbholder length

PostPosted: Fri Oct 11, 2019 6:43 pm
by kev1n
Janusz wrote:Would it be possible to extend the holder as well for whole iframe width on the browse form?
Or if you would like to keep it like it is - could you please suggest what code to use locally on the JS form level to mofify the length of the holders to the iframe width?


Could you upload a sample db? Then I'll try to provide you with a fix.

Re: new nuBuilder - breadcrumbholder length

PostPosted: Sat Oct 12, 2019 1:25 am
by Janusz
Hi Kev1n,
Thanks for reply.
I started to build a quick example in the new nuBuilder and noticed that currently there is diferent approach used for the browse forms.
They are by default full screen width - you can change the relative column width but in total they are full screen.
So in the new version I am not able to create the case which I have when I transfer old database to the new nuBuilder.
When I import databse from previous release to the new nuBuilder then tables are not fullscreen.
Potentially might be more differences - so for the moment I will stay with old databases on the previous release and the new ones will be with the new version.

Re: new nuBuilder - breadcrumbholder length

PostPosted: Sat Oct 12, 2019 3:58 pm
by Janusz
Kev1n,
I added the function
Code: Select all
function nuResizeBrowseColumns(){
}

as you posted in the :
https://forums.nubuilder.com/viewtopic.php?f=19&t=10053#p19680
and it solved as well the issues with breadcrumb length when importing databases from previous version :D
Thanks a lot.

Re: new nuBuilder - breadcrumbholder length

PostPosted: Sat Oct 12, 2019 5:12 pm
by kev1n
Janusz wrote:Kev1n,
I added the function
Code: Select all
function nuResizeBrowseColumns(){
}

as you posted in the :
https://forums.nubuilder.com/viewtopic.php?f=19&t=10053#p19680
and it solved as well the issues with breadcrumb length when importing databases from previous version :D
Thanks a lot.


There's an issue with that. When a dialog is opened (e.g. by a lookup field), the columns squeeze together and the dialog width is very small.

This enhanced code will still call the original nuResizeBrowseColumns() function if the document is a "dialog".


Code: Select all
function nuResizeBrowseColumnsFix() {
    if (nuDocumentID == parent.nuDocumentID) {
      // do nothing
    } else {
        // call original message   
        _nuResizeBrowseColumns();
    }
}

var _nuResizeBrowseColumns = nuResizeBrowseColumns;
var nuResizeBrowseColumns = function() {
   nuResizeBrowseColumnsFix();
}

Re: new nuBuilder - breadcrumbholder length

PostPosted: Mon Oct 14, 2019 3:23 pm
by Janusz
Thanks for this update.
Can be helpful option to create not full screen browse form table - if someone needs.

What I undesrtood from another post from Steven - the new version will rather keep the full size window browse form.
You can pad the right by adding a wide column with nothing in it.