Skip to main content

Coresuite Customize : Optimizer

Comments

3 comments

  • Lothar Hasenkämper

    Hi Janice,

    I see different things that could be posibble.
    I'm not sure if optimizer needs 1 in Copies M instead of 0

    When only 6 should be printed, why are there there other series as well?
    If series is 101 or so on it should print too
    Is 6 right or did it changed in the past

    Why using optimizer?
    You can gain what you want with "after add" and the Extended Definition as well

    regards Lothar
     

    0
  • Janice Middleton

    hi Lothar

     

    I will see if changing the 0 to 1 on Copies M will make a difference, but that has always been 1.

    Series 6, 101, etc should all print. We have a few document series. only series 83 should not print.

    This was done a few years ago. I am unfamiliar with the Extended Definition, do you have an example I can use perhaps. I havent worked on coresuite for quite some time :-(

     

    thanks

    Janice

     

     

     

     

    0
  • Lothar Hasenkämper

    Hi Janice,

    as I already said putting “after Add” on Print it would do what you want.

    Next step Filtering

    In the Extended Definition  you'll find the “Parameter Expression”. With it you can control that a Printdefinition is “visible” / "useable". You can put a query and if the result is 1 the PrnDef is visible, otherwise 0 not.

    Small problem with it, if you have e.g. 10 PrnDef's for one FormType you need to setup the “Parameter Expression” in all PrnDef's

    SELECT
    /*Wenn der Kunde nicht Privat ist dann 1*/
    CASE [OCRD].[CmpPrivate]
    WHEN 'I' THEN 0
    ELSE 1
    END AS [Visible]
    FROM [O@@RDR]
    INNER JOIN [OCRD] ON [OCRD].[CardCode] = [O@@RDR].[CardCode]
    WHERE 
    [O@@RDR].[DocEntry] = [%DocEntry]

    In my case it is Private.

    So you could setup a PrintDef for all series <> 83 with Print after add, one Printdef with series = 83 and all other PrndDef could have

    Select 1 

    regards Lothar

    0

Please sign in to leave a comment.