Difference between revisions of "PT Profile Admin Datasheet"

From ADF Docs
Jump to: navigation, search
Line 2: Line 2:
 
The Profile element is a global custom element. Data for global custom elements can be easily managed with Datasheets. The following sections describe how to configure simple management pages.  
 
The Profile element is a global custom element. Data for global custom elements can be easily managed with Datasheets. The following sections describe how to configure simple management pages.  
  
'''Recommended:''' to create a 'profileadmin' subsite for the Profile Admin pages.
 
  
 
== Steps ==
 
== Steps ==
 +
# Create a 'profileadmin' subsite for the Profile Admin pages.
 
# Create a page from the Base Plus One called "Manage Profiles" in the ''/profileadmin/'' subsite.
 
# Create a page from the Base Plus One called "Manage Profiles" in the ''/profileadmin/'' subsite.
 
# In the body of the page, add a Custom Script element.
 
# In the body of the page, add a Custom Script element.

Revision as of 23:59, 24 January 2010

Overview

The Profile element is a global custom element. Data for global custom elements can be easily managed with Datasheets. The following sections describe how to configure simple management pages.


Steps

  1. Create a 'profileadmin' subsite for the Profile Admin pages.
  2. Create a page from the Base Plus One called "Manage Profiles" in the /profileadmin/ subsite.
  3. In the body of the page, add a Custom Script element.
  4. From the Custom Script element interface, click the "Edit" icon.
  5. Enter the following text into the Explicit Module path:
    1. '/ADF/apps/pt_profile/customcf/profile_admin_ds.cfm'
  6. From the Datasheet element interface, click the "Datasheet" icon.
  7. From the "Datasheet Views" dialog, select the "Click here to create a new datasheet view" text.
  8. Enter the following information and then click "Next:"
    1. Name: All Profiles
    2. Private: unchecked
    3. Default View: unchecked
    4. Description: View to manage all of the profiles
    5. Datasheet Source: Form Result/Custom Element Sheet
  9. From the Datasheet Source dialog, choose the "Profile" custom element and click "Next".
  10. From the Datasheet Columns dialog, choose a few columns from the Available Columns list and move them to the Selected Columns list. Select the following fields in this order UniqueID, UserID, firstname, lastname, and email as the first field to display in the table and then click "Finish".
  11. You will be brought to the Datasheet View page. Click "Close" to return to your page.
  12. You will now see the datasheet element on this page. Click the Datasheet element interface icon again and this time choose "Edit Columns".
  13. Select the column field UniqueID and then the edit button.
  14. In the Render Handler field, select the Change button. Enter the following value into the Explicit Module text box:
    1. '/ADF/apps/pt_profile/datasheet-modules/datasheet-action-edit-delete-view.cfm'
  15. Click Finish.
  16. In the Header field, clear out the text and leave the text field blank. Click Finish.
  17. Publish this page.