How to access a TransactionID in a Transaction Details Tab Extension
How to access a TransactionID in a Transaction Details Tab Extension
I have a Client side rendering extension being loaded as an UUX Extension Point (ultimately as a Tab in the Transaction Details component)
During the tecton [connect](https://cdn1.onlineaccess1.com/cdn/base/tecton/v1.20.0/Documentation/index.html#/capabilities/connect) promise resolution, I can see the outletContext numerical value changing for every transation selected in the OLB app. When I try to use this outletContext as a transaction id into [HostTransactionHistory.get](https://docs.q2developer.com/api_references/q2_sdk/db/db_objects/host_transaction_history.html) I receive a `Please supply a valid transaction id` error in the logs.
How can I access the currently selected transaction id in a tab extension point deployed to the transaction details component?
#### Tab Deployment Steps
1. run `q2 tecton`
2. Select the desired extension to be deployed as a tab
3. Select the `Main` Entrypoint
4. Select `UUX Extension Point Configurations (e.g. dropdowns, tabs, etc.)`
5. Select `Embeddable Spaces`
6. Select `Enable an your extension to be in an embeddable space within UUX`
7. Name the tab as `Receipt Details`
8. Leave the context id as default [contextId]
9. Select `Add as a tab to Transaction Details`
10. Select to show for `All Debit Types`
I have a Client side rendering extension being loaded as an UUX Extension Point (ultimately as a Tab in the Transaction Details component)
During the tecton [connect](https://cdn1.onlineaccess1.com/cdn/base/tecton/v1.20.0/Documentation/index.html#/capabilities/connect) promise resolution, I can see the outletContext numerical value changing for every transaction selected in the OLB app. When I try to use this outletContext as a transaction id into [HostTransactionHistory.get](https://docs.q2developer.com/api_references/q2_sdk/db/db_objects/host_transaction_history.html) I receive a `Please supply a valid transaction id` error in the logs.
How can I access the currently selected transaction id in a tab extension point deployed to the transaction details component?
#### Tab Deployment Steps
1. run `q2 tecton`
2. Select the desired extension to be deployed as a tab
3. Select the `Main` Entrypoint
4. Select `UUX Extension Point Configurations (e.g. dropdowns, tabs, etc.)`
5. Select `Embeddable Spaces`
6. Select `Enable an your extension to be in an embeddable space within UUX`
7. Name the tab as `Receipt Details`
8. Leave the context id as default [contextId]
9. Select `Add as a tab to Transaction Details`
10. Select to show for `All Debit Types`
#
How to access a TransactionID in a Transaction Details Tab Extension
I have a Client side rendering extension being loaded as an UUX Extension Point (ultimately as a Tab in the Transaction Details component)
During the tecton [connect](https://cdn1.onlineaccess1.com/cdn/base/tecton/v1.20.0/Documentation/index.html#/capabilities/connect) promise resolution, I can see the outletContext numerical value changing for every transaction selected in the OLB app. When I try to use this outletContext as a transaction id into [HostTransactionHistory.get](https://docs.q2developer.com/api_references/q2_sdk/db/db_objects/host_transaction_history.html) I receive a `Please supply a valid transaction id` error in the logs.
How can I access the currently selected transaction id in a tab extension point deployed to the transaction details component?
#### Tab Deployment Steps
1. run `q2 tecton`
2. Select the desired extension to be deployed as a tab
3. Select the `Main` Entrypoint
4. Select `UUX Extension Point Configurations (e.g. dropdowns, tabs, etc.)`
5. Select `Embeddable Spaces`
6. Select `Enable an your extension to be in an embeddable space within UUX`
7. Name the tab as `Receipt Details`
8. Leave the context id as default [contextId]
9. Select `Add as a tab to Transaction Details`
10. Select to show for `All Debit Types`