我正在使用与xe:simplevaluePicker
XPage 相关联的两个字段,并希望@DbLookup
第二个字段的公式将第一个字段的值合并为键。我怎样才能最好地做到这一点?目前, xe:simpleValuePicker 给出“类型:错误:resp 为空”
我目前的代码是:
<xp:inputText id="Function" value="#{document1.Function}" styleClass="EditBoxWidth" required="true">
<xp:eventHandler event="onchange" submit="false" refreshMode="partial" refreshId="valuePickerMT"></xp:eventHandler>
</xp:inputText>
<xe:valuePicker id="valuePicker" for="Function" dialogTitle="SELECT">
<xe:this.dataProvider>
<xe:dominoViewValuePicker databaseName="#{javascript:@Subset(@DbName(),-1)}" labelColumn="FunctionName">
<xe:this.viewName><![CDATA[#{javascript:var viewname = "$L-Function-WEB"; viewname}]]> </xe:this.viewName>
</xe:dominoViewValuePicker>
</xe:this.dataProvider>
</xe:valuePicker>
<xp:inputText id="MainTasks" value="#{document1.MainTasks}"
required="true" styleClass="EditBoxWidth">
</xp:inputText>
<xe:valuePicker id="valuePickerMT" for="MainTasks" dialogTitle="SELECT">
<xe:this.dataProvider>
<xe:simpleValuePicker>
<xe:this.valueList><![CDATA[#{javascript:var viewname = "$L-Function-WEB";
var key = getComponent("Function").getValue();
var results = @DbLookup(@DbName(),viewname,key,3);
results}]]></xe:this.valueList>
</xe:simpleValuePicker>
</xe:this.dataProvider>
xe:valuePicker>
</xp:span>