Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
 
Unanswered
← Understanding SSR Deep Linking

Hi Brock!

If I am understanding you correctly, you want to read the Tecton params on init of your SSR extension and re-route to a different routing key inside your extension accordingly.

To navigate from a button click to another SSR extension passing a configured query param, you would do something like below in your template:

<script>
    document.querySelector('#my-button').addEventListener('click', function() {
        tecton.actions.navigateTo({
            featureName: 'ExtensionName',
            moduleName: 'Main',
            queryParams: {'redirectTo': 'routingKey'}
        });
    });
</script>

To catch and read this Tecton param at the initialization of your receiving extension, you will need to add another script in the default route template of your extension like the example below. This should trigger on load and will allow you to check for the parameter, and use the requestExtensionData capability to change your routing key and load an alternate template.

<script>
    window.tecton.connected.then(function(tecton) {
        tecton.sources.paramsChanged((params) => {
            if (params.redirectTo) {
                tecton.sources.requestExtensionData({
                    route: params.redirectTo
                });
            }
        });
    });
</script>

To have your extension correctly handle the query params you want to use, the module parameters section of the documentation should help you in setting up the 'redirectTo' param in your configuration.

https://cdn4.onlineaccess1.com/cdn/base/tecton/v1.21/Documentation/capabilities/navigateTo
https://cdn4.onlineaccess1.com/cdn/base/tecton/v1.21/Documentation/capabilities/paramsChanged
https://cdn4.onlineaccess1.com/cdn/base/tecton/v1.21/Documentation/capabilities/requestExtensionData
https://docs.q2developer.com/tutorials/online_banking/routing.html

0

This is exactly what I was looking for, thanks!

— Brock Caldwell   3 years ago
17 Views
0 Answers
3 years ago
3 years ago