This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Adding aspx page as starting page in TOC for an Item Type

Vardhan - Thursday, May 22, 2014 8:39 AM:

Hi,

We are planning to design an aspx page and add it as starting page for an Item Type. I started with this: Test.aspx

<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Web.UI" %>
<%@ Import Namespace="System.Web.UI.HtmlControls" %>
<%@ Import Namespace="System.Web.UI.WebControls" %>
<%@ Import Namespace="System.Web.UI.WebControls.WebParts" %>
<%@ Import Namespace="System.Xml.Linq" %>
<%@ Page Language="C#" %>
<script runat="server">
protected void Button1_Click(object sender, EventArgs e)
    {
        Innovator inn = this.getInnovator();
        Item am = inn.newItem("Part","get");
             int cnt = am.getItemCount();
        Label1.Text = "Parts count is:"+cnt;
    }
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/.../xhtml1-transitional.dtd">
<html xmlns="www.w3.org/.../xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div></div>
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Test" />
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    </form>
</body>
</html>

Added a button and a Label, button event to get the existing Parts count and display in the label.Finally added this under C:Program FilesArasInnovator10.0InnovatorClientscripts and added this page as Start Page under TOC View.

But facing the following error when I click on my ItemType under TOC.

Server Error in '/InnovatorServer/Client' Application

Runtime Error

 

Is it possible to add an aspx page as an ItemType's starting page. If so please help me with the correct way of implementing this.

 

I tried to add IOM namespace, <%@ Import Namespace="Aras.IOM" %> but Error states: 'IOM' does not exist in the namespace 'Aras'

Please help me.

 

Thank you / Vardh.



Vardhan - Thursday, May 29, 2014 1:53 AM:

 

How to use 'Innovator' class and its methods in an aspx page which is a starting page of an Item Type? I tried adding Aras.IOM namespace but it didn't work. 

Please help me.