sandeepk1976
18th January 2009, 17:00
Hi Everybody

I need urgent help on the following issue.Any help will be appreciated
I am working on Baan4c2
I have developed a maintain session(multioccurance + main)having two forms.When the session is opened I want my cursor position to be on a particular field(no. 3 field) of the first multioccurance record(containing data) displayed.What is happening by default that when session is opened the input cursor resides on the label of the form1.Can anybody tell that is it possible and how.I have tried to.field function for this but with not much success

Thanks
Sandeep Kalra

NirajKakodkar
19th January 2009, 09:05
Hi Sandeep ,

I think you can use to.field()


function void to.field (field field)
This function is only supported for Baan Windows and its usage is therefore deprecated.

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.

but I am not really sure wether it works in Baan 4 . but you can always try this .

similarly for specific form you can try to.form()

Hope this helps you .

Regards,
Niraj

sandeepk1976
19th January 2009, 15:36
Hi Neeraj
Yes,I have tried to.field function which definitely works in Baan4 but it can only be used in sections after.field,after.display and after.input.sections.Whe the form opens for the first time,inspite of using this function in some of the above sections,the cursor still comes and resides on the form label ie "Form1" and does not go to the specified field

Rgds
Sandeep Kalra

sandeepk1976
19th January 2009, 15:37
to.field does not help when the session opens the very first time

NvpBaaN
19th January 2009, 19:12
In Baan4, I remember you can set sequence for form fields. Did you try using sequence 1 for field 3? Control on the form fields is governed by the sequence number of the form fields, so this might work.

NirajKakodkar
20th January 2009, 05:36
Hi Sandeep,

Sorry for the late reply , just saw your post today .
NvpBaan's suggestion should help you , In Baan 4 you can maintain sequence of the fields on the form . Try changing the field sequence .

Regards,
Niraj

mark_h
20th January 2009, 18:35
If changing the field sequence does not work - what is the start option of this mutli-occurance session?