How to hide a label from

LeroyLeroy Member Posts: 199
edited 2007-05-02 in Navision Attain
Hello, I'd like to know how I can hide a a flange or label from a card.
Thanks.

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Use following C/AL Code in the OnOpenForm or OnAfterGetRecord trigger:
    CurrForm.myControl.VISIBLE := FALSE;
    
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • LeroyLeroy Member Posts: 199
    Thank you for answerd. One question, on "myControl", you mean the name of the label?, I put it but don't recongnise it.
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Give the label a name using the Name-property
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • diptish.naskardiptish.naskar Member Posts: 360
    Do place the code in the proper place so that the code gets triggered..that's the final step that you need to do
    Diptish Naskar
    For any queries you can also visit my blog site: http://msnavarena.blogspot.com/
  • LeroyLeroy Member Posts: 199
    Thanks both for help but I can't do it; It hides me all the card, not the label I want. I've put a name in the properties but it doesn't works. Any idea else please?.
    Thanks.
  • WaldoWaldo Member Posts: 3,412
    Did you put the label in the right control? See that only your label is selected when you open the properties and set the name...

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • LeroyLeroy Member Posts: 199
    That's the problem, I can't select only the label that I want to select the properties, it selects all the form and, of course, it hides everything. Any solution?.
  • WaldoWaldo Member Posts: 3,412
    I can hardly believe you can't select that control.

    Did you write code?
    In what trigger, and what code?

    can you please export to text and put it on this thread?

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • LeroyLeroy Member Posts: 199
    I put the code CurrForm.Warehouse.VISIBLE := FALSE; in the OnOpenForm or OnAfterGetRecord trigger. (Warehouse is the name of the label).
  • LeroyLeroy Member Posts: 199
    Sorry, I've get it. I've erased all the fields from de label and after that I've deleted the name of the label from the PageName control.
    Thanks fot the help.
  • WaldoWaldo Member Posts: 3,412
    I thought it might be something like that ... it had to be 8)

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
Sign In or Register to comment.