[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.axapta.programming

Overriding the Dialog Method

Shaakera

12/7/2005 1:47:00 PM

Hi All
I have a parent class, lets call it x. In x there is a dialog method
defining a dialog to run. Say we have a fields on this form that has been
defined in method.
If i write a new class extending the class x, i want to override the dialog
method from the parent class, in such a way as to hide the field that has
been defined in the parent class.
I have tried the visible method, but there is a slight problem.
The field is of type InventOnHandDate which is an array, so when i say:
field.visible(false); it only hides the first field of the array. How do i
hide all the values? My parent class is InventReport_Age and i want to hide
the field dialogDates on my child class.
Thanx
Shaakera

2 Answers

rheu

12/8/2005 7:23:00 AM

0

Hi Shaakera,

Use dialogField.fieldControl(i).visible(false) in a loop repeating the
number of arrays of field InventOnHandDate.

Rob


"Shaakera" wrote:

> Hi All
> I have a parent class, lets call it x. In x there is a dialog method
> defining a dialog to run. Say we have a fields on this form that has been
> defined in method.
> If i write a new class extending the class x, i want to override the dialog
> method from the parent class, in such a way as to hide the field that has
> been defined in the parent class.
> I have tried the visible method, but there is a slight problem.
> The field is of type InventOnHandDate which is an array, so when i say:
> field.visible(false); it only hides the first field of the array. How do i
> hide all the values? My parent class is InventReport_Age and i want to hide
> the field dialogDates on my child class.
> Thanx
> Shaakera
>

Shaakera

12/8/2005 7:37:00 AM

0

Thanx so much. It worked!!!

"rheu" wrote:

> Hi Shaakera,
>
> Use dialogField.fieldControl(i).visible(false) in a loop repeating the
> number of arrays of field InventOnHandDate.
>
> Rob
>
>
> "Shaakera" wrote:
>
> > Hi All
> > I have a parent class, lets call it x. In x there is a dialog method
> > defining a dialog to run. Say we have a fields on this form that has been
> > defined in method.
> > If i write a new class extending the class x, i want to override the dialog
> > method from the parent class, in such a way as to hide the field that has
> > been defined in the parent class.
> > I have tried the visible method, but there is a slight problem.
> > The field is of type InventOnHandDate which is an array, so when i say:
> > field.visible(false); it only hides the first field of the array. How do i
> > hide all the values? My parent class is InventReport_Age and i want to hide
> > the field dialogDates on my child class.
> > Thanx
> > Shaakera
> >