【发布时间】:2019-01-22 22:55:34
【问题描述】:
下面是来自 JET 应用程序的视图和视图模型的代码 sn-p。
我正在尝试根据房屋选择选项更改更新成员下拉列表。
请建议在哪里添加代码以更新 self.Member 的 observableArray
<select data-bind="ojComponent: {component: 'ojSelect', value: houseVal}">
<option value="A">Assembly</option>
<option value="S">Senate</option>
</select>
<input id="text-input" aria-label="district"
type="text"
data-bind="ojComponent: {component: 'ojSelect',
options: Members,
value: selectVal}"/>
<button data-bind="ojComponent: {component: 'ojButton',label:'Search'},click:getData"></button>
【问题讨论】:
标签: oracle-jet