How to hold cursor on updated record? [message #665230] |
Sat, 26 August 2017 10:46  |
 |
Amjad_1975
Messages: 82 Registered: January 2017
|
Member |
|
|
My question is this I am updating the qty in pos system everything is working fine but cursor is not holding the same updating record which i am updating untill i insert a next record cursor is moving to the next record cursor should be on 2222 record but moved to next record as I mentioned in uploaded. Png deffinately i have used some logic like next record etc may i have mistaken somewhere if i try to changed the logic whole logic is disturbing is there any possibility we can hold the cursor on same record which we are updating .
Declare
L_match Boolean: =false;
L_continue Boolean:=true;
Begin
Go_block('emp');
First_record;
While l_continue and not l_match loop
If :emp.cc=:control.zz then
:emp.qty:=:emp.qty+1;
L_match:=TRUE;
Else
If :system.last_record! ='True' then
Next_record;
Else
L_continue: =false;
End if;
End if;
End loop;
Next_record;
Something like this.................
Kindly guide me
[LF merged 3 topics and deleted 2 duplicate messages]
-
Attachment: POS.png
(Size: 57.07KB, Downloaded 1831 times)
[Updated on: Sat, 26 August 2017 16:02] by Moderator Report message to a moderator
|
|
|
|
|