It's just an easy task. You can do it by changing the
FormDataObject type into object type.
void clicked()
{
object myField;
super();
myField =
SalesTable_ds.object(fieldNum(SalesTable,CustAccount));
myField.method();
}
So, myField can call any method that exist to that
object. Though, it's not type-safe.
Regards,
Sonny Wibawa Adi, MBSCP, MCAD.NET, MCSD.NET, MCP
--- necmigocek <[EMAIL PROTECTED]> wrote:
> Hi sonny,
>
> Thanks for reply. I mean calling methods that is not
> overrideable.
> For example:
>
> Let's assume below method belongs to a field of a
> table
> void method()
> {
> ;
> info('succedd!!!');
> }
> And i want to call this method when user clicks a
> button.
>
> --- In [email protected], Sonny
> Wibawa Adi
> <[EMAIL PROTECTED]> wrote:
> >
> > Hi necmigocek,
> >
> > Did you mean by calling validate / modified-like
> > methods of a specific field in form datasource?
> >
> > I tried this method on Axapta SP3 and worked well.
> >
> > public boolean validate()
> > {
> > boolean ret;
> >
> > ret = super();
> >
> > info("X");
> >
> > return ret;
> > }
> >
> > void clicked()
> > {
> > FormDataObject myField;
> > super();
> >
> > myField =
> >
>
SalesTable_ds.object(fieldNum(SalesTable,CustAccount));
> > myField.validate();
> > }
> >
> >
> > Remember to use FormDataObject variable as pointer
> > holder, if didn't then "X" won't be shown in
> infolog.
> > (i.e. SalesTable_ds.object(...).validate(); will
> call
> > validateField)
> >
> > Regards,
> >
> > Sonny Wibawa Adi, MBSCP, MCAD.NET, MCSD.NET, MCP
> >
> > --- necmigocek <[EMAIL PROTECTED]> wrote:
> >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> > __________________________________
> > Discover Yahoo!
> > Stay in touch with email, IM, photo sharing and
> more. Check it out!
> > http://discover.yahoo.com/stayintouch.html
>
>
>
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---- LSpots keywords ?> ---- HM ADS ?>
YAHOO! GROUPS LINKS
- Visit your group "development-axapta" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

