mast_aadmi
19th November 2009, 06:51
Is there any command for moving/passing control from one layout to another..
if there is pl inform
thanks in advance
DSchneider
19th November 2009, 08:55
Please explain what do you mean with layout? Is ist Formlayout? Do you mean to switch from one form to onaother?
mast_aadmi
19th November 2009, 11:06
i want to transfer control from after printing a layout one time to another layout. Is this possible by using a command that is inbuilt in the script.
This is what i want to do:-
Once a layout is printed then i have to move to the next layout of my choice.
after this layout is printed then i have to pass control back to the starting layout.
I'm asking for an inbuilt command in baan to transfer control from one part of the script to another.
Hitesh Shah
19th November 2009, 16:49
As each layout with subsection is a function in the generated report script and technically it may be possible to call the function. But I would not advise u to do so bcos report has it's own flow and technically u can achieve almost anything by restructuring ur requirement / logic in sync with report standard logic .
mark_h
19th November 2009, 17:37
As each layout with subsection is a function in the generated report script and technically it may be possible to call the function. But I would not advise u to do so bcos report has it's own flow and technically u can achieve almost anything by restructuring ur requirement / logic in sync with report standard logic .
I agree with Hitesh Shah on this. You can put the report in debug mode to find the routines to call, but I strongly recommend agains this as he has mentioned.
My thought is to use the output expressions to trigger which layout gets printed when. I use this for my excel devices so the header only gets printed once. So for this you could have detail.1 and detail.2. Then in the report script when a certain condition is met detail.2's output expression is set, causing the layout to print. Then in the after.layout event you could set it back to false.
I also use session scripts to toggle layouts based off the data. So I might have 3 detail layouts, each layout triggered by the "kind.of.item". This toggles them on and off as needed.
mast_aadmi
21st November 2009, 11:23
Thanks a lot for the above replies..
Now i will give u a brief description of my problem, please tell me a way of solving this:-
The layout i'm trying to print consists of the following things:-
FF FFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFF
----------------------------------------------------------(graphical line)
The fields are called repititevely to print the footer text entered in the session. Now i want that say 5 lines to be printed (only the fields), not the graphical line. After the five lines are printed then i need to print the graphical line. This can go on any no of times. The no of times the either the field or the graphical line is printed is not fixed.
Pl solve this issue. Thanks in advance.
bdittmar
22nd November 2009, 10:10
Thanks a lot for the above replies..
Now i will give u a brief description of my problem, please tell me a way of solving this:-
The layout i'm trying to print consists of the following things:-
FF FFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFF
----------------------------------------------------------(graphical line)
The fields are called repititevely to print the footer text entered in the session. Now i want that say 5 lines to be printed (only the fields), not the graphical line. After the five lines are printed then i need to print the graphical line. This can go on any no of times. The no of times the either the field or the graphical line is printed is not fixed.
Pl solve this issue. Thanks in advance.
Hello,
put the graphical line in a seperate layout.
Use a counter and printcondition for this seperate layout depending on the
layout before.
Increase the counter to the value you need, set the print condition = true and reset the counter.
Regards
mast_aadmi
25th November 2009, 13:08
Hello,
put the graphical line in a seperate layout.
Use a counter and printcondition for this seperate layout depending on the
layout before.
Increase the counter to the value you need, set the print condition = true and reset the counter.
Regards
but once i enter the layout with the graphical line how can i print the fields again. as i have left the layout with the fields in them.
pl help me out. You will be solving a big query for me.
thanks in advance
bdittmar
25th November 2009, 15:11
but once i enter the layout with the graphical line how can i print the fields again. as i have left the layout with the fields in them.
pl help me out. You will be solving a big query for me.
thanks in advance
Hello,
i think you'll do something like this :
Article 001
Article 002
Article 003
Article 004
Article 005
----------
Article 006
Article 007
Article 008
Article 009
Article 010
----------
Article 011
aso.
The report is shown in attachment.
Regards
mark_h
25th November 2009, 15:29
Now take what bernd showed you and you can make it a variable number of times. Using an edit check. Here is another way to do this leaving the output expression as 1.
| Detail.1 contains graphical line
detail.1:
before.layout:
if tisfc001.kowc = tckowc.main.wc then
lattr.print = true | Print when main wc passed
else
lattr.print =false | Don't print when not main
endif
detail.2:
before.layout:
| always print detail 2 cause it contains info on the workcenter
You can reverse this and play with turning on and off layouts. All you really need to do in the code is include the conditions to trigger the graphical line.
mast_aadmi
2nd December 2009, 08:32
I have attached the report. What i want in that report is that the terms and conditions, delivery, validity etc should come in a box.
As you can see it is printed only at the very end and not on each time. All the text that is printed is taken from the footer text field that is entered in the quotation session. Is there any way to solve the problem.
All this is printed by repetitively calling an after field layout repetitatively till the entire text entered in the footer text is printed.
mark_h
2nd December 2009, 15:27
In the report editor just make the layout big enough and then draw a box around it. Under the edit command you will see draw box.