Цитата:
Сообщение от
DesparioN
Проблема была именно в dynalink
Не понял за dynalink. Туплю наверное.
Альтернативное решение для FnO
X++:
public void jumpRef()
{
CTSGLImportTableView glImportTableView;
glImportTableView = element.dataSource().cursor();
if (glImportTableView.LedgerJournalId)
{
// gets the deep links generator instance
var generator = new Microsoft.Dynamics.AX.Framework.Utilities.UrlHelper.UrlGenerator();
var currentHost = new System.Uri(UrlUtility::getUrl());
generator.HostUrl = currentHost.GetLeftPart(System.UriPartial::Authority);
generator.Company = glImportTableView.CompanyCode; // curext();
generator.MenuItemName = menuItemDisplayStr(LedgerJournalTableDailyGlobal);
generator.Partition = getCurrentPartition();
// repeat this segment for each datasource to filter
var requestQueryParameterCollection = generator.RequestQueryParameterCollection;
requestQueryParameterCollection.AddRequestQueryParameter(
formDataSourceStr(LedgerJournalTable,LedgerJournalTable),
fieldStr(LedgerJournalTable, JournalNum),
glImportTableView.LedgerJournalId
);
System.Uri fullURI = generator.GenerateFullUrl();
// to get the encoded URI, use the following code
new Browser().navigate(fullURI.AbsoluteUri); //ISSUE: it will not open posted General Journals. Well, it opens form, but user should change filter to show All
super();
}
}