davidvilla
Member
[FONT="]I have a browse multi select <mybrowse> with a query <myquery> that fetches data from a temptable <temptable> and displays it on the browse <mybrowse>.[/FONT]
[FONT="]I have a trigger (for F4 key) where I need to check whether any of the rows matches the condition <temptable>.<field1> = YES and call a procedure to update the record in the database. In doing so, I face with the problem that the row matching the condition is not updated. And this happens only in few cases (i couldn't actually capture the trend).
[/FONT]
[FONT="]ON F4, F12 OF <mybrowse>IN FRAME <myframe>DO:[/FONT]
[FONT="] IF CAN-FIND(FIRST <temptable> WHERE<temptable>.<field1> = YES) THEN[/FONT]
[FONT="] /* UPDATE RECORD */[/FONT]
[FONT="] APPLY "CLOSE":U TO THIS-PROCEDURE.[/FONT]
[FONT="]END.[/FONT]
[FONT="]The current selected row in the browse will be in the <temptable> buffer. And when the CAN-FIND is executed, will it actually look at the current <temptable> buffer or will it look into the entire temp-table records (query results)? Is this causing any problem?
[/FONT]
[FONT="]
[/FONT]
[FONT="]I have a trigger (for F4 key) where I need to check whether any of the rows matches the condition <temptable>.<field1> = YES and call a procedure to update the record in the database. In doing so, I face with the problem that the row matching the condition is not updated. And this happens only in few cases (i couldn't actually capture the trend).
[/FONT]
[FONT="]ON F4, F12 OF <mybrowse>IN FRAME <myframe>DO:[/FONT]
[FONT="] IF CAN-FIND(FIRST <temptable> WHERE<temptable>.<field1> = YES) THEN[/FONT]
[FONT="] /* UPDATE RECORD */[/FONT]
[FONT="] APPLY "CLOSE":U TO THIS-PROCEDURE.[/FONT]
[FONT="]END.[/FONT]
[FONT="]The current selected row in the browse will be in the <temptable> buffer. And when the CAN-FIND is executed, will it actually look at the current <temptable> buffer or will it look into the entire temp-table records (query results)? Is this causing any problem?
[/FONT]
[FONT="]
[/FONT]