29.11.2010, 19:58
|
#3
|
Участник
Регистрация: 25.11.2010
Адрес: Stockholm, SE
|
Цитата:
Сообщение от _scorp_
Hi. Simple C# example:
X++: IAxapta2 axapta = new Axapta2Class();
axapta.Logon2(userId, pass, companyId, "", "", "", "", null, null, null);
IAxaptaObject axQuery = axapta.CreateObject("Query", "queryName", null, null, null, null, null);
IAxaptaObject axQBDS = axQuery.Call("dataSourceNo", 1, null, null, null, null, null);
IAxaptaObject axQBDSFields = axQBDS.Call("fields", null, null, null, null, null, null);
axQBDSFields.Call("dynamic", false, null, null, null, null, null); You make use callEx, CreateObjectEx for more "clean" sintax, without null parameters.
Thanks Scorp,
What about X++ addLink(fieldNum(Currency, dataAreaId), fieldNum(CompanyInfo, dataAreaId)) ?

SteEng
|
|