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
 
Answered
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 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 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
Votes Newest

Answers


Looks like the function expects a int and will throw that error if an int is not passed.

https://docs.q2developer.com/_modules/q2_sdk/hq/db/host_transaction_history.html#HostTransactionHistory.get

You are likely passing a string, should be able to use the int() function to cast the string to an int.

https://docs.python.org/3/library/functions.html#int

Posted 3 years ago
Ryan Hollister
196 × 4 Administrator
134 Views
1 Answer
3 years ago
3 years ago