0

the issue of extracting data from parent and child tables.

 I have included my question in the ninox file. Thank you!
 

3 replies

null
    • Fred
    • 5 mths ago
    • Reported - view

    I created a "Not showing" button in the "Repeat code" and "Random code" tables. I want it to be able to distinguish between several display conditions. If it is turned on, it will not be displayed in the "Preview". How should I write the code for "Preview"?

    You can filtering:

    join(Products.'Random code'['Not showing' = false].'文本', ", ") + "   " +
    join(Products.'Repeat code'['Not showing' = false].'文本', ", ")

    The "Orders" table has a one-to-many relationship with the "Products" table.Every time I add a child record, I need to click "Add existing". If I need to add them in bulk, is there a better and faster way?

    This one is a bit trickier to explain. I've attached a DB that does something like you want.

    In the Pre-Production tab of the Dashboard you can select an Article then type in how many you want to build in "How many in this run?" and then click on Create Run and it will create records in Production.

    In the Production tab, you can select record(s) in Pre-Production Runs then click on Run Selected and it will modify the selected records, while doing other things.

    In the Post-Production tab, you can see at the bottom a dynamic choice field that you can select a run then type in a "New Quantity" and it will modify the selected record.

      • 441349382
      • 5 mths ago
      • Reported - view

       Question 1:

      I used ['Not showing' = false], but it didn't work. I thought about it and used ['Not showing' != true], and it worked. I don't know the principle behind it, but it works now. Thank you Fred.

      join(Products.'Random code'['Not showing' != true].'文本', ", ") + "   " +
      join(Products.'Repeat code'['Not showing' != true].'文本', ", ")

      Question 2:

      I need to take some time to study the file that Fred provided. It's a bit challenging for me, but I'm confident that I can understand it with a little effort.

       

    • Fred
    • 5 mths ago
    • Reported - view
     said:
    I don't know the principle behind it, but it works now.

     Yes, I forgot that a Yes/No field actually has 3 states (undefined, true, false). So it is better to use != true if you want to find a Yes/No field that is NOT set to true.

Content aside

  • Status Answered
  • 5 mths agoLast active
  • 3Replies
  • 57Views
  • 2 Following