Skip to content

How to avoid double using the table field #268

Locked Answered by ansibleguy76
ansibleguy76 asked this question in Q&A
Discussion options

You must be logged in to vote
fields:
  - name: machinelist
    type: expression
    value:
      - mach1
      - mach2
      - mach3
      - mach4
  - name: usedMachinelist
    type: expression
    runLocal: true
    expression: $(machines).map(x => x.Machine)
  - name: unusedMachinelist
    type: expression
    runLocal: true
    expression: $(machinelist).filter( x => !$(usedMachinelist).includes(x))
  - type: table
    name: machines
    label: Add a machine
    allowInsert: true
    allowDelete: true
    insertMarker: isNewItem
    deleteMarker: isRemovedItem
    validIfNot:
      field: hasIdDoubles
      description: This table must have unique id's
    readonlyColumns:
      - Machine
      - hostname
    requ…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ansibleguy76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant