Add data to Project Siena
In Project Siena, you can add data from these sources:
an Excel file
a SharePoint list
Office 365 Preview
an Azure mobile service
an RSS feed
Coursera
Another Project Siena app (by using the Export control)
For a general overview of Project Siena and links to resources such as sample apps, video tutorials, and forums, see Project Siena.
Prerequisites
Project Siena, which you can get for free from the Windows Store
You can find system requirements and other information in the release notes.
Familiarity with basic operations in Project Siena.
Add data from Excel
Open a worksheet that contains data formatted as a table.
If you don't already have such a worksheet, perform these steps:
Open Excel, and add the following data to a worksheet:
Product
Revenue
Violins
$21,000
Trombones
$15,000
Bongos
$14,000
Highlight the cells to which you added data, click Format as Table on the ribbon, and then click a table format.
In the Format As Table dialog box, ensure that the My table has headers check box is selected, and then click OK.
In the Table Name box, give the table a name, and then save and close the workbook.
Open Project Siena, press Alt+D to open the list of data sources, and then click Excel in that list.
Browse for the workbook from which you want to import data, and then click Open.
Ensure that the check box for each table that you want to import is selected, and then click Import Data.
Press Esc, or click the Back button to return to the design workspace.
(optional) Show the data in a gallery.
Add data from SharePoint
In the address bar of your browser, open a list in a SharePoint site, and then copy its URL.
If you don't already have such a list, create one that contains the following data:
Product
Revenue
Violins
$21,000
Trombones
$15,000
Bongos
$14,000
Open Project Siena, press Alt+D to show the list of data sources, and then click SharePoint.
Choose the kind of SharePoint site, paste the URL in the box, and then click Connect.
Ensure that the check box for each list you want to import is selected, and then click Import data.
Press Esc or click the Back button to return to the design workspace.
(optional) Show the data in a gallery.
(optional) Add rows to the list, and then update the source list:
Add a SharePoint Update control, and set its Items property to the list you added.
Press F5, and then click the SharePoint Update control.
(optional) On the SharePoint site, verify that the source list was updated.
Add data from Office 365 Preview
Open Project Siena, press Alt+D to open the list of data sources, and then click Office 365 Preview in the list.
Click Connect, and then sign in.
After your app is registered, press Esc to return the design workspace.
(optional) Show your Inbox in a gallery:
Press Alt-V to show the list of controls, click Galleries in that list, and then click Text Gallery.
The Items dialog box opens automatically but closes if you click anywhere outside of it. To reopen it, click the gallery, click Data if it appears in the lower-left corner, and then click Items.
In the Items dialog box, type this function:
Office365!Emails("Inbox")!items
Set the Text property of the Heading1 label to ThisItem!Subject.
Learn how to find a control by its name and set its properties.
Set the Text property of the Body1 label to ThisItem!BodyPreview, and set the Text property of the Subtitle1 label to this function:
Text(DateTimeValue(ThisItem!DateTimeCreated), "mm/dd/yyyy hh:mm a/p")
You can specify a different format for the date, such as dd/mm/yyyy, or skip a/p to show the time as a 24-hour clock.
(optional) Add a label, click Data if it appears in the lower-left corner, and then set the Text property of the label to this function:
CountIf(Office365!Emails("Inbox")!items, DateTimeValue(DateTimeCreated) > DateAdd(Now(), -7))
The label shows the number of email messages in your Inbox that were created in the last week.
Add data from an Azure mobile service
In an Azure mobile service, create a table named zz_config with two columns, a header row, and a row for each table that you want to import.
If you don't own the service, work with its administrator to ensure that this table exists.
In the left column, put Key in the header row and "table" (including the quotation marks) in all subsequent rows.
In the right column, put Value in the header row and the name of each table, enclosed in quotation marks, in each subsequent row.
Key
Value
"table"
"TableName1"
"table"
"TableName1"
In the Azure management portal, click the Dashboard tab, and then note the URL for the service in the lower-left corner under Quick Glance.
If you don't own the service, work with its administrator to get this information.
Near the bottom of the portal, click Manage Keys, and then note the application key for the service.
Open Project Siena, press Alt+D to open the list of data source, and then click Azure Mobile Services in that list.
Type or paste the URL and the app key for the service you want, and then click Connect.
Select the check box for each table that you want to import (or click Select All), and then click Import data.
Press Esc or click the Back button to return to the design workspace.
(optional) Show the data in a gallery.
Add data from an RSS feed
In your web browser, copy the URL for an RSS feed.
As an example, you can open the blog page for Project Siena, click RSS for posts in the upper-right corner, and then copy the URL of the page that appears.
Open Project Siena, press Alt+D to open the list of data sources, and then click RSS Feed.
Paste the URL for the feed in the box that appears, and then click Import data.
Press Esc or click the Back button to return to the design workspace.
(optional) Show the RSS feed in a gallery:
Press Alt-V to open a list of controls, click Galleries, and then click the horizontal Text Gallery.
In the Items dialog box, click the RSS feed you just added.
The Items dialog box opens automatically but closes if you click anywhere outside of it. To reopen it, click the gallery, click Data if it appears in the lower-left corner, and then click Items.
Set the Text property of Heading1 to ThisItem!title and its OnSelect property to Launch(ThisItem!link).
Learn how to find a control by its name and set its properties.
Set the Text property of SubTitle1 to ThisItem!pubDate, and set the Text property of Body1 to ThisItem!description.
The gallery shows the title, publication date, and first few sentences of each item in the feed. If you press F5 and then click the title of an item, the original source opens in a browser.
Add data from Coursera
Open Project Siena, and then press Alt-V to open a list of controls.
In that list, click Education, and then click Coursera Search or Coursera Lessons.
If you click Coursera Search, you can search for courses by keyword. If you click Coursera Lessons, you can search for courses by category. In either case, you can, for example, create a list of courses that interest you or that you would like your team to take.