Friday, September 11, 2009

How to: Access the Active Query on Forms

http://msdn.microsoft.com/en-us/library/aa659696.aspx

How to call a form method from method of other form

void B()
{
Object formAobj = element.args( ).caller( );
;
// Check that this form was opened from FormA
If ( formAobj && formAobj.name( ) == formstr(FormA) )
{
// Call method A on FormA
formAobj.A()
}
Return;
}

How can I pass parameter from a form to a class

static void main(Args _args)
{
PurchTable purchTable;
;

if (_args.dataset( ) != tablenum(PurchTable )
throw error(strfmt( "Method %1 was called with an invalid record", funcname())) ;

purchTable = _args().record( );

}

How can I pass parameter from a form to a class

static void main(Args _args)
{
PurchTable purchTable;
;

if (_args.dataset( ) != tablenum(PurchTable )
throw error(strfmt( "Method %1 was called with an invalid record", funcname())) ;

purchTable = _args().record( );

}

How to sow a webpage on ax 3.0

These are the steps to solve your problem..
STEPS-->
1) Create a new Form in AOT
2) In design of that form
A) Add-->ActiveX
B) Set Autodeclaration property of that ActiveX to "Yes"
C) Set Height & Width property as per your requirement
3) Override "Init" method of Form u have created in step-1)
public void init()
{
;
super();
WebPage.Navigate( "http://www.google. co.in");
}
4) Run the form

How to identify the user that was used to change an object from AOT in AX2012

Get the object name for which we need to track these (user and date&time) information's. Login to SQL Server Management Studio an...