Announcements
Hi does we have the property name appearing in the AOT of a control say for example like Grid are same to be used in the X++?
Like,
Grid1.editable(true);
Likewise other properties like AllowEdit all appearing in the property list must be used using the same propert name in X++?
okay André Arnaud de Calavon thanks.
Hi Mahesh,
If you have enabled the AutoDeclaration, you can read or also change values from some properties. You can see which options are available if you type the name of the control and then use the dot. A list with possible commands will be shown.
In this example you can use it in this way:
Gridname.skip(true);
Hi Baber Owais, AutoDeclaration concept as per I know is used for the same name of the control as used in the name property for that control.
But my question is the number of properties appearing in the property page of a control say Grid, We have to use the property name that are applicable to be used in the X++ code or required to be used in the X++ code has to be used with the same name?
For example AllowEdit property of Grid Suppose if I want to this AllowEdit property in X++, I have to use this as AllowEdit only know in X++?
For example Gridname.AllowEdit(true);
Likewise if I need to use some other property of Grid say Skip in X++ ,
then I have to use the same name of the property know?
like, GridName.skip=Yes;
Likewise for all properties of any control?
Hi Mahesh,
The control's property name does not appear in AOT. You can change the property of a control in X++ by using the same name that is shown on the property page of a control. To use this in your code, you need to set the Auto declaration property to true as Palle mentioned.
Please let me know if you have further queries in this regard.
Thanks,
Baber.
I think maybe the AutoDeclaration is the control property your are looking for!?
From MSDN: "Defines whether the system can declare a member variable that has the same name as the control. "
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,186 Super User 2024 Season 2
Martin Dráb 227,996 Super User 2024 Season 2
nmaenpaa 101,148