mostrightfuture
30th November 2005, 15:57
Hi friends,

I am trying to use the main table io section ("main.table.io"), with before.read and after.read, in Form type 3 session to check some condition and skip the records using the function skip.io(""), but the section never called. What could be the reason?

Thanks in advance
MRF

Hitesh Shah
30th November 2005, 16:23
May be there is a query extension defined which filters out the record u are expecting in after.read. Also a possibility that there are certain statements in read.view section which skips the complete view u are expecting .

mark_h
30th November 2005, 16:25
First it should be in the after.read section - read record, check conditions and then skip the record. Maybe posting your code will help someone see the problem.

Youp2001
1st December 2005, 13:38
From your signature I see that you are on Baan Vc. It is preferable to use the query extension in that case. The main table section is only available for backward compatability.

Anyway, posting your code is necessary in order to give you detailed directions for solving this issue.

Youp

Youp2001
1st December 2005, 13:42
This is what I just saw in the Baan docu:

Note that main.table.io sections (except the read.view subsection) are ignored when the corresponding DAL hooks are programmed in a DAL script

So if your main table has a DAL, you should check if corresponding hooks are present. If so, according to this, the main.table.io sections are ignored.

Youp

mr_suleyman
1st December 2005, 13:49
İf you use query extension use it in Before.program section. But if not then look at followin simple code.
main.table.io:
after.read:
if (tdsls974.aps1 <> " ") and (tdsls974.apr1 = tcyesno.no or tdsls974.apr1 = empty) then
skip.io("")
endif


Good luck !!!