axの2009年私の要件は、レポートを開くときにダイアログボックスを開くことで、ドロップダウンが表示されます。したがって、現在、私のドロップダウンはInventSiteテーブルのSiteIdです。下のコードに示すとおり。AX 2009レポートダイアログの寸法フィールド?
public class ReportRun extends ObjectRun
{
//Dialog
DialogField dfSiteName;
//Range
InventSiteId siteName;
}
public boolean getFromDialog()
{
;
siteName = dfSiteName.value();
return true;
}
public Object dialog(Object _dialog)
{
DialogRunBase dialog;
FormDateControl siteNameControl;
;
dialog = super(_dialog);
dialog.caption("Sales Overview Range Dialog");
dialog.addGroup("Selec Range");
dfSiteName = dialog.addField(typeid(InventSiteId),"Site","Select Range");
siteNameControl = dfSiteName.control();
siteNameControl.mandatory(true);
return dialog;
}
すべてこのコードで問題なく動作しています。代わりにSiteIdをInventSiteテーブルのダイアログボックスにドロップダウンします。Dimension [1]ドロップダウンをダイアログボックスのInventSiteテーブルから取得します。私はそれをすることができません。これについて私を案内してください。