Santosh Kumar's profileSantosh Kumar Paruvella'...BlogListsGuestbookMore ![]() | Help |
Santosh Kumar Paruvella's space |
|||||
|
November 10 Using the Ax-Resource nodes as MetadataIn this example, I am storing XML file as Resource under AOT of Dynamics Ax. Also I am able to get back that resource as xml file, retrieving the file contents and use the same in our Business logic according to our needs. In the same way we can use Resources as Metadata. For a quick view of the new Resource node, see the following figure. Find the related jobs at the following path, this path contains two jobs for 1) Creation of new resource file. 2) Reading the same resource as file. For this article I got basic inputs from one of my previous colleague Santosh blog and also from MS employee Dilip (DaxDilip) blog. Thanks to both of you. November 02 Different styles (*.css) for our EP pages of Ax 2009We can apply our custom styles for the newly developed pages or customized pages of EP. The following link gives in idea about, how to create our own custom css file and deploy the same in to web server. Hints on Workflow implementation for EP in Ax 2009When we are developing the workflow for EP in Dynamics Ax 2009, We won’t find the workflow related control on the Tool box list, as we are finding other controls like AxGridView etc. For this explicitly we need to add the Markup tags to the control. Select the AxUserControl, right click and select the View Markup Add the following lines in the markup view (change the properties accordingly as your scenarios) <%@ Register Assembly="Microsoft.Dynamics.Framework.Portal, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="Microsoft.Dynamics.Framework.Portal.UI.WebControls.Workflow" TagPrefix="dynamics" %>
<dynamics:AxWorkflowActionBar ID="WorkflowActionBar" runat="server" DataMember="ProjProposalJour_Current" DataSourceID="dsEPProjProposalInfo" onworkflowworkitemactioncompleted="WorkflowActionBar_WorkflowWorkItemActionCompleted" /> <dynamics:AxDataSource ID="dsEPProjProposalInfo" runat="server" DataSetName="EPProjProposalInfo" />
Observe form the above markup tags AxWorkflowActionBar and AxDataSource are connected using AxDatasource ID. (Properties mentioned in green color)
To implement the methods related to workflow control in the code behind sheet (in Actual C# code sheet), add the following line.
using Microsoft.Dynamics.Framework.Portal.UI.WebControls.Workflow;
For more details and how to implemnet the worklfow for EP pages, go through the following link.
October 07 Target date not found in work calendar error of Workflow in Dynamics AxWell… My experience on this same thing, I want to share with my blog readers. While working on workflow in Dynamics Ax 2009, I had faced the following error. Error: Target date not found in work calendar error To resolve this error go through the document at the following location. October 05 Hide/Show the Dynamics Ax EP web partsIn some scenarios, in a single web page we need to Hide/Show the certain web parts based on the user profile. By using the following code snippets we can Hide the web parts of the page.
This example is for Hiding 1) AxToolbarWebPart 2) AxUserControlWebPart
Hidding the Toolbar
private void hideWebMenuToolBar() { WebPartManager webPartManager = WebPartManager.GetCurrentWebPartManager(this.Page) as WebPartManager; AxToolbarWebPart toolBarWebPart;
for (int i = 0; i < webPartManager.WebParts.Count; i++) { toolBarWebPart = webPartManager.WebParts[i] as AxToolbarWebPart;
if (toolBarWebPart != null && toolBarWebPart.WebMenuName == "TmCustomers") { toolBarWebPart.Hidden = true; break; }
} }
Hidding the User control webpart
private void hideWebPart() { WebPartManager webPartManager = WebPartManager.GetCurrentWebPartManager(this.Page) as WebPartManager; AxUserControlWebPart webPart;
for (int i = 0; i < webPartManager.WebParts.Count; i++) { webPart = webPartManager.WebParts[i] as AxUserControlWebPart;
if (webPart != null && webPart.ManagedContentItem == "TmMattersGrid") { webPart.Hidden = true; break; } } }
|
||||
|
|