Tuple Component
Tuples are contained inside a Tuple card. With tuples you can show differnt kind of data.
- text
- resolvable-text
- conditional-text
- date
- external-link
- template-view
Following examples will guide you to configure Tuple component to show different formats of data.
01. Text
If the data that you needed to show is in plain text format and that data can be selected from the local data model you have to choose this confighuration. Refer following example.
{ "title":"Assigned By" "type" : "text", "path" : "DocName"}
02. Resolvable Text
If the data that you needed to show is in plain text format but that data should be resolve with the help of a query you have to choose this configuration. Read following example carefully.
{ "title":"Assigned By" "type" : "resolvable-text", "path" : "DocName", "resolvable_query":"0f9593ab59"}
03. Conditional Text
You can display anything you want conditionally with this configuration. Follow the example.
{ "title":"Priority" "type" : "conditional-text", "path" : "Priority", "conditional_model" : { "pr_Normal":"Normal", "pr_Low":"Low", "pr_High":"High" }}
04. Date
This configuration helps you to sshow dates with different formats. Follow given example below.
{ "path":"StarttDate", "date_format":"DD-MM-YYYY"}
05. External Link
If you need to add a link to external website other than origin you have to use this configuration.
{ "title":"Task ID" "type" : "external-link", "path" : "ActivityCode", "external_link":"https://www.shopify.com/{text}"}
06. Template View
When you need to add specific formats or simple operators to the tuple, you have to use the Template view configuration.
{ "title":"" "type" : "", "path" : "", "template":""}