AnuKass
12th November 2018, 07:52
Hi all..I'm new for LN
I have 3 detail layout...all layout consist same logic but print order only differ.
I tried,
detail.1:
(logic)
detail.2:
(logic)
detail.3:
(logic)
but i don't want to repeat the logic . i want to write logic for only one time it's supports all layout .if anything present like detail.all ,please assist me.
i tried detail.all but it not work ..:(

mark_h
12th November 2018, 14:22
Why not use a library or a function in the script?


detail.1:
before.layout
get.details()
detail.2:
before.layout
get.details()
detail.3:
before.layout
get.details()


functions:
get.details()
{
...do some other stuff here...
}

AnuKass
13th November 2018, 06:51
Hi mark ..
thanks for your reply..

JaapJD
13th November 2018, 11:30
Or create an empty detail layout 1 and move your layouts to 2, 3 and 4.

detail.1:
before.layout:
|* do something...
lattr.print = false

Ensure that the print condition on detail 1 is 1.