输入视图选择无法正常工作

Input-view selection-of not working correctly

我正在尝试为用户显示配置文件列表并启用免提导航。每当我在渲染中使用 selection-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)}")
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

message 和 layout 好像没用上,而是这样显示列表:

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

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

Here are sixteen profiles.

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

尝试将其转换为 result-view

GetProfiles 听起来像是检索了一堆配置文件,这使它成为 result-view。如果目的是从该函数的输出中得到 select,则该函数应提供给作为 Action 一部分的 computed-input