How to refer a control in a Report.

SneakerSneaker Member Posts: 6
edited 2003-09-10 in Navision Financials
Ex:

ShowClient As Boolean.

If ShowClient Then
Control11.Visible=True; (not work)

Comments

  • rkadenbachrkadenbach Member Posts: 15
    The control need a name (property Name).

    For Example:
    control name = Button

    If Showclient
    then
    currform.button.visible:=true;

    or

    currform.button.visible:=Showclient;
  • SneakerSneaker Member Posts: 6
    Thanks, but the problem was in Section Designer of the Report Designer.

    For Ex:


    IF ShowTextBox THEN
    currReport.Prev.Visible:=False;

    This example not work, a message appear:

    'Uknouwn variable Prev'

    Prev='Name property of the TextBox'
  • GoMaDGoMaD Member Posts: 313
    Controls are not directly available on the Section designer in the manner of

    CurrReport.controlname.visible = true;

    The better way (if you can call it that) is to work with a dummy variable which you can leave empty or fill in as desired and use that dummy variable as the source expression in the properties of the textbox.

    Greetings
    Now, let's see what we can see.
    ...
    Everybody on-line.
    ...
    Looking good!
  • DoomhammerDoomhammer Member Posts: 211
    You can also create more sections and control their printing via CurrReport.SHOWOUTPUT(SetShow) function.
    refer to reports like invoice, order (i.e. 405 etc.) and see how they print document lines
    Martin Bokůvka, AxiomProvis
Sign In or Register to comment.