How to? Disable click response and create refresh-button

Questions related to using nuBuilder Forte.

How to? Disable click response and create refresh-button

Postby ingar » Mon May 06, 2019 10:59 pm

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
ingar
 
Posts: 10
Joined: Mon May 06, 2019 5:01 pm

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

Postby Janusz » Tue May 07, 2019 4:50 am

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
Janusz
 
Posts: 229
Joined: Fri Dec 28, 2018 10:11 pm
Location: Krakow, Poland

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

Postby Janusz » Tue May 07, 2019 5:07 am

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()');
Janusz
 
Posts: 229
Joined: Fri Dec 28, 2018 10:11 pm
Location: Krakow, Poland

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

Postby ingar » Tue May 07, 2019 9:02 pm

Wonderful :-) ... thank you so much! You saved my day :-)

-Ingar
ingar
 
Posts: 10
Joined: Mon May 06, 2019 5:01 pm

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

Postby Janusz » Wed May 08, 2019 4:34 am

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.
Janusz
 
Posts: 229
Joined: Fri Dec 28, 2018 10:11 pm
Location: Krakow, Poland

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

Postby admin » Thu May 09, 2019 7:51 am

Janusz,

Thanks!


Steven
admin
Site Admin
 
Posts: 3123
Joined: Mon Jun 15, 2009 9:53 am


Return to General