Skip to main content

ExecutePrintDef with Parameter - No prompt if already filled

Comments

4 comments

  • Lothar Hasenkämper

    Hi Benny,

    I'm not sure but perhabs you can use the sequence column. There you can use a query like:
    Pseudo-Code:
    SELECT CASE WHEN XXX=XXX THEN 10 Else '' END AS [Seq]
    SELECT CASE WHEN XXX=XXX THEN 20 Else '' END AS [Seq]

    and so on.

    Normally the prompt shouldn't pop up if it is not filled
    XXX cold be a freetext from the PrintDef or the PrintDef-ID

    regards Lothar

    0
  • Benny Brand

    Hi Lothar,

    thanks for the fast reply. That's a good idea, but i tried with the following query:

    SELECT CASE WHEN [%FreeText] <> '1' THEN '04' ELSE '' END

    I set the FreeText field in the Printdefinition for the customize rule to '1' and it didn't work. Inputfield is still appearing when opening this printdef via customize rule.

     

    But i found my big mistake:

    I used the default parameter "FreeText" also for my checkbox parameter. This is why I wasn't able to set the parameter mode to "No prompt if already filled". I created a new parameter "Ausgabeform" with the same values and set this to "No prompt if already filled" and it worked for my customize rule and also for the standard layout. So don't use the FreeText parameter for this type of parameter.

     

    Thanks again Lothar!

    0
  • Lothar Hasenkämper

    Hallo Benny,
    manchmal hilft es ja auch darüber zu reden ;-)
    Gruß Lothar

    0
  • Benny Brand

    Hi Lothar,

    da hast du Recht. Danke dir ;-)

    Gruß Benny

    0

Please sign in to leave a comment.