Skip Navigation LinksForums > SpiraTeam Forums > SpiraTeam Issues & Questi... > custom dialogs?

custom dialogs? RSS Feed

Monday, July 11, 2011
is there a way to add custom dialogs to Spira for instance using the VS API ??
7 Replies
Adam SAdam S
re: pascal hoffmann on Monday, July 11, 2011
Thursday, July 14, 2011

You'll probably need to explain this a bit more, what kind of dialogs exactly?

pascal hoffmannpascal hoffmann
re: Adam S on Thursday, July 14, 2011
Friday, July 15, 2011
We have seen that's possible to implement additional (Standalone) Windows Forms or ASP.NET Applications to display or modify data in the current Spira installation using the Spira API. It would be nice if it where possible to integrate these application in Spira. For example by adding new menuitem or button in Spira from which the custom application or dialogs would be called? Similar to the custom reports that are already available.
Adam SAdam S
re: pascal hoffmann on Friday, July 15, 2011
Tuesday, July 26, 2011

That's an interesting suggestion. We have logged that as an enhnacement request.

You could embed some of the items in the My Page or Project Home by adding them as User Controls (.ascx) pages.

pascal hoffmannpascal hoffmann
re: Adam S on Tuesday, July 26, 2011
Wednesday, August 10, 2011
sounds good, I have created such an user control and copied it into to the user control directory, but the custom control doesn't appear in the available widget list, is there anything to do else?
Adam SAdam S
re: pascal hoffmann on Wednesday, August 10, 2011
Friday, August 26, 2011
You need to add it to the CatalogZone on the actual web page, (ProjectList.aspx for MyPage and ProjectHome.aspx for Project Home). This Catalog Zone can be found in the .aspx page.
pascal hoffmannpascal hoffmann
re: Adam S on Friday, August 26, 2011
Monday, August 29, 2011

I added the following Tags in ProjectHome.aspx


<%@ Register TagPrefix="tstuc" TagName="SpiraBridge" Src="~/UserControls/WebParts/ProjectHome/SpiraBridge.ascx" %>


                                        <tstuc:SpiraBridge runat="server" ID="ucSpiraBridge" MessageBoxId="lblMessage" Title="<%$ Resources:Main,ProjectHome_SpiraBridge %>" />

The UC SpiraBridge:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SpiraBridge.ascx.cs" "Inflectra.SpiraTest.Web.UserControls.WebParts.ProjectHome.SpiraBridge" %>

<%@ Import namespace="System.Data" %>

<%@ Import namespace="Inflectra.SpiraTest.Web" %>


now I get an

Parser Error Message: Could not load type 'Inflectra.SpiraTest.Web.UserControls.WebParts.ProjectHome.SpiraBridge'.

anything else what I have to do ?




Adam SAdam S
re: pascal hoffmann on Monday, August 29, 2011
Wednesday, September 7, 2011

The problem is that it's trying to load the actual user control and it doesn't have a code-behind file. You need to make the .ASCX page completely self-standing. I.e. in the .ASCX file, remove the Inherits from attribute and add any code into the ASCX page itself:

<script language="c#" runat="server">
public void Page_Load(object sender, EventArgs e)
//hello, world!

  • Started: 7/11/2011
  • Last Reply: 9/7/2011
  • Replies: 7
  • Views: 1605
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2017 | Licensed to Inflectra Corporation.