PennController.GetTableGlobal Commands

PennController.GetTable( tablename )

Refers to a table, where tablename can be the filename of a CSV file you uploaded to chunk_includes or the name of a table that was created with PennController.AddTable.

You would typically use GetTable within PennController.Template when your project contains more than one table and/or when you need to use only a subset of a table, using PennController.GetTable().filter.


PennController.Template( PennController.GetTable( "spreadsheet.csv" ) ,
    row => PennController( "button trial" , 
        newButton("test button", row.ButtonText)
    .log( "Group" , row.Item )
    .log( "Text"  , row.ButtonText )

Generate two trials from the table spreadsheet.csv which contains two rows and the columns Item and ButtonText.