Skip to content

Possibility that field of type link changes the data #226

Discussion options

You must be logged in to vote

Hi, thanks. Type Link for lazy-style coding. It is suitable in 90% of cases. For this task you need Select type in Cycles and this two codes:

// Code

=: select(table: 'table_in_cycle'; field: 'field_in_cycle')

// Code action on edit

a1=: set(table: 'table_in_cycle'; field: 'field' = $#nfv)

a2=: clear(table: $#ntn; field: $#nf; where: 'id' = #id)

What do you do here: you set new value inside the cycle and unpin field in Cycles table, because it have a Code and will be fixed into a hand-value after edit.

https://docs.totum.online/label-type-fields

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@criszalo1997
Comment options

@ttm-alexeypolunin
Comment options

@criszalo1997
Comment options

Answer selected by ttm-alexeypolunin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Code Features of codes Code-action All about action codes Cycles All about cycles
2 participants