
JohnDanter2
VIP Member
Hi folks
I've been asked to make an E1 screen linking work orders on F4801 to open suggestions on F4611
Now I've developed the appl easy enough and I have 3 DD grid columns showing the count of the following:
1) Open 1st Picks: select count(*) from f4611 where r2dcto = work order type and r2doco = work order and r2phas = 1 and r2tyfl = ‘2’ and r2pstb <> '391'
2) Open 2nd Picks: select count(*) from f4611 where r2dcto = work order type and r2doco = work order and r2phas = 2 and r2tyfl = ‘2’ and r2pstb <> '391'
3) Total Picks: select count(*) from f4611 where r2dcto = work order type and r2doco = work order and r2phas = 1 and r2tyfl = ‘2’
Easy stuff, but I've also been asked to create alerts over these conditions so a query and a watchlist / notification is needed.
Thing is I can't add custom grid columns to a query. So I'm a little stuck unless I develop a BSVW over the 2 tables and do some kind distinct or hide/show grid row tricks to get.
Another idea I had was to use the grid record is fetched or write grid line before event to check these 3 values above and just hijack a field and populate them on the fly.
This way they are BSVW fields so I can use a query to find them (but I don't know if these queries check the DB or the GC for it's answer - I suspect the DB)
Another is to add a tag file to the F4801 and populate these 3 fields as the forms loads up and do it that way, but again they will be 0 on the way into the form
Any other ideas on how to solve this?
Thanks
John
I've been asked to make an E1 screen linking work orders on F4801 to open suggestions on F4611
Now I've developed the appl easy enough and I have 3 DD grid columns showing the count of the following:
1) Open 1st Picks: select count(*) from f4611 where r2dcto = work order type and r2doco = work order and r2phas = 1 and r2tyfl = ‘2’ and r2pstb <> '391'
2) Open 2nd Picks: select count(*) from f4611 where r2dcto = work order type and r2doco = work order and r2phas = 2 and r2tyfl = ‘2’ and r2pstb <> '391'
3) Total Picks: select count(*) from f4611 where r2dcto = work order type and r2doco = work order and r2phas = 1 and r2tyfl = ‘2’
Easy stuff, but I've also been asked to create alerts over these conditions so a query and a watchlist / notification is needed.
Thing is I can't add custom grid columns to a query. So I'm a little stuck unless I develop a BSVW over the 2 tables and do some kind distinct or hide/show grid row tricks to get.
Another idea I had was to use the grid record is fetched or write grid line before event to check these 3 values above and just hijack a field and populate them on the fly.
This way they are BSVW fields so I can use a query to find them (but I don't know if these queries check the DB or the GC for it's answer - I suspect the DB)
Another is to add a tag file to the F4801 and populate these 3 fields as the forms loads up and do it that way, but again they will be 0 on the way into the form
Any other ideas on how to solve this?
Thanks
John
Last edited: