64. Create Authentication
- This will ensure that ensures that required fields in the Add Edit Callout are completed and the Save button can’t be clicked otherwise
- Open set.dg5
- Right click on main – headers- buttonBar – edit – callout, select Edit Symbol
- Click on addEditCallout – buttons – save -dataflow
- Drag and Drop Logic - If block
- Drag and Drop String Operations – Length block
- If1
- Input 0: Bind from length – output
- Input 1: 0
- Then: True
- Else: False
- Select If1 and length
- Right click, select Convert to Symbol
- Name: “nullCheck”
- Click Ok
- Delete nullCheck
- Click on Dataflow Symbols tab
- Right click on nullCheck, select Copy
- Change from Current Page to Current Project
- Right click on Dataflow Symbols panel, select Paste
- Change from Current Project to Current Page
- Right click on nullCheck, select Delete
- Change from Current Page to Current Project
- Drag and Drop nullCheck from Current Project, Dataflow Symbols, to dataflow
- Right click on nullCheck, select Edit Symbol
- Right click on dataflow, select Edit Properties
- Drag and Drop string
- Name: “input”
- Bind to length – input
- Drag and Drop string
- Name: “output”
- Bind from if1 - output
- Save Symbol
- Click on nullCheck
- Right click on input, select Pinned
- Right click on output, select Pinned
- Duplicate nullCheck with (Cntrl + D) 4 times
- Drag and Drop Logic – If block
- Name: “auth”
- Op: and
- Click + button 4 times
- Input 5: true
- Then: true
- Else: False
- nullCheck
- Rename: “name”
- Input 1: Bind from AddEditCallout – row1 – name – Symbol Properties – output
- Output: Bind to If1 – input 0
- nullCheck1
- Rename: “severity”
- Input 1: Bind from AddEditCallout – row1 – severity – Symbol Properties – output
- Output: Bind to If1 – input 1
- nullCheck2
- Rename: “metric”
- Input 1: Bind from AddEditCallout – row2 – metric – Symbol Properties – output
- Output: Bind to If1 – input 2
- nullCheck3
- Rename: “operation”
- Input 1: Bind from AddEditCallout – row2 – operation – Symbol Properties – output
- Output: Bind to If1 – input 3
- nullCheck4
- Rename: “value”
- Input 1: Bind from AddEditCallout – row2 – value – Symbol Properties – output
- Output: Bind to If1 – input 4
- Drag and Drop Logic – If block
- Input 0: Bind from auth – output
- Input 1: true
- Then: 100
- Else: 60
- Output: Bind to addEditCallout – buttons – save – Effects Properties – Opacity
- auth
- Output: Bind to addEditCallout – buttons – save – General Properties – Clickable
- Select If1, Duplicate with (Ctrl + D)
- Input 1: false
- Then: “default”
- Else: “pointer”
- Output: Bind to addEditCallout – buttons – save – General Properties –Cursor
- Save symbol
- Save page