sreekanth_vvs
24th January 2011, 12:36
hi,
I wish to hide a row in a multi-occ session.
Query Extend is not my choice.
Can I do it in before display? some thing in similar lines as lattr.print=false?
Regards,
Sreekanth.V
sameer.don
24th January 2011, 13:51
You can do this in main.table.io >> after.read sections. You can use skip.io() function to skip a record
main.table.io:
after.read:
if <condition> then
skip.io("")
endif
MariaC
27th January 2011, 13:50
main.table.io shouldn't really be sued in LN rather use the query extend functionality
sameer.don
27th January 2011, 13:59
Yes, query.extension is always a better option to use than using main.table.io
But there could be situation where one need to filter out records based on complex condition which may not be feasible to implement through single query. In that case, main.table.io is the option to get the work done,
But, if it is a simple condition to be used as a filter, then query.extension is the right choice.
v_kewl
27th January 2011, 14:01
If you have DAL script then u can use object hook "after.get.object(long dir) "
e.g:
function extern long after.get.object(long dir)
{
if <condition> then
return(dalhookerror)
endif
}
the above code will skip your record . But it is advisable to use "query.extend". And also go through the details of this hook in your programmer guide before using it.
Regards,
Gaurav B
sameer.don
28th January 2011, 06:38
If you have DAL script then u can use object hook "after.get.object(long dir) "
There is a small problem in using hooks. If object hook is used, the logic will be applicable to all the other session with the same main table and records will disappear from all other session.
So, in case if one wants to use hook, it will be necessary to check session code.