1

duplicate bug?

Hi, 

This bit of script

let newRecord := duplicate(this);
openRecord(newRecord)

The first line duplicates the record for sure, but returns null inside the script (I believe)

so the second line will not work

Has anyone run into this? (Version 3.11.4 running on Mac mini M1)

6 replies

null
    • Fred
    • 9 mths ago
    • Reported - view

    You are correct. The record gets created but Ninox does not take you to the new record. I am also running 3.11.4.

    This does NOT happen for public cloud DBs in the app or in the browser.

    Open a ticket with Ninox and maybe it will get fixed. We will just never know when.😒

    • Nikki_Moreaux
    • 8 mths ago
    • Reported - view

    Hello Ray,

    Same problem here on my Mac.

    I've reverted Ninox back to version 3.10.11 thru my Time Machine backup, everything seems to work fine now (no visible problem with the database despite the downgrade).

    To prevent automatic updates from the App Store, I've locked the Ninox Database.app in the Finder inspector.

    Hopefully the bug will be resolved soon... Otherwise, we might have to explore other options.

    Have a nice day,
    And good debugging to the dev!

     

    Attached: some code that had troubles executing in the last versions

    • Nick
    • 8 mths ago
    • Reported - view

    Hi to all
    Also, in addition to the problem mentioned above, when you duplicate a record that has a subtable (eg invoice and invoice items) it doesn't duplicate the related records (invoice items).

    As for the automatic updates, I brought back the 3.10.11 version from time machine, renamed it (eg ¨Ninox old¨) and let the newer one upgrade normally so I could test it on every new update.

    - Version 3.11.6 running on Mac mini M1

    - Version 3.10.11 running on Mac mini M1

      • Fred
      • 8 mths ago
      • Reported - view

      Duplicate() has never duplicated related records, so it is not really a bug. :)

      Do other DBs with a duplicate function also duplicate related records?

      • Nick
      • 8 mths ago
      • Reported - view

      Dear 

      I think I started using Ninox prior to version 2.

      From then to the version 3.10.11 I keep on my Mac, when I duplicate an invoice the new entry also comes with the invoice items (with Composition On). I just tried it again...

      One of the reasons I preferred it over Filemaker on some of my files.

      • Fred
      • 8 mths ago
      • Reported - view

      well, i stand corrected. I guess i don't use the duplicate() command so didn't know it was changed.

      Thanks for the correction.

Content aside

  • 1 Likes
  • 8 mths agoLast active
  • 6Replies
  • 163Views
  • 4 Following