dealing with multiple dynamic content types in widget designer ? - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

dealing with multiple dynamic content types in widget designer ?

  • dealing with multiple dynamic content types in widget designer ?
  • I am trying to figure out how to offer the ability to select more than one content type via the designer (extending the SingleDynamicContent sample widget)

    So long as the content type is the same (defined in ItemType) I can get the items selected and saved

    But when there are two content types I cannot get select the second one … when I click "select"

    I get a "Specified argument was out of the range of valid values"

     

            <div class="form-group">
                <label>Choose dynamic content type:</label>
                <input type="text" ng-model="properties.ItemTypeBackgroundColor.PropertyValue" class="form-control" />
            </div>

            <div class="form-group">
                <label>Background Color:</label>
                <div class="row">
                    <div class="col-xs-6">
                        <sf-list-selector sf-dynamic-items-selector
                                          sf-item-type="properties.ItemBackgroundColor.PropertyValue"
                                          sf-selected-item-id="properties.SelectedItemIdBackgroundColor.PropertyValue"
                                          sf-provider="properties.ProviderName.PropertyValue" />


                    </div>
                </div>
            </div>