pralash
12th December 2017, 12:18
Hi,
I'm new for LN Programming... I have designed two layout such as layout 4 and layout out 5. I need to send some data into the layout 4 after that I need to send some data for layout 5... This process is happened in a loop until the condition becomes false...
After the layout 4 is printed one time, i need to print the mutipledata on layout 5 then layout 4 is also contined....
My sample output as follows...
10490(emp code) Raj(name) Tester(role) (Printed on 4th layout)
9/11/2017 9.30
9/11/2017 9.35
9/11/2017 10.20
9/11/2017 10.40
10491(emp code) Suresh(name) Tester(role) (Printed on 4th layout)
9/11/2017 9.30
9/11/2017 9.35
9/11/2017 10.20
9/11/2017 10.40
Note : Here the date are need to print on the 5th layout...
Can you please help me how to perform this task...
Thanks in advance
Regards,
Pralash
mark_h
12th December 2017, 16:07
Do you own the session script? What I did was pass a print variable with the data and used that print variable to determine which detail layout to print. So each rprt_send() included k.of.data (just an example) - if i was sending the main record I would make it 4 and that would print layout 4. The next rprt_send() I would send the details with a 5 in k.of.data and it would print layout 5.
pralash
13th December 2017, 07:20
Hi,
Thanks so much for your information....
My report script is as follows...
|******************************************************************************
|* tctls940301000 VRC B61C 9 esc
|*
|* baan
|* 17-11-13 [11:08]
|******************************************************************************
|****************************** declaration section ***************************
declaration:
table ttctls903 | logged user informaiton
|***************************** program section ***************************
|***************************** layout section ***************************
detail.1:
before.layout:
if all.log.user= tcyesno.yes then
lattr.print = true
else
lattr.print = false
endif
header.1:
before.layout:
if all.log.user= tcyesno.yes then
lattr.print = true
else
lattr.print = false
endif
detail.2:
before.layout:
if tot.log.user = tcyesno.yes then
lattr.print = true
else
lattr.print = false
endif
header.2:
before.layout:
if tot.log.user= tcyesno.yes then
lattr.print = true
else
lattr.print = false
endif
detail.3:
before.layout:
if sort.log.user = tcyesno.yes then
lattr.print = true
else
lattr.print = false
endif
header.3:
before.layout:
if sort.log.user = tcyesno.yes then
lattr.print = true
else
lattr.print = false
endif
detail.4:
before.layout:
if tot.log.detail = tcyesno.yes then
lattr.print = true
else
lattr.print = false
endif
header.4:
before.layout:
if tot.log.detail = tcyesno.yes then
lattr.print = true
else
lattr.print = false
endif
detail.5:
before.layout:
if tot.log.detail = tcyesno.yes then
lattr.print = true
else
lattr.print = false
endif
As you already suggested, how can I send the print variable with the data to the report when calling the rprt_send() function?
Regards,
Pralash
manish_patel
13th December 2017, 07:42
Hi,
I'm new for LN Programming... I have designed two layout such as layout 4 and layout out 5. I need to send some data into the layout 4 after that I need to send some data for layout 5... This process is happened in a loop until the condition becomes false...
After the layout 4 is printed one time, i need to print the mutipledata on layout 5 then layout 4 is also contined....
My sample output as follows...
10490(emp code) Raj(name) Tester(role) (Printed on 4th layout)
9/11/2017 9.30
9/11/2017 9.35
9/11/2017 10.20
9/11/2017 10.40
10491(emp code) Suresh(name) Tester(role) (Printed on 4th layout)
9/11/2017 9.30
9/11/2017 9.35
9/11/2017 10.20
9/11/2017 10.40
Note : Here the date are need to print on the 5th layout...
Can you please help me how to perform this task...
Thanks in advance
Regards,
Pralash
Assuming that posted sample output is your complete req.
You have to define sort mode on emp code field.
Once you defined sort mode it can be used as sort field in a report laout of type "before.field"
emp code related data (one time) -- this should be go to before.field layout
Multiple data -- detail layout
I would suggest you to study at least basic of report sections.
pralash
13th December 2017, 14:07
Thanks for your information...
Regards,
Pralash
mark_h
13th December 2017, 23:50
What I was talking about was doing something in session script not in the report script. In my case I had to pass different type data in detail layouts in the same format. So I would print a detail.1 layout kind.of.data 1 for the main record. Then detail.2 would be kind.of.data.2 for like GRP orders and then detail.3 would be kind.of.data 3 for be something like SFC orders. Just a rough example.