Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Как эмулировать календарь в TOTUM? #127

Discussion options

You must be logged in to vote

Видео на YouTube

Коды в видео:

month:

= : dateAdd(date: $sel; days: $days; format: "Y-m-d")

~sel: select(table: $#ntn; field: $#nf; order: 'id' desc)

days: dateFormat(date: $sel; format: "t") 

h_month:

= : select(table: 's10_cycles'; field: 'month'; where: 'id' = $#nci)

h_weeks:

= : round(num: $calc; type: "up"; step: 1; dectimal: 0)

	calc: $df + $firstday / 7

		df: dateFormat(date: #h_month; format: "t")
		firstday: dateFormat(date: #h_month; format: "N") - 1

h_insert:

= : listReplace(list: $repeat; action: $val; key: "key")

val: $#key + 1

repeat: listRepeat(item: 1; num: #h_weeks)

h_days:

= : listReplace(list: $days; action: "week" = $week; action: "daynum" = $daynum; action:…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ttm-alexeypolunin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Установка; обновления А также бэкапы, варианты установки, bin/totum Коды Особенности кодов Циклы Все, про циклы Архитектура решений Про устойчивую архитектуру решений С видео Топики в которых есть ссылки на YouTube-примеры
2 participants