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.
5687
+
Getting values (or meta information):
5698
5688
5699
5689
```py
5700
-
field.amount
5690
+
field.amount # Get datapoint value
5691
+
field.amount.id # Get datapoint system ID
5692
+
field.amount.attr.rir_confidence # Get confidence score
5693
+
field.amount.attr.ocr_raw_text # Get raw value extracted by OCR, if applicable
5694
+
field.amount.attr.rir_raw_text # Get raw extracted text by RIR
5701
5695
```
5702
5696
5703
-
#### Serverless function
5697
+
:::warning
5704
5698
5705
-
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:
5699
+
Formula fields cannot write into any other fields. They simply return the value into the formula field itself.
@@ -5811,40 +5825,48 @@ from txscript import TxScript, substitute
5811
5825
substitute(r"[^0-9]", r"", t.field.document_id)
5812
5826
```
5813
5827
5828
+
</TabItem>
5829
+
</Tabs>
5830
+
5814
5831
### Show info/warning/error messages
5815
5832
5816
-
#### Formula field
5833
+
:::note
5817
5834
5818
-
```py
5819
-
show_info("…") # Show global info message
5820
-
show_info("…", field.amount) # Show info message on the specified field
5835
+
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.
5821
5836
5822
-
show_warning("…") # Show global warning message
5823
-
show_warning("…", field.amount) # Show warning message on the specified field
5837
+
:::
5824
5838
5825
-
show_error("…") # Show global error message
5826
-
show_error("…", field.amount) # Show error message on the specified field
show_info("…", field.amount) # Show info message on the specified field
5830
5845
5831
-
:::note
5846
+
show_warning("…") # Show global warning message
5847
+
show_warning("…", field.amount) # Show warning message on the specified field
5832
5848
5833
-
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.
5849
+
show_error("…") # Show global error message
5850
+
show_error("…", field.amount) # Show error message on the specified field
We're still working on this part and would love to hear your thoughts! Feel free to [share your feedback](https://github.com/rossumai/university/discussions) or [submit a pull request](https://github.com/rossumai/university/pulls). Thank you! 🙏
@@ -14360,5 +14397,5 @@ answers={[
14360
14397
{ text: 'Yes, MDH can return values into any preconfigured field' },
14361
14398
{ text: 'No, only enum fields are supported', isCorrect: true }
14362
14399
]}>
14363
-
The only field type that Master Data Hub (MDH) extension supports are `enum` fields. Enum fields limit the section to only one specific value. However, we can still access all the values (options) using the `x.field.order_id_match.attr.options` code which can later be distributed into a multivalue table.
14400
+
The only field type that Master Data Hub (MDH) extension supports are `enum` fields. Enum fields limit the section to only one specific value. However, we can still access all the values (options) using the `x.field.order_id_match.attr.options` code which can later be distributed into a multivalue table.
0 commit comments