Deleting Question Options Through Source
Last Post 05-07-2009 07:01 PM by Chad Nash. 1 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
Michael CunninghamUser is Offline
wading in the water
wading in the water
Posts:22
Avatar

--
05-07-2009 06:50 PM

    Hi,

    I'm building a wizard front end for a form using Enterprise/Source version. I am trying to programatically edit a combobox. I am able to the load the values from the form using an Options Controler and looping through the array list:

    ----
    Dim OptionsControl As New DataSprings.Modules.DynamicForms.DynamicQuestionOptionsController

    Dim OptionsArray As ArrayList = OptionsControl.GetDynamicQuestionOptionsByQuestion(ThisQuestion.DynamicQuestionID)

    --

    But I'm not sure how to go about deleting a value. The only method that I have found is to delete and recreate the item which is an ugly way to do it.

    Is there a way to remove values using the OptionsController?

    Thanks!

    Michael

     

     

     

     

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    05-07-2009 07:01 PM
    Yes... Set the item value DynamicQuestionOptionInfo.Inactive = -1 and then run an update.

    Chad


    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi