Page 1 of 1

How to? Disable click response and create refresh-button

PostPosted: Mon May 06, 2019 10:59 pm
by ingar
Hi everyone,

Firstly, I must thank the dev. team for an outstanding work with creating nuBuilder and letting us using it! :D

This is my first post here, and I have to warn you that I'm very limited in knowledge of javascript/php....

I'm working on an INTERNAL small customer phonelog system (logging customer support when they call us for help).
I have two challenges/problems so far, and didn't find a solution after reading the manual and searching the forum and wiki:

1) On the hometab I have two iframes: a browse/edit view of customers and a view of latest phonelog entries.
I wonder if it's possible to make the browseview (right side in picture below) totally "readonly"? What happens now If I click on one row - it tries to "open" this record - and I want it to do nothing (not react on click).

2) Whenever I submit and save a new entry in the phonelog for a customer, it would like to have the browseview statistic (right side) to update itself. This dont happen today .. until I log out and back again. I wonder if it's possible to for instance have a new button "Refresh" - to refresh the info in this tableview?

Here's how it looks today (with comments):

Image

Image

Thank you for your kind help

Re: How to? Disable click response and create refresh-button

PostPosted: Tue May 07, 2019 4:50 am
by Janusz
Hi,
So one of the possibility is to use the code as belowe. The Edit form will not open and when you click on any row in the panel it will refresh the window.
Code: Select all
function nuSelectBrowse(e){ nuGetBreadcrumb(); }

Place it in the overview window.
Form properties -> Custome Code -> (and paste in) Java Script box.

additional info:
this part is disabling any action when you click on the row.
Code: Select all
function nuSelectBrowse(e){  }

and nuGetBreadcrumb() is causing refresh of the form.

https://wiki.nubuilder.net/nubuilderfor ... Javascript

Re: How to? Disable click response and create refresh-button

PostPosted: Tue May 07, 2019 5:07 am
by Janusz
or if you place following code then you will have it with button
Code: Select all
function nuSelectBrowse(e){}
nuAddActionButton('my_refresh_button', 'Refresh', 'nuGetBreadcrumb()');

Re: How to? Disable click response and create refresh-button

PostPosted: Tue May 07, 2019 9:02 pm
by ingar
Wonderful :-) ... thank you so much! You saved my day :-)

-Ingar

Re: How to? Disable click response and create refresh-button

PostPosted: Wed May 08, 2019 4:34 am
by Janusz
You are welcome :)
If possible please put some review for nuBuilder on:
https://sourceforge.net/projects/nubuilder/reviews/
it's really very good tool and deserves on much more positive opinions then currently has.

Re: How to? Disable click response and create refresh-button

PostPosted: Thu May 09, 2019 7:51 am
by admin
Janusz,

Thanks!


Steven