Otools
23rd November 2004, 14:30
hello,

I have session whith sub-session.

This called session having a form type 3 in multi-occurence (top of form is common data and on bottom are lines. For exemple, an invoice head on top of form with lines on bottom of form) with a script.
In this script, in before.program section i am using query.extension.
The start option is 7.

My problem is when i am calling this one, i always see only the last line. To see all the lines, I must use the top record buttons.

I have modified the start option but the command query.extension is not correct.

Do you have an idea to see all the lines when opening the sub-session?

Thank's
Otools

Hitesh Shah
23rd November 2004, 15:10
Standard program copies the index values of main table of sub session from calling program . It's possible the main table field values (for all keys) may be higher in calling program which leads to last record being shown.

Also u can use first.set as the start-up option in order to c the first records at the time of starting the session (Probably u have already done this).

Otools
23rd November 2004, 15:15
Yes, I have already tried this.
But it is possible to modify the start option in the script after the before.program section ?
Thank's.

Hitesh Shah
25th November 2004, 06:59
Start up choice is executed after init.form section. There is no way to modify the startup choice in before prorgam.
All u can do is to ignore the first event by setting ignore.first.event to true and write statement like execute(first.set) in the init.form section.