输入视图选择不正确

时间:2019-06-25 00:18:22

标签: bixby

我正在尝试为用户显示配置文件列表,并启用了免提导航。每当我在渲染中使用select-of时,视图均无法正确渲染。

我以前曾尝试将布局放入布局宏中,但是得到的结果相同,所以我宁愿只将视图放在一个文件中。

input-view {
  match: Profile (profile) {
      from-output: GetProfiles
  }
  message {
    template ("These are the list of profiles under your account.")
  }
  render {
    if (size(profile) > 1) {
      selection-of (profile) {
        navigation-mode {
          read-many {
            page-size (size(profile))
            list-summary ("There are #{size(profile)} profiles.")
            page-content{
              underflow-statement (These are the first set)
              page-selection-question (Do you want to select one of these?)
              item-selection-question (Which one would you like?)
              overflow-statement (That's all I have)
              overflow-question (What would you like to do?)
            }
          }
        }
        where-each (item) {
          title-card {
            title-area {
              halign (Start)
              slot1 {
                single-line {
                  text {
                    style (Detail_L_Soft)
                    value ("Account: #{value(item.acctName)}")
                  }
                }
              }
              slot2 {
                single-line {
                  text {
                    style (Detail_M_Soft)
                    value ("Web property: #{value(item.webName)}")
                  }
                }
              }
              slot3 {
                single-line {
                  text {
                    style (Title_S)
                    value ("Profile: #{value(item.viewName)}")
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

消息和布局似乎没有被使用,而是显示如下列表:

Here are sixteen profiles.
2.0.3-teamname.capsule.Profile
2.0.3-teamname.capsule.Profile
2.0.3-teamname.capsule.Profile
2.0.3-teamname.capsule.Profile
2.0.3-teamname.capsule.Profile
2.0.3-teamname.capsule.Profile
2.0.3-teamname.capsule.Profile
2.0.3-teamname.capsule.Profile
2.0.3-teamname.capsule.Profile
2.0.3-teamname.capsule.Profile

2 个答案:

答案 0 :(得分:2)

您确定此输入视图与当前匹配吗?

  

这是16个个人资料。

...听起来像是在结果时刻。

尝试将其转换为result-view

答案 1 :(得分:2)

GetProfiles听起来像是检索了一堆Profiles,使其成为result-view。如果要从此函数的输出中进行选择,则此函数应馈入computed-input的一部分Action中。