This small piece of code will do the trick
static void TaskPaneSet(Args _args)
{ boolean visible=true;
;
new xInfo().taskPane().setVisiblity(visible);
}
Yet another blog about Dynamics Ax
static void TaskPaneSet(Args _args)
{ boolean visible=true;
;
new xInfo().taskPane().setVisiblity(visible);
}
static void Enum2Label(Args _args) { DictEnum dictEnum; int valueIndex; LanguageId languageId='de'; int enumId=enumNum(SalesType); str labelId; ; dictEnum = new DictEnum(enumId); if (dictEnum) { for (valueIndex = 0 ; valueIndex < dictEnum.values(); valueIndex++) { labelId = dictEnum.index2LabelId(valueIndex); info(SysLabel::labelId2String2(labelId, languageId)); } } }Result: Journal Angebot Dauerauftrag Auftrag Zurückgegebener Auftrag Abrufauftrag Artikelbedarf
server static void TestSumSelect() { Connection connection; Statement statement; str sql; ResultSet resultSet; SqlStatementExecutePermission perm; ; connection = new Connection(); sql = strfmt( "SELECT SUM(QtyOrdered * SalesPrice) FROM SALESLINE where SalesId='xyz'"); perm = new SqlStatementExecutePermission(sql); perm.assert(); statement = connection.createStatement(); resultSet = statement.executeQuery(sql); while(resultSet.next()) { info(num2str(resultSet.getReal(1),0,2,1,0)); } CodeAccessPermission::revertAssert(); }