Options

how to give limitation for the report?

julkifli33julkifli33 Member Posts: 1,073
edited 2011-09-28 in NAV Three Tier
hi all... i want to give limitation for the report
for example i have 3 documents
document 1 have 5 lines
document 2 have 11 lines
document 3 have 15 lines

each document only allow 10 lines
so... when i print document 1 - 3
it should show like this
document 1 = 5 lines
document 2 = 10 lines
document 3 = 10 lines

does anybody have an idea?
i used currreport.break in classic doesnt work
because if i have 15 lines... it still showing line 11-15 in second page

Comments

  • Options
    BeliasBelias Member Posts: 2,998
    there is property "maxiterations" on the dataitem: try with that one...no code, better code :mrgreen:
    (but document that you've used that feature, another developer can easily miss it :whistle:
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • Options
    julkifli33julkifli33 Member Posts: 1,073
    Belias wrote:
    there is property "maxiterations" on the dataitem: try with that one...no code, better code :mrgreen:
    (but document that you've used that feature, another developer can easily miss it :whistle:

    i set maxiteration as 10
    but if i have 15 lines
    then the 5 more lines will show in another page
    i want to print only first 10 lines of the documents
  • Options
    julkifli33julkifli33 Member Posts: 1,073
    another question is.... how to print document
    starting from page 2 on wards
    so the 1st page not to be printed
  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    julkifli33 wrote:
    another question is.... how to print document
    starting from page 2 on wards
    so the 1st page not to be printed

    In the printer selection window..set pages from 2 to X
  • Options
    BeliasBelias Member Posts: 2,998
    julkifli33 wrote:
    i set maxiteration as 10
    but if i have 15 lines
    then the 5 more lines will show in another page
    i want to print only first 10 lines of the documents
    I don't clearly understand what you need: 10 lines at max per document, and if there are more lines, you don't print them?
    if so on what dataitem did you set maxiteration?
    you should set it on sales line, but i don't remember if the No. of iteration is reset every time you change the outer dataitem (e.g. sales header). If not, you'll get something like
    Document 1 --> 5 lines
    Document 2 --> 5 lines
    and nothing more :(

    In that case, a counter with a well placed currreport.skip/break should be ok :-k
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • Options
    julkifli33julkifli33 Member Posts: 1,073
    sorry to made you confuse
    here is the scenario
    i have 3 documents
    Document 1 have 5 lines
    Document 2 have 10 lines
    Document 3 have 15 lines

    even though i highlight document 1-3 to be printed
    but Document 3 will be printed
    why? because only document 3 that have more than 10 lines
    so it should print document 3 (only line 11-15)
Sign In or Register to comment.