tag:help-archives.hannonhill.com,2010-02-09:/discussions/web-services/1576-setting-selected-items-in-a-multi-select-box-in-a-data-definitionCascade CMS: Discussion 2018-10-18T20:37:49Ztag:help-archives.hannonhill.com,2010-02-09:Comment/390716762016-02-02T17:49:53Z2016-02-02T17:49:53ZSetting selected items in a multi-select box in a Data Definition<div><p>I used the web service to retrieve one of the Pages with an
Event DD that already had multiple categories selected. In Fiddler
I took a look at the response from Cascade and found the Category
structured node and how it describes it's selected items:
::CONTENT-XML-SELECTOR::Festive::CONTENT-XML-SELECTOR::Holidays.
Maybe that's how I can set the selected fields, passing a similar
string when adding the Asset...</p>
<p>-</p>
<p>category</p>
<p>false</p>
<p>
::CONTENT-XML-SELECTOR::Festive::CONTENT-XML-SELECTOR::Holidays</p>
<p>text</p></div>sandertag:help-archives.hannonhill.com,2010-02-09:Comment/390716762016-02-02T17:56:28Z2016-02-02T17:56:28ZSetting selected items in a multi-select box in a Data Definition<div><p>Ok that worked. If I set the text on the structured node to the
string as described above then I get multiple items selected in the
select box.</p>
<pre>
<code> structureddatanode cats = new structureddatanode();
cats.type = structureddatatype.text;
cats.identifier = "category";
cats.text = "::CONTENT-XML-SELECTOR::Festive::CONTENT-XML-SELECTOR::Holidays";</code>
</pre>
<p>I will close the discussion, maybe it will help someone
else.</p></div>sander