You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can be either returned directly from the formula fields or stored in some temporary variable.
87
+
Getting values (or meta information):
84
88
85
89
```py
86
-
field.amount
90
+
field.amount # Get datapoint value
91
+
field.amount.id # Get datapoint system ID
92
+
field.amount.attr.rir_confidence # Get confidence score
93
+
field.amount.attr.ocr_raw_text # Get raw value extracted by OCR, if applicable
94
+
field.amount.attr.rir_raw_text # Get raw extracted text by RIR
87
95
```
88
96
89
-
#### Serverless function
97
+
:::warning
90
98
91
-
In case of serverless function, the value can never be returned directly and must be either used in some other function call, or stored in some temporary variable to be used later:
99
+
Formula fields cannot write into any other fields. They simply return the value into the formula field itself.
@@ -197,40 +225,48 @@ from txscript import TxScript, substitute
197
225
substitute(r"[^0-9]", r"", t.field.document_id)
198
226
```
199
227
228
+
</TabItem>
229
+
</Tabs>
230
+
200
231
### Show info/warning/error messages
201
232
202
-
#### Formula field
233
+
:::note
203
234
204
-
```py
205
-
show_info("…") # Show global info message
206
-
show_info("…", field.amount) # Show info message on the specified field
235
+
Messages do not affect the automation behavior and, therefore, automation blockers must be set explicitly (see how to set [automation blockers](#set-automation-blockers)). The only exception is `show_error` which always blocks the automation.
207
236
208
-
show_warning("…") # Show global warning message
209
-
show_warning("…", field.amount) # Show warning message on the specified field
237
+
:::
210
238
211
-
show_error("…") # Show global error message
212
-
show_error("…", field.amount) # Show error message on the specified field
show_info("…", field.amount) # Show info message on the specified field
216
245
217
-
:::note
246
+
show_warning("…") # Show global warning message
247
+
show_warning("…", field.amount) # Show warning message on the specified field
218
248
219
-
Messages do not affect the automation behavior and, therefore, automation blockers must be set explicitly (see how to set [automation blockers](#set-automation-blockers)). The only exception is `show_error` which always blocks the automation.
249
+
show_error("…") # Show global error message
250
+
show_error("…", field.amount) # Show error message on the specified field
0 commit comments