ODS.VirtuosoOdsUbiquityTutorialsManagePolls

Polls Manage Resources Ubiquity Tutorial

This tutorial demonstrates how to manage polls from OpenLink? Demo server Polls instance for user demo.

Ubiquity Commands Subscription

If not already subscribed, perform the following steps:

  1. Go to http://demo.openlinksw.com/ods/ods_ubiquity.html
  2. Click the button "Subscribe"
  3. Click the button "I know what I'm doing. Subscribe to it".
  4. As result should be shown message for "Subscription Successful" and we are ready to perform the steps from the tutorial.

Initial conditions

In order to be executed correctly the steps below, there should be ODS Polls instance for user demo at the Demo server. If not existing, it is enough after log in to go to Polls from the left ODS Vertical Main Navigation. This will cause automatically to be created ODS Polls instance.

Basic Tutorial Steps

  1. Authenticate using ODS command mode:
    1. sid:
      1. Execute the command:

        ods-host http://demo.openlinksw.com/ods

      2. Execute the command:

        ods-set-mode sid

      3. Execute the command:

        ods-authenticate-user demo with demo

    2. oauth: detailed description you can find here.
  2. Execute the command:

    ods-get-instance-id mypolls

  3. As result will be shown the instance id. For the "mypolls" instance this should be 61.
  4. In order to create new poll, execute the command:

    ods-create-poll 61 name MyMusic

  5. As result will be shown message for successful creation of poll with id 1020.
  6. In order to add question to the poll we have just create, execute the command:

    ods-create-poll-question 1020 questionNo 1 text What kind of music do you like? answer answer_1=Classic&answer_2=Rock

  7. As result will be shown message for successful creation of the poll question with id 19.
  8. In order to activate the poll, execute the command:

    ods-activate-poll 1020

  9. In order to vote to the poll, execute the command:

    ods-vote-poll 1020

  10. As result will be shown message for successful creation of the vote with id 1021.
  11. In order to add answer to the vote, execute the command:

    ods-poll-vote-answer 1021 questionNo 1 answerNo 1 value Classic

  12. To get the poll's results, execute the command:

    ods-result-poll 1020

  13. Now let's post a comment to poll:
    1. Comments can be posted when the Discussion feature (settable from Polls UI->Preferences->Discussions) is enabled. Execute the command:

      ods-set-polls-options 61 options conv=1

    2. In order to create post comment, execute the following command:

      ods-create-poll-comment 1020 title favorite body my favorites author demo authorMail demo@openlinksw.com authorUrl http://demo.openlinksw.com/dataspace/person/demo

  14. As result will be shown message for successful creation of the comment.

CategoryODS CategoryOpenSource CategoryWebSite CategoryPolls