cancel
Showing results for 
Search instead for 
Did you mean: 

.NET TreeView Control: Cannot get the tree structure in portal

Former Member
0 Kudos

I am trying to use .NET tree view controller within SAP portal.

I created a SAP application project using the .NET PDK which I downloaded from service marketplace. I dragged and dropped the tree control in the design view of the SAP Portal Component and created couple of branches. The html code is

<%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>

<%@ Control language="c#" Codebehind="SAPNETTree.ascx.cs" AutoEventWireup="false" Inherits="treeTest_Net.SAPNETTree" targetSchema="http://schemas.microsoft.com/intellisense/ie5" debug="True"%>

<!%@ PortalComponent name="SAPNETTree" %>

<LINK href="D:\usr\pdkNET\Portal Add-in for Visual Studio 2003\Controls\ur\ur_design.css"

type="text/css" rel="stylesheet">

<body class="prtlBody" xmlns:sap="urn:http://schemas.sap.com/SAP.Web.UI.Controls">

<iewc:TreeView id="TreeView1" runat="server" SystemImagesPath="http://localhost:50000/irj/webctrl_client/1_0/treeimages/"

SelectedNodeIndex="2">

<iewc:TreeNode Text="Node0">

<iewc:TreeNode Text="Node2"></iewc:TreeNode>

<iewc:TreeNode Text="Node3"></iewc:TreeNode>

</iewc:TreeNode>

<iewc:TreeNode Text="Node1">

<iewc:TreeNode Text="Node4"></iewc:TreeNode>

<iewc:TreeNode Text="Node5"></iewc:TreeNode>

</iewc:TreeNode>

<iewc:TreeNode Text="Node6">

<iewc:TreeNode Text="Node8"></iewc:TreeNode>

<iewc:TreeNode Text="Node9"></iewc:TreeNode>

</iewc:TreeNode>

<iewc:TreeNode Text="Node7">

<iewc:TreeNode Text="Node10"></iewc:TreeNode>

<iewc:TreeNode Text="Node11"></iewc:TreeNode>

</iewc:TreeNode>

</iewc:TreeView>

</body>

Once i deploy the application in Enterprise Portal I cannot see the tree structure. I see a flat file with all the node names but not a tree structure.

I tried the same control in .NET ASP. It worked fine.

Could someone please let me know how I could get the tree running in the enterprise portal??

Thanks for your help!!!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

That didn't help with me...

still seeing a flat file...

tried to put it in the same dir like aspnet_client, but still no treeview...

where is the correct place with ep6.0 on netweaver04?

Greetings

Jochen

Former Member
0 Kudos

Place the webctrl_client at the root of the sap portal server and then it works.

SAP portal server is located at

"D:\usr\sap\PDE\JC00\j2ee\cluster\server0\apps\sap.com\com.sap.engine.docs.examples\servlet_jsp\_default\root"