This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This is an example of how the `useXQueryDataBinding` hook can be implemented for a simple form field (in this case the | |
* FDS `TextInput` component. | |
* The readQuery argument to `useXQueryDataBinding` returns a format (string) that is useful for the TextInput. I | |
* another case you might choose to return an XPath `map` or `array` instead and distribute that over multiple or more | |
* complex form components. | |
* | |
* The writeQuery argument is given the `$data('value')` XPath variable, which is whatever `TextInput` returns in its | |
* `onChange` callback - for this component, that is also a string. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let $i := 'Hello World!' | |
return concat($i, ' ', fn:current-date()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
graph LR | |
Flag[Flag issue] | |
Block[Move to blocked] | |
S1>You found a bug] | |
S2>You found an improvement] --> C4 | |
S1 --> C1{Prevents normal use?} | |
C1 --> |Yes| Flag | |
C1 --> |No| C2{Cause data corruption?} |