Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

new nuBuilder - breadcrumbholder length

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
Janusz
nuBuilder Team
Posts: 508
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 10 times
Been thanked: 18 times

new nuBuilder - breadcrumbholder length

Unread post 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=1TbFb1 ... VCLsB-oVgr
Image
https://drive.google.com/open?id=1nccUQ ... L_Ew8gAEii
If you like nuBuilder, please leave a review on SourceForge
Janusz
nuBuilder Team
Posts: 508
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 10 times
Been thanked: 18 times

Re: new nuBuilder - breadcrumbholder length

Unread post 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=13ETFx ... QY7xIzwdAn
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=1DKvqK ... QpLDUQXx15
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?
If you like nuBuilder, please leave a review on SourceForge
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: new nuBuilder - breadcrumbholder length

Unread post 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.
Janusz
nuBuilder Team
Posts: 508
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 10 times
Been thanked: 18 times

Re: new nuBuilder - breadcrumbholder length

Unread post 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.
If you like nuBuilder, please leave a review on SourceForge
Janusz
nuBuilder Team
Posts: 508
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 10 times
Been thanked: 18 times

Re: new nuBuilder - breadcrumbholder length

Unread post by Janusz »

Kev1n,
I added the function

Code: Select all

function nuResizeBrowseColumns(){
}
as you posted in the :
https://forums.nubuilder.cloud/viewtopic. ... 053#p19680
and it solved as well the issues with breadcrumb length when importing databases from previous version :D
Thanks a lot.
If you like nuBuilder, please leave a review on SourceForge
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: new nuBuilder - breadcrumbholder length

Unread post by kev1n »

Janusz wrote:Kev1n,
I added the function

Code: Select all

function nuResizeBrowseColumns(){
}
as you posted in the :
https://forums.nubuilder.cloud/viewtopic. ... 053#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();
}
Janusz
nuBuilder Team
Posts: 508
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 10 times
Been thanked: 18 times

Re: new nuBuilder - breadcrumbholder length

Unread post 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.
If you like nuBuilder, please leave a review on SourceForge
admin
Site Admin
Posts: 2822
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 29 times

Re: new nuBuilder - breadcrumbholder length

Unread post by admin »

Janusz,

The Browse width is only adjusted over the whole screen if it is not in an iframe.
If it is put inside an iframe it is a static width and is relying on the developer to set the width.

The next update will include a new JS function nuStopBrowserResize(), that will stop auto resizing on any main Browse Forms you put it on.


Steven
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: new nuBuilder - breadcrumbholder length

Unread post by kev1n »

admin wrote: The next update will include a new JS function nuStopBrowserResize(), that will stop auto resizing on any main Browse Forms you put it on.
Steven
Remark: This nuStopBrowserResize() function has to be added to a form's Custom Code > Javascript. (for each form you want to disable the auto resizing)
It has no effect when you add it under Setup -> Header.

If you want to disable the column auto resizing globally (and also for nuBuilder system forms) you can still use the code I posted.
admin
Site Admin
Posts: 2822
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 29 times

Re: new nuBuilder - breadcrumbholder length

Unread post by admin »

.
Post Reply