как правильно (более просто) собрать json массив для remote? как преобразовать данные в строку? #590
-
мне нужно сделать remote который отдает json: my_field - поле тип "Селект" с множественным выбором в таб "klienty" в самой таблице для теста делаю поле тип "Данные"
получаю в поле результат:
все супер! то что надо! но как бы собрать строку json в коде ремоута, и запихнуть в эту строку данные но как строку? сейчас код ремоута:
результат get запроса:
что логично, там же данные. додумался только до того что бы использовать не seelctRow, а просто select, тогда получаю массив, и через listJoin самому уже собирать строку и т.д. но это такой длинный путь, подумал что может есть готовое решение что б сразу в "строку"? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Да, в настройках ответа в списке Remotes выберите json и будет отдаваться строка Ваш код, примерно, такой:
|
Beta Was this translation helpful? Give feedback.
Да, в настройках ответа в списке Remotes выберите json и будет отдаваться строка
https://ru.docs.totum.online/api#type_modul
Ваш код, примерно, такой: