Skip to main content

Posts

X++ code to find all menu items related to form in Axapta

 Below code to find all menu items related to form in Axapta. You can try in Job in AOT. Thanks #AOT str find = “PurchTable”; TreeNode root = TreeNode::findNode(#MenuItemsDisplayPath); TreeNode current; TreeNodeTraverser trav = new TreeNodeTraverser(root,false); current = trav.next(); while (current) { if ((current.AOTgetProperty(‘ObjectType’) == “Form”) && (current.AOTgetProperty(‘Object’) == find)) info(strFmt(“Found menuitem %1”,current.AOTname())); current = trav.next(); }

get the resource type and the resource ID for a production order in Axapta X++

 To  get the resource type and the resource ID  for a production order in Axapta x++ you can get help from below code sample. ProdRoute                       prodRoute;     RecId                           recId;     WrkCtrId                        wrkCtrGrpId;     ProdId                          prodId = "W000170";     WrkCtrActivityRequirementType   WrkCtrActivityRequirementType;     WrkCtrActivityRequirement       wrkCtrActivityRequirement;     while select prodRoute         where prodRoute.ProdId == prodId     {         recId = prodRoute.activityRequirementSet().RecId;         select WrkCtrActivityRequirement             where WrkCtrActivityRequirement.ActivityRequirementSet == recid;         wrkCtrGrpId =  WrkCtrActivityRequirement.requirementEdit();         WrkCtrActivityRequirementType = WrkCtrActivityRequirement.WrkCtrActivityRequirementType;                 info(strFmt("%1, %2",WrkCtrActivityRequirementType,wrkCtrGrpId)); }

Error while performing workflow approval on EP page in Axapta for Expense report

  Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchServiceInstance (0450df4e-1a8a-4e2b-9242-343575bfa1e4).  Reason: An update conflict has occurred, and you must re-try this action. The object SearchDataAccessServiceInstance was updated by FFCM\sysadmin, in the OWSTIMER (15080) process, Tried below steps but not yet resolved issue.. Your valuable feedback comments are welcome. https://learn.microsoft.com/en-us/archive/blogs/jamesway/sharepoint-2010-clearing-the-configuration-cache

Error while opening Enterprise portal Page in Ax 2012

 Getting below error when opening Expense report page for workflow approval. An unhandled error has occurred. To view details about this error, enable debugging in the web.config file or view the Windows event logs. An exception of type MetdataException has occurred while performing the operation. mscorlib Server stack trace:     at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]:     at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)    at System.Runtime.Remoting.Proxies.RealProxy.