jack786
3rd November 2004, 06:40
I have one layout ,I dont want to print this layout but I want to execute the
before and after layout report sections for this layout.Can I define the layout length as 0 instead of 1.

rgds,
jack

malutz
3rd November 2004, 08:55
I don't fully understand what you mean.

You have a layout that you need for the script only. Now you wanna know if it is possible that you have 0 lines in that layout.

If that is the case than yes that works. If you meant something else please decribe it a bit more.

jack786
3rd November 2004, 11:36
In the layout session ttadv3131s000 there is a field called lns in the form 1.
I want that col value as zero (i.e when I dont have any thing to print I want
lns as zero .) I can suppress by using print expression as 0.But I have some script in that layout to be executed.If I put print exp as zero That script will not execute.

malutz
3rd November 2004, 11:54
you could use the print expression on field level. Than the layout will still be executed.

mark_h
3rd November 2004, 14:43
If you do your coding in the before layout section of the script, then just set lattr.print to false after you finish your code. This will skip printing the layout. I also think the minute you edit and enter the layout it will change it from 0 to 1 lines.

Mark

Hitesh Shah
3rd November 2004, 15:19
After.layout will come only if lattr.print is true.

If the requirement is at detail level , you can do something in after.receive.data.

If u elaborate ur requirement , there can be many alternatives to accomplish the objective you desire.