| Новости | FAQ | Авторы | Документация | В действии | Библиотека |
| Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
max_rip 25.11.2011 20:23
Имеем таблица с конфигомtype name title_1 value_1 format alternativeText
checkbox contactsVisible Видимость контактов
textarea contacts Контакты text
groupCheckbox services Сервисы {тут json} json полная версия таблицы@main[]
^use[debug.p]
$tAdditionalFields[^table::load[inputs.cfg]]
^debug:print[$tAdditionalFields]
^tAdditionalFields.menu{
^switch[$tAdditionalFields.type]{
^case[groupCheckbox]{
^if($tAdditionalFields.format eq json){
^debug:print[
^json:parse[
$tAdditionalFields.value_1
;$.double(false)
$.distinct[all]
]
]
}
}
}
}Получаем вот такую ошибку