One more today. I have created a named query that I would like the WHERE a.sku field to pull the SKU number from a textfield in the same root container.
SELECT a.sku, a.lpn, a.lot_number, CONCAT(CAST(b.pos_a as CHAR),' ', CAST(b.pos_r as CHAR),' ',CAST(b.pos_xf as CHAR),' ',CAST(b.pos_xp as CHAR),' ',CAST(b.pos_y as CHAR),' ',CAST(b.pos_z as CHAR)) as "BinLoc",
a.quantity, b.row_locked
FROM pallets a
INNER JOIN dambach_xref b
ON a.dambach_xref_id = b.id or a.dambach_xref_id2 = b.id
WHERE a.sku = '{../TextField.props.text}'
SELECT a.sku, a.lpn, a.lot_number, CONCAT(CAST(b.pos_a as CHAR),' ', CAST(b.pos_r as CHAR),' ',CAST(b.pos_xf as CHAR),' ',CAST(b.pos_xp as CHAR),' ',CAST(b.pos_y as CHAR),' ',CAST(b.pos_z as CHAR)) as "BinLoc",
a.quantity, b.row_locked
FROM pallets a
INNER JOIN dambach_xref b
ON a.dambach_xref_id = b.id or a.dambach_xref_id2 = b.id
WHERE a.sku = :SKUparam
You will need to assign a value to the parameter in your named query binding. I think it will refresh when your sku is updated.
@ahawes, just a tip. Post code (using the </> code formatting button) rather than pictures of code (or as well as screen grabs if you need to give context). @josborn had to type the whole thing out from your screengrab whereas it would have been a copy and paste if you had posted the code.