Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7782237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:28:41+00:00 2026-06-01T19:28:41+00:00

Using the Rally App SDK, is there a way to create a table with

  • 0

Using the Rally App SDK, is there a way to create a table with a variable number of columns? For example, for a selected release, the columns are the iterations within that release date range, and the rows are each project.

I have all of the data I want to display, but not sure how to create the table.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T19:28:43+00:00Added an answer on June 1, 2026 at 7:28 pm

    Here’s an example app that dynamically builds a table config with Iteration Names as columns and then adds some dummy data to it. Not too exciting, but it illustrates the idea.

        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
        <!-- Copyright (c) 2002-2011  Rally Software Development Corp. All rights reserved. -->
    
        <html>
        <head>
            <title>Iterations as Table Columns</title>
            <meta name="Name"    content="App: Iterations as Table Columns"/>
            <script type="text/javascript" src="https://rally1.rallydev.com/apps/1.29/sdk.js"></script>
    
    
            <script type="text/javascript">
                function iterationsAsTableColumns(rallyDataSource)
                    {
    
                        var wait = null;
                        var table = null;
                        var tableHolder = null;
    
                        // private method the builds the table of Iteration columns and your info
                        function showResults(results)
                        {
                            if (wait) {
                                wait.hide();
                                wait = null;
                            }
                            if (table) {
                                table.destroy();
                            }
    
                            var myIterations = results.iterations;
    
                            if (myIterations.length === 0) {
                                tableHolder.innerHTML = "No iterations were found";
                                return;
                            }
    
                            var columnKeys = new Array();
                            var columnHeaders = new Array();
                            var columnWidths = new Array();
                            var columnWidthValue = '80px';
                            var keyName;
    
                            // Dynamically build column config arrays for table config
                            for (i=0; i<myIterations.length;i++){
                                keyName = "Column"+i;
                                columnKeys.push(keyName);
                                columnHeaders.push("'" + myIterations[i].Name + "'");
                                columnWidths.push("'" + columnWidthValue + "'");
                            }
    
                            var config = { 'columnKeys'    : columnKeys,
                                           'columnHeaders' : columnHeaders,
                                           'columnWidths'  : columnWidths
                                         };
    
                            table = new rally.sdk.ui.Table(config);
    
                            var cellValue;
                            var propertyAttributeStatement;
                            var rowData = new Array();
    
                            for (i=0;i<10;i++){
    
                                // create Object for row data
                                rowItem = new Object();
    
                                for (j=0; j<columnKeys.length;j++){
    
                                    cellValue = "Cell[" + i + "][" + j + "] = Your Data Here";
                                    propertyAttributeStatement = "rowItem." + columnKeys[j] + " = '"+cellValue+"';";
                                    eval(propertyAttributeStatement);
                                }
    
                                rowData.push(rowItem);
                            }
    
                            table.addRows(rowData);
                            table.display(tableHolder);
                        }
    
    
                        //private method to query for iterations that get listed as columns
                        function runMainQuery(sender, eventArgs) {
    
                            var queryCriteria = '(Project.Name = "Avalanche Hazard Mapping"")';
    
                            var queryConfig =
                                {
                                 key   : "iterations",
                                 type  : "Iteration",
                                 fetch : "FormattedID,Name,Project,StartDate,EndDate,CreationDate",
                                 order : "CreationDate desc",
                                };
    
                            tableHolder.innerHTML = "";
                            wait = new rally.sdk.ui.basic.Wait({});
                            wait.display(tableHolder);
    
                            rallyDataSource.findAll(queryConfig, showResults);
                        }
    
                        //private method to start building controls on page
                        function initPage() {
    
                            buttonSpan = document.getElementById('buttonSpan');
                            tableHolder   = document.getElementById('table');
    
                            var buttonConfig = {
                                   text: "Show Table",
                                   value: "myValue"
                            };
    
                            var showTableButton = new rally.sdk.ui.basic.Button(buttonConfig);
                            showTableButton.display(buttonSpan, runMainQuery);
    
                        }
    
                        // only public method
                        this.display = function() {
                            rally.sdk.ui.AppHeader.showPageTools(true);
    
                            initPage();
                        };
    
                    }
    
    
            </script>
            <script type="text/javascript">
                rally.addOnLoad(function() {
                    var rallyDataSource = new rally.sdk.data.RallyDataSource('__WORKSPACE_OID__',
                                                                             '__PROJECT_OID__',
                                                                             '__PROJECT_SCOPING_UP__',
                                                                             '__PROJECT_SCOPING_DOWN__');
                    var iterationsAsTableColumnsExample = new iterationsAsTableColumns(rallyDataSource);
                    iterationsAsTableColumnsExample.display();
                });
            </script>
        </head>
    
        <body>
          <div>
              <span id="buttonSpan"></span>
           </div>
          <div style="height: 15px;">&nbsp;</div>
          <div id="table"></div>
        </body>
    
        </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Overview I am using CompositeWPF to create an app using C#. This really should
I'm using the server-side SDK to access Facebook Authentication. After authorizing my app -
Compiling my iPad app against the 5.1 SDK (release version) causes UIPopoverController to show
How do you store and retrieve application preferences using the App SDK? I see
I have been playing around with my phonegap app in eclipse using android sdk
I just started using Sequel in a really small Sinatra app. Since I've got
I've a facebook app which posts in the user wall. In the post there
Hey, basically i'm on my second App for the iPhone SDK and im really
On my OpenGL ES 2.0 App - Using the iPhone simulator sometimes is dirt
I am using new new Facebook-ios-sdk did everything what is informed in README.mdown. while

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.