custom dialogs?

Monday, July 11, 2011 9:36:26 AM
is there a way to add custom dialogs to Spira for instance using the VS API ??
7 Replies
Friday, July 15, 2011 1:17:55 AM
Avatar
re: kagel on Monday, July 11, 2011 9:36:26 AM

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

Friday, July 15, 2011 8:20:24 AM
Avatar
re: inflectra.adam on Thursday, July 14, 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.
Tuesday, July 26, 2011 4:26:52 PM
Avatar
re: kagel on Friday, July 15, 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.

Wednesday, August 10, 2011 9:04:25 AM
Avatar
re: inflectra.adam on Tuesday, July 26, 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?
Saturday, August 27, 2011 3:11:17 AM
Avatar
re: kagel on Wednesday, August 10, 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.
Monday, August 29, 2011 8:18:05 AM
Avatar
re: inflectra.adam on Friday, August 26, 2011

I added the following Tags in ProjectHome.aspx

1.

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

2.

                                        <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 ?

 

 

 

Wednesday, September 7, 2011 5:02:09 PM
Avatar
re: kagel on Monday, August 29, 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!
}
</script>

Statistics
  • Started: Monday, July 11, 2011 9:36:26 AM
  • Last Reply: Wednesday, September 7, 2011 5:02:09 PM
  • Replies: 7
  • Views: 1618