I am using the Bixby list-of navigation to show multiple tickets and select tickets to show details of that ticket using ordinal-selection-patterns. But if I have only a single ticket and I want to show the detail page of that ticket directly. But I am unable to show. So, is it possible to call two different actions in the result view.
Result View
result-view {
match: TicketConfirmation(item)
message{
if(exists(item.errorData)){
template("#{value(item.errorData)}")
}
}
render {
if (exists(item.Total) && item.Total >= 1) {
list-of (item) {
navigation-mode {
if ($handsFree) {
read-many {
page-size (6)
page-content (page) {
page-marker {
if(exists(item.customMessage)){
template("")
}
}
underflow-statement (This is the first item.)
overflow-statement (Those are all the items.)
}
}
}
}
where-each (item) {
layout-macro (ticket-summary-card) {
param (single_item) {
expression (item)
}
}
}
}
}
}
}
Layout:
layout-macro-def(ticket-summary-card) {
params {
param (single_item) {
type (TicketConfirmation)
min (Required)
max (One)
}
}
content {
compound-card {
content {
if (exists(single_item.Name)){
paragraph{
value("#{value(single_item.Name)}")
style(Detail_L)
}
}
}
}
}
}
Navigation support:
navigation-support {
match: TicketConfirmation (this)
ordinal-selection-patterns {
pattern ("(first)[v:viv.core.OrdinalSelector]")
pattern ("(first)[v:viv.core.OrdinalSelector] one")
pattern ("that (first)[v:viv.core.OrdinalSelector] one")
}
}