custom dialogs?

Monday, July 11, 2011
Avatar
is there a way to add custom dialogs to Spira for instance using the VS API ??
7 Replies
Friday, July 15, 2011
Avatar
re: kagel Monday, July 11, 2011

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

Friday, July 15, 2011
Avatar
re: inflectra.david 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
Avatar
re: kagel 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
Avatar
re: inflectra.david 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
Avatar
re: kagel 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
Avatar
re: inflectra.david 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:,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
Avatar
re: kagel 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>

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Monday, July 11, 2011
  • Last Reply: Wednesday, September 7, 2011
  • Replies: 7
  • Views: 3815