In Microsoft Dynamics AX, you can sort a form datasource when the form is loaded.
On the form, override the init method.
After the call to super(), add the sort field to the form datasource.
public void init()
{
super();
salesLine_ds.query().dataSourceTable(tableNum(SalesLine)).addSortField(fieldNum(SalesLine, ConfirmedDLV), SortOrder::Ascending);
}
If you need to sort on multiple fields, keep adding the fields you need with the addSortField method.
public void init()
{
super();
salesLine_ds.query().dataSourceTable(tableNum(SalesLine)).addSortField(fieldNum(SalesLine, ConfirmedDLV), SortOrder::Ascending);
salesLine_ds.query().dataSourceTable(tableNum(SalesLine)).addSortField(fieldNum(SalesLine, SalesStatus), SortOrder::Ascending);
}
On the form, override the init method.
After the call to super(), add the sort field to the form datasource.
public void init()
{
super();
salesLine_ds.query().dataSourceTable(tableNum(SalesLine)).addSortField(fieldNum(SalesLine, ConfirmedDLV), SortOrder::Ascending);
}
If you need to sort on multiple fields, keep adding the fields you need with the addSortField method.
public void init()
{
super();
salesLine_ds.query().dataSourceTable(tableNum(SalesLine)).addSortField(fieldNum(SalesLine, ConfirmedDLV), SortOrder::Ascending);
salesLine_ds.query().dataSourceTable(tableNum(SalesLine)).addSortField(fieldNum(SalesLine, SalesStatus), SortOrder::Ascending);
}
These are some great tools that i definitely use for SEO work. This is a great list to use in the future..
ReplyDeleteon the site pozyczki-24.pl
Thank you :)
ReplyDelete