Difference between revisions of "PT Poll Upgrade v2"

From ADF Docs
Jump to: navigation, search
(Pages)
(Poll Question Gallery Manager)
Line 38: Line 38:
 
## Results Per Page: 50
 
## Results Per Page: 50
  
== Poll Question Gallery Manager ==
+
=== Poll Question Gallery Manager ===
 
# Create a new page:
 
# Create a new page:
 
## Name: index
 
## Name: index

Revision as of 21:15, 22 February 2013

Overview

Follow the items below for upgrading the PT Poll app from v1.0 to v2.0.

Application Code

  1. Renamed directory "/ADF/apps/pt_poll" to "/ADF/apps/pt_poll_v1".
  2. Renamed file "/ADF/apps/pt_poll_v1/appBeanConfig.cfm" to "/ADF/apps/pt_poll_v1/appBeanConfig.cfm.old".
  3. Move the PT Poll v2.0 and exported into the "/ADF/apps/pt_poll/" directory.

Custom Elements

Poll Question Gallery

  1. Open the field definitions for the Poll Question Gallery element.
  2. Edit the "pollName" field.
    1. Go to the properties tab and set the size value to "50".
  3. Edit the "pollQuestionID" field.
    1. Go to the properties tab and set "Load All Available Selections" to "true".

Pages

Poll Administration

Rename this page to the following:

  1. Name: index
  2. Title: Poll Manager

Vote Manager

Create and setup the Vote Manager page.

  1. Create a new page:
    1. Name: vote manager
    2. Title: Vote Manager
  2. Insert a datasheet element into the page and define the datasheet.
    1. Select the Poll Vote element
    2. Add the UserID, QuestionID, Vote, Date
  3. Click on "Edit Columns"
    1. Add the action column for delete and select the "delete-form-data.cfm" module.
  4. Click to edit Layout
    1. Default Sorting: Date DESCENDING
    2. Results Per Page: 50

Poll Question Gallery Manager

  1. Create a new page:
    1. Name: index
    2. Title: Poll Question Gallery Manager
  2. Insert a Custom Script module onto the page.
  3. Edit the Custom Script module and enter the explicit path:
    1. /ADF/extensions/customcf/genericElementManagement.cfm
    2. Add the Parameter:
      1. elementName=Poll Question Gallery
  4. There will be a datasheet on the page click to define the datasheet
    1. Select the Poll Question Gallery element
    2. Add the Poll Name and Poll Question ID fields.
  5. Click on "Edit Columns"
    1. Edit the Poll Question ID column
      1. Change its name to: "Edit/Delete"
      2. Change its renderhandler to: /ADF/extensions/datasheet-modules/datasheet-action-edit-delete.cfm
    2. Move to the first row in the datasheet.
  6. Click to edit Layout
    1. Allow JavaScript data sorting: Unchecked