17

Ninext project

good evening to all, 

I create this post to organize the Ninext project. For those who are new to it, it is composed of several JavaScript modules that allow you to add badges on tabs and buttons, catch selection events on views, execute JavaScript from Ninox script, inspect dependencies between database fields.

This post is here to talk about the project and the procedure for those who would like to implement it in your databases. I would like to take this opportunity to remind you that this is a test project that evolves regularly and I invite you to be cautious and not to use it on commercial databases for the moment.

The sources of the project are available and downloadable on Github
Thanks to all of you for all your messages of support and for your help to debug and make the project progress a little more every day 🙏.

I made the project initiation procedure evolve thanks to the precious help of M. Daaboul who told me that we could use the Ninox dialog box with HTML code. It is no longer necessary to create a window and an HTML field for this. You just have to copy the code below in the Trigger after open in the Options

 

var code := http("GET", "https://raw.githubusercontent.com/JacquesTur/Ninext/main/loadModules.html").result;
dialog("Ninext intialization", "<script>
window.exConfigLoadModules = {
    completion: false,
    badges: true,
    evalJS: true,
    viewEvent: true,
    buttonEvent : true,
    fieldsInspector: true,
    nativeJS: true,

    autoCloseDialog: true
};
</script>" + code, ["close"])

The dialog box will be displayed stealthily then disappear. If you want it to stay displayed with its "close" button, set the autoCloseDialog parameter to false.

224 replies

null
    • chris.8
    • 1 yr ago
    • Reported - view

    Another question / problem. If I want to jump to a global function via the Finder using the spanner symbol, the global functions opens but not at the function itself. Nothing is greyed out or highlighted either. Is this correct? I had read it differently.

      • Ninox developper
      • Jacques_TUR
      • 1 yr ago
      • Reported - view

       Is this true for all functions or just some?

      Can you take a screenshot for me?

      If you try with the attached data base, do you get the same result?

      • Ninox developper
      • Jacques_TUR
      • 1 yr ago
      • Reported - view

       You should have this result:

      • chris.8
      • 1 yr ago
      • Reported - view

      Jacques TUR 

      Is it possible that it is due to the Ninox version? We are currently still on version 3.7.7 with our OnPremise version.

      When I try to open your database, I get the following error message.

      Mac Client is in version 3.8.11

      • chris.8
      • 1 yr ago
      • Reported - view

       

      I had noticed that with the client version in Version 3.8.11 the html(...) still has to be placed in front of the html script. I was able to fix the error above by changing this again in the browser instance (version 3.7.7). Then the script is not interpreted in the Ninox client version and i can open the Database. in the client, the script is not interpreted in the browser instance with version 3.7.7, it then works. 

       

      However, the actual function still does not work. Like you, I have open the copyToClipboard function via Fields&FX:

      • Ninox developper
      • Jacques_TUR
      • 1 yr ago
      • Reported - view

       Yes, I confirm, with Ninox 3.7 you have to delete html() inside the dialog function. And the global function highlighting only works from Ninox 3.8 onwards.

    • Ninox developper
    • Jacques_TUR
    • 1 yr ago
    • Reported - view

    I have released version 2.1.17 of Ninext.
    It fixes the bug found by the code contained in the Onclick trigger of a formula has not been scanned by CodeFinder. 

    Thank you very much for helping me to further improve Ninext 👍

      • chris.8
      • 1 yr ago
      • Reported - view

       Hi Jacques, would it also be possible to include function calls in the print layout in CodeFinder?

      • Ninox developper
      • Jacques_TUR
      • 1 yr ago
      • Reported - view

       I've been thinking about doing it for a long time. Perhaps the time has come. 
      You'll have to give me a bit of time, though, because I'm in the process of launching new software for my first client.

    • Icarus_Ralf_Becker
    • 1 yr ago
    • Reported - view

     Today I found a little bug in the error handler. The error handler shows errors in constraints, but all the entries in the error handler are back relations and they don't have contraints. Could you please have a look into it? Thank you very much.

      • Ninox developper
      • Jacques_TUR
      • 1 yr ago
      • Reported - view

       Thanks a lot, I hadn't seen it 🙏.
      This bug was added when I fixed the previous one. 

      There are constraints for 1:N links, but unlike N:1 links, this is code that is automatically generated by Ninox and is not intended to be visible to the user.

      I have just put version 2.1.18 online which fixes this.
      Thank you all for your help and understanding in this development phase.

    • Ninox developper
    • Jacques_TUR
    • 1 yr ago
    • Reported - view

    Maurice found an error on Fields & Fx. Sometimes the list of fields was not updated when a table was selected in the table list. Behind this problem, there was a small bug that displayed the list of dependencies of the table columns, which is not possible. I have released version 2.1.19 to fix this problem.

    Many thanks to  🙏

      • Maurice
      • 1 yr ago
      • Reported - view

       Thanks to you. As always: bug fixed in a few hours.

    • Ppc
    • titanium_fish
    • 1 yr ago
    • Reported - view

    What is the final best code to use in browser application?

      • Ninox developper
      • Jacques_TUR
      • 1 yr ago
      • Reported - view

       Send me an e-mail and I'll send you the documentation. My address is in my profile.

    • chris.8
    • 1 yr ago
    • Reported - view

    I have another discrepancy. In FieldsIn & Fx, the global function telCorrection is not shown as being used anywhere. But when I search for it, I get the corresponding buttons in which the function is called.

    Is that correct?

      • Ninox developper
      • Jacques_TUR
      • 1 yr ago
      • Reported - view

       Yes, it's true, I can reproduce it. It seems to be due to the recursion between these two global functions: leer and telCorrection. 
      I'll see what's going on. 

    • Ninox developper
    • Jacques_TUR
    • 1 yr ago
    • Reported - view

    Thank you very much to for finding this bug. I have just fixed it, and everything seems to be working correctly now. It turned out to not be a recurrence issue after all, but simply poor management of an array on my part.

    I also took the opportunity to fix a window resizing bug. In some cases, the resizing was not happening, and a popupRecord window could be hidden by the table list.

    The new version 2.1.20 is now online.

    Enjoy using it!

    • Consultant and developer
    • Javier
    • 1 yr ago
    • Reported - view

    Hi  I want to test the new version of Ninext, but every time I initialize the database it asks for an activation process, and for that, I need to send an email to an account that seems its no longer working. Is there another way to contact you? Or maybe an official web page with some instructions and contact info?

    Regards

      • Ninox developper
      • Jacques_TUR
      • 1 yr ago
      • Reported - view

       
      Hello Javier, I received your two emails, but they ended up in my spam folder. I apologize for that, I will look into what's happening with my email server. I have just sent you the installation procedure for Ninext

    • Consultant and developer
    • Javier
    • 1 yr ago
    • Reported - view

    Everything ok now and testing Ninext. Thanks again, Jacques!

    • Ninox developper
    • Jacques_TUR
    • 1 yr ago
    • Reported - view

    Hello, everyone!

    There was a server issue yesterday. It stopped providing the code for Ninext and DarkMode, causing the dialog boxes to appear but nothing happened. This was fixed yesterday evening.

    I apologize for any inconvenience this may have caused you.

    I also want to remind you that it's possible to be independent of the server by saving the codes of Ninext and DarkMode in a text field of your database. This way, you can control version updates and improve loading time.

      • Fred
      • 1 yr ago
      • Reported - view

      can you provide links to instructions again on how to copy the code to a text field?

      • Ninox developper
      • Jacques_TUR
      • 1 yr ago
      • Reported - view

       

      In the "after opening" function, there is an example that systematically tries to connect to the Ninext server to retrieve the latest version. If the server responds, the returned version is compared to the version stored in the database to save it if it's new.

      If the server doesn't respond, then the code stored in the database is used to initialize Ninext.

    • NYNNA
    • Louis_Cornacchia
    • 1 yr ago
    • Reported - view

    jacques, I installed ninext almost 2 years ago, I think. Do I need to update the code? If so, do you have instructions for doing this?

Content aside

  • 17 Likes
  • 3 wk agoLast active
  • 224Replies
  • 5094Views
  • 36 Following