patwanirav
13th September 2014, 07:00
I have a list session in which I have five field. I want to move to next record directly from second field without saving the current record. My next three field (3rd & 4th & 5th) are open for editing.
Please suggest how should I achieve this functionality.
Thanks in Advance. :)
bhushanchanda
8th October 2014, 13:22
Hi,
Try using to.field()
Syntax:
function void to.field (field field)
Description
This transfers control of the 4GL engine to the specified field after input to or display of the current field. This overrides the TAB sequence of the form. You can specify the field by using the field number or a string containing the field name.
After handling the specified field, control passes to the next field in the TAB sequence.
Arguments
field field
sachinbaan
8th October 2014, 14:01
Hi,
I want to ask is that, would to.field() move to next record's field?
bhushanchanda
8th October 2014, 14:03
No. Only if the fields are on the current occurrence of the form i.e. same record.
vamsi_gujjula
10th October 2014, 16:28
Nirav,
i did manage it with some hiccups .. you can try out
sachinbaan
13th October 2014, 08:52
Hi Vamsi,
I tried code provided by you, but it pointer moves to same record field, not next records field.
bhushanchanda
13th October 2014, 09:08
As said, it wont move to next record. Vamsi provided a working code for to.field() usability. (For a single occurance)
vamsi_gujjula
13th October 2014, 11:45
Sachin,
Basically what i am doing is..... going to last field of actual.occ and then sending a tab event... to go to next field ...
Now i dont know how you are trying ...
@bhushan .... it for multi-occurrence and moving to next occurence from current occurence
bhushanchanda
13th October 2014, 11:56
In that case, he might be missing
after.form.read:
enable.save.on.occ.change()
Not sure though. I was thinking it to be a single form per record kind of session. (i.e. Next/Prev Sets to move)
sachinbaan
13th October 2014, 12:09
hi,
actually requirement is like, without saving record, it should move to next record, as nirav sir posted, so in this case "enable.save.on.occ.change()" will save the record.
patwanirav
18th October 2014, 10:24
Thanks Vamsi, the code given by you is working perfectly in New Mode.
In modify mode it is not working.
Thanks once again... :)
sachinbaan
18th October 2014, 10:34
Thanx vamsi, I was trying ur code for modify session, for new its working perfectly.... wow....
vamsi_gujjula
18th October 2014, 22:18
hahahah ... i cant test all the case ;) :P