Page 1 of 1

How to? Disable click response and create refresh-button

Posted: Mon May 06, 2019 3:29 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

Posted: Mon May 06, 2019 9:20 pm
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.cloud/ ... Javascript

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

Posted: Mon May 06, 2019 9:37 pm
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

Posted: Tue May 07, 2019 1:32 pm
by ingar
Wonderful :-) ... thank you so much! You saved my day :-)

-Ingar

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

Posted: Tue May 07, 2019 9:04 pm
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

Posted: Thu May 09, 2019 12:21 am
by admin
Janusz,

Thanks!


Steven