Ax 2012 Tips and Tricks

1. Call the Calling form methods from Caller form

First Form

public void CallingMethodforEnable()
{
button1.enabled(true);
}

public void CallingMethodforDisable()
{
button1.enabled(false);
}

Second Form

void clicked()
{
if(stringedit.valueStr()==’1′)
element.args().caller().CallingMethodforEnable();
if(stringedit.valueStr()==’0′)
element.args().caller().CallingMethodforDisable();
}

2.For Mark All Records in a grid

Method 1:

void clicked()
{
super();
element.task(2842);
element.task(2842);
}

Method 2:

void clicked()
{
#task;
super();
element.task(#taskSelectAll);
}

Method 3:

void clicked()
{

bt = Bill_TabMethod_ds.getFirst();

while(bt)
{
Bill_TabMethod_ds.findRecord(bt);
Bill_TabMethod_ds.mark(true);
bt = Bill_TabMethod_ds.getNext();
}

}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s