Welcome to the nuBuilder Forums!

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

Odd behaviour on browse form when selecting record

Questions related to using nuBuilder Forte.
Post Reply
Keith-i
Posts: 88
Joined: Wed Jan 18, 2023 3:03 pm
Has thanked: 1 time
Been thanked: 1 time

Odd behaviour on browse form when selecting record

Unread post by Keith-i »

I have a browse and edit form whereby I can click on a road name and it will show me all the house sales on that road. However if I do a filter to reduce the list and then click on the actutal text of an entry the resulting form opens with no entires. If I click on a blank bit of the row just to the right of the text then it works correctly and shows the related data. Any thoughts? Could it be anything to do with Access Control where I have selected Browse only and No Edits?
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Odd behaviour on browse form when selecting record

Unread post by kev1n »

Are you using any scripts, custom formatting etc?
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Odd behaviour on browse form when selecting record

Unread post by kev1n »

Based on my understanding, it seems that the issue at hand is that clicking on the highlighted (red) text isn't triggering an onclick event

Try this fix:

Basically, add this line

Code: Select all

spannode.setAttribute("onclick", "nuSelectBrowse(event, this.parentElement)");
after

Code: Select all

middlebit.parentNode.replaceChild(spannode, middlebit);
in nucommon.js and log in again.
Keith-i
Posts: 88
Joined: Wed Jan 18, 2023 3:03 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Odd behaviour on browse form when selecting record

Unread post by Keith-i »

Ok thanks. Presumably nucommon.js sits somewhere in the background on my server. Will need to hunt it down :)
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Odd behaviour on browse form when selecting record

Unread post by kev1n »

it's in the /core folder
Post Reply