Skip to main content
Ninox-Website
Ninox-Documentation
How to enable Javascript
Sign Up
Log in
Learn and share
Get help
Webinars
Service status
Documentation
All topics
Contact
Privacy
Overview
Profile
UKenGB
UKenGB
229
5
0
Joined: Fri Jul 02 08:51:21 UTC 2021
Follow
My Posts
Latest Posts
Re: Detect list selection
Well it's a bit weird, but the good news is that the latest version of your modules seem to load perfectly using 'Trigger on open' and onselected() is doing what it should.…
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Detect list selection
@UKenGB Ignore the last post. May not be your modules.
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Detect list selection
I've not tried it loading on open, but just loading them manually is causing a problem. I have a formula field which is not updating when switching records.…
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Detect list selection
@Jacques TUR I'll have a go Jacques and let you know.
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Detect list selection
@Jacques TUR I see that 'already loaded' statement even the first time - for each module in fact. I just tried it all again, but same problem. If I load it via the 'Trigger after open',…
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Dynamic Multiple Choice Field - How to Programmatically Assign
@Jacques TUR Brilliant. Works great. Thank you for your excellent contributions.
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Detect list selection
@Jacques TUR Brilliant. I'll have to look into it again.
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Detect list selection
@Jacques TUR I'll give it a try and let you know. What happens if that formula field is displayed again, once the modules are already loaded? I thought they should simply load again every time the…
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Suggestion : Style property for most of the fields
Yes. Absolutely.
UKenGB
UKenGB
2 yrs ago
Learn and share
Reported - view
Re: Detect list selection
@Jacques TUR I am sorry about this as normally I can spend as long as I want on something like this, but for the next month I have an unusually large number of things to do,…
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Detect list selection
@Jacques TUR I had to leave this for a while, but looking at it again it is consistent that if I show the Formula that loads the modules as part of 'Trigger after open', it doesn't work.…
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Detect list selection
Ok, your example works for me. So I considered the difference from my db. I added an onselected() function (that does nothing of any use) in my initialisation table.…
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Detect list selection
That's it. The modules have to be loaded by a formula field in that table, or the onselected() function doesn't run, even though the JS calc still works.…
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Detect list selection
The only difference I can think of is that yesterday I ran the load module code in a formula field on that same form (next to the test JS calculation),…
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Detect list selection
@Jacques TUR On same form as field testbool, there is the JavaScript calculation (from your test example) that always shows 30, so that is working.
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Detect list selection
I set up a very simple test, exactly as you did in the example above. In 'Readable if' I have:- function onselected() do this.(testbool := true) end; true testbool is as it seems,…
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Detect list selection
Now I am completely confused. I ran the code to load the modules in a formula field, saw the expected result and then clicking on any row in the table's main view,…
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Detect list selection
@Jacques TUR I thought it was probably as you say. I had an idea, but dialog() won't allow html and although alert() doesn't complain, it just displays the JS and doesn't run it. So that was a bust.…
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Detect list selection
The above, placed in a formula field does load the extended functions, but not in either the Console, nor in 'Trigger after open' and I cannot really figure out why.…
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Detect list selection
Ok, I can see what it's doing, but could that initialisation code be placed actually in 'Trigger after open'? Surely is just needs to run and doesn't matter where,…
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Detect list selection
I will get back to this shortly, but could I ask a couple of questions here (asked on Github, but it seems you are not reading those 'issues':- Does the code to load these have to be run for every…
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Detect list selection
@Jacques TUR I can use 'Trigger before view' which works the first time the record is opened, but that is not triggered just when switching rows.
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Detect list selection
@Jacques TUR Ah, but my code needs to set a value and Ninox complains:- "This formula may not modify data"
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Detect list selection
@Jacques TUR I need to run some code when a row is first selected or changed. I have a workaround that requires clicking a button instead, but would be so much better if this was done automatically…
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
Re: Detect list selection
@Jacques TUR How does one add the onSelect function to the actual main list view of a table? Not just a 'view' field added to a form where one creates the selection and can add the onSelect function,…
UKenGB
UKenGB
2 yrs ago
Get help
Reported - view
1
2
3
4
5
10
Ninox-Website
Ninox-Documentation
Overview
Learn and share
Get help
Webinars
Service status
Documentation
Setup
Installed apps
Public Cloud
Private Cloud
On-Premises
Databases
Tables
Table relationships
Fields and elements
Pages
Views
Import and export
Modules
Printing
Templates
Use cases
Automation
Scripting
Functions
API
My account
Subscriptions
Administration
Manage workspaces
Manage collaborators
Access permissions
Usage overview
Process monitor
View all topics