# Integration UI v14-v17 — Status Update

Date: 2026-09-17. Server: 66.175.238.112/2610RTROGERSUAP1.

## Progress

1. ✅ SQL Type combo found: `#combo-1264` (Stored Procedure=2, SQL Statement=3)
2. ✅ SQL textarea found: `#textarea-1265` (contains `uspAPCompareBalance`)
3. ✅ SQL Type changed to "SQL Statement" (3) via `Ext.getCmp('combo-1264').setValue(3)`
4. ✅ SQL filled via `Ext.getCmp('textarea-1265').setValue(SQL_QUERY)`
5. ✅ Step name changed via `Ext.getCmp('textfield-1247').setValue('SQL Health Check')`
6. ❌ Save didn't work — `fireEvent('click')` on button-1271 triggered only `POST /transaction/locktransaction` (locking), but not a real save
7. ✅ ExecuteStep called → 202, but used the old SQL from the DB (not ours)

## Problem

ExtJS `fireEvent('click', btn)` doesn't trigger the save handler. Need to:
- Find the save handler function directly
- Or: use `Ext.getCmp('button-1271').handler(btn)`
- Or: call form submit via the ExtJS API
- Or: use the `btn.fireHandler()` method

## What's needed for v18

1. Find the save handler — check `btn.handler` or `btn.listeners`
2. Call the handler directly: `btn.handler(btn)` or `btn.fireHandler()`
3. Check post-save AJAX — should be a POST/PUT with step data
4. After a successful save → ExecuteStep → the step executes with our SQL
5. Intercept the result — `SELECT @@version` should come back

## Step editor form fields (confirmed)

- `textfield-1247` = Step Name
- `textfield-1248` = Step Description
- `textfield-1249` = To (email)
- `combo-1264` = SQL Type (Stored Procedure=2, SQL Statement=3)
- `gridcombobox-1263` = Connection (RT Rogers)
- `textarea-1265` = SQL Command (contains uspAPCompareBalance by default)
- `textfield-1256` = Subject
- `textarea-1257` = Message

## Save button IDs

- `button-1271` = Save (in step editor window `sendmail-1241`)
- `button-1272` = Delete (in step editor)
- `button-1273` = Close (probably)
- `button-1209` = Save (in process editor)
- `button-1343` = Save (in process editor, different ID)
