public display str getDeepLinkSalesTable() { str deepLink; // gets the 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 = curext(); generator.MenuItemName = menuItemDisplayStr(SalesTable); generator.Partition = getCurrentPartition(); // repeat this segment for each datasource to filter var requestQueryParameterCollection = generator.RequestQueryParameterCollection; requestQueryParameterCollection.AddRequestQueryParameter(formDataSourceStr(SalesTable, SalesTable), fieldStr(SalesTable, SalesId), this.SalesId); System.Uri fullURI = generator.GenerateFullUrl(); // to get the encoded URI, use the following code if (fullURI.AbsoluteUri != //) deepLink = fullURI.AbsoluteUri; return deepLink; }
public void postLoad() { super(); this.DeepLinkSalesTable = CustomTable::find(this.SalesId).getDeepLinkSalesTable(); }