0

Is there a way to create static / multi-dimensional arrays?

I have a set of about 30+ KPIs .. each has it's own "formula".    Rather than creating so may formulas.. I thought about putting the logic behind a button.  It worked fine until I hit a wall.. The code simply stopped adding rows to my composite table.  So I added another button and it kept working..    So rather than creating so many objects... I figured I could create a series of multi dimensional arrays.. One to hold the KPI text.. and another the KPI values.. each KPI has three values ..  However, definition like

let kpiDesArray := [ ["1.1", "First KPI"], ["1.2", "Second KPI"], ["2.1", "Third KPI"]];

does not work. 

3 replies

null
    • Sean
    • 5 yrs ago
    • Reported - view

    I would be very surprised if that was possible with the Ninox language. You would probably have to use a table and implement a similar approach with that instead.

    • Sean
    • 5 yrs ago
    • Reported - view

    Or you could use parallel arrays.

    • Mconneen
    • 5 yrs ago
    • Reported - view

    @Sean.. Yeah.. I thought about that . then split the row as I need to..   That said.. If I am going to that much trouble.. I will just create a KPI reference / seed table to use.... 

Content aside

  • 5 yrs agoLast active
  • 3Replies
  • 1730Views