[solved]desabling field in card page

massimopasquali
massimopasquali Member Posts: 82
edited 2016-11-08 in Entrepreneur Solution
Hy guys,

I have to disable a filed in a card page Customer, the field "Name", so I have seen that in OnAfertGetCurrRecord I have to put
my sentence :

CurrPage.Name.

Which is the correct sentence C/AL to disable the field above?

thanks

Comments

  • Kishorm
    Kishorm Member Posts: 921
    edited 2014-06-16
    It's done differently on pages, you need to do the following...

    1) create a Boolean global var e.g. "NameEnabled" and set the IncludeInDataset property to Yes
    2) in OnAfterGetCurrRecord set NameEnabled as appropriate
    3) on the Name field set the "Enabled" property to the new var NameEnabled
  • massimopasquali
    massimopasquali Member Posts: 82
    thanks, trying now.
  • massimopasquali
    massimopasquali Member Posts: 82
    Ok that's right, so other question : to check if a user have clicked on checkbox, which is the trigger that I must use?
  • tothszabolcs
    tothszabolcs Member Posts: 21
    You should use Navision's Help before new forum topic.

    Here is control's triggers:
    http://msdn.microsoft.com/en-us/library/dd301073.aspx