Fire up your applications with Jetfire
RSS
Jetfire Wiki

About Us

Code Plex Projects

COR COR Administration Debug GUI Jetfire Administration Jetfire Code Jetfire Core Jetfire Language Jetfire Web Part Library misc Release Notes Roles Solutions States Training User Administration Versioning Web Parts Web Service Website Design Website Procedures Wiki conventions WordML Workflow Administration

Quick Search
»
Advanced Search »

PoweredBy

Table of Contents [Hide/Show]


Jetfire Code: Poll Sample

The Jetfire Code Class for Poll Sample is shown below in the box. This class is used to demonstrate how to build a 1 question poll or survey.

// P O L L    W O R K F L O W
//===================================================================================
// Poll.txt
//===================================================================================
// Copyright (C) 2009 TrackerRealm Corporation
// This file is part of Jetfire.
// 
// Jetfire is open software: you can redistribute it and/or modify it under the terms of the 
// GNU General Public License as published by the Free Software Foundation, version 3 of the License.
// 
// Jetfire is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
// See the GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License along with Jetfire.  
// If not, see http://www.gnu.org/licenses.
// REMOVAL OF THIS NOTICE IS VIOLATION OF THE COPYRIGHT.
//===================================================================================

namespace DemoFormApps
{
	// This workflow is a sample poll.
	public workflow PollSample : Quiz
	{
		public PollSample()
		{
			// Declare variables used at top
			QnA qna;
			List selection = new List();
			// Add Questions
			selection.Add("Vegetarian");
			selection.Add("Steak and Potatoes");
			selection.Add("Fish and Chips");
			selection.Add("Hamburger and Fries");
			qna = new QnA("Select your favorite food", selection, QnAInput.Selection);
			QnAList.Add(qna);
			Subject = "Poll for favorite food";
		}
	}
}

See Also

Jetfire Code Library
Jetfire Code Application Library

ScrewTurn Wiki version 3.0.4.560. Some of the icons created by FamFamFam.