Skip to main content

Posts

Showing posts with the label ENTERPRISE PORTAL

Passing parameters from Managed code to X++ in dataset

Get external arguments through the args objects public void init() { ; super(); EPPersonalize::find(curuserid()); if (element.args() && element.args().dataset() == tablenum(EmplTable)) { callerEmplTable = element.args().record(); emplId = callerEmplTable.EmplId; } } protected void Page_Init(object sender, EventArgs e) { this.AxDataSource1.CreatingDataSetRun += new EventHandler(AxDataSource1_CreatingDataSetRun); } Set the param value to the event arugments void AxDataSource1_CreatingDataSetRun(object sender, CreatingDataSetRunEventArgs e) { e.DataSetRunArgs.parm = "4000"; } In AOT override or add method in the data set and use element.args().parm() to received the paramter public void executeQuery() { QueryBuildRange custRange; ; custRange = SysQuery::findOrCreateRange(this.query().dataSourceNo(1), fieldnum(CustTable, AccountNum)); custRange.value(element.args().parm()); super();

Development Steps of EP Development in Axapta

1. Create Tables/DataSets in AOT 2. Create user control in Visual Studio using EP VS-Addin. a. Use the AXDataSourceControl to point to the DataSet created in Step 1. b. Use AxGridView or AXForm and the BoundFields to display data and make it editable c. Save the User Control and right click to Add to AOT. This should add the user control under “Web -> Web Controls” node and created a node under “Web -> Web Content- > Managed” and copied the .ascx and .ascx.cs file “%SYSTEM Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\ep” folder 3. Create Page in SharePoint EP site and use Dynamics User Control web part and point to the User Control ( Web Content Item) Created in Step 2 4. Create a Web Menu Item in AOT and point it to the Page created in Step 3 5. Right Click the Web Menu Item and import. This should create a new item under “Web -> Web Files -> Page Definitions” 6. Hook up the Web Menu Item in the right Web-

Steps to Create Role Centers in Microsoft Dynamics Axapta 2009

Steps to Create Role Centers in Microsoft Dynamics AX 2009: I. Create an Enterprise Portal page 1. Launch the Enterprise Portal Website. Go to Administration -> Setup -> Internet -> Enterprise Portal -> Web Sites Or Hit the URL of the Sharepoint site in the Browser Window. http://:portnumber/EPSite Or 2. In the next step, Select Site Actions and select the Create option there. 3. In the New Web Part Page, select a Layout Template and name the .aspx page. Hit the Create button and the new Web part page is created. 4. In the next step, we need to add a Web Part to the Web page. In this case, we will add the Cues Web part which is available under the Miscellaneous section in the Add Web Parts page. The Cues Web part shows a pictorial representation of an important number for a business, such as the number of open sales orders. Click the Add Button to add the Cues Web part to the Web page. The Cues web part is added to the Web Page.   5. Set the Pr

How to create user control through enterprise portal

Create User Controls Your own User Controls can be created for use on Enterprise Portal pages. User Controls are created in a Visual Studio Web project. Use the following procedure to create a new user control: 1. Start Visual Studio. 2. Open the Web project for which you are creating a User Control. 3. Select the Web site in Solution Explorer. 4. In the Website menu, click Add New Item. 5. In the Add New Item window, be sure the Language drop-down is set to Visual C#. 6. Click Dynamics AX User Control. 7. Name the new User Control. 8. Click Add. Design a User Control To design a User Control, you use the graphical design view in Visual Studio. There will also be cases where you edit the source for the User Control directly. Use the following procedure to design a new user control: 1. In Solution Explorer, right-click the User Control. 2. Click View Designer to view the graphical layout for the User Control Or Click View Code to view the source that defines the User