我在 movilizer 屏幕中使用问题类型 =“9”的数据网格。在这里,我使用本地数组数据将数据绑定到网格。如果没有数据,我想在网格屏幕“未找到记录”中显示消息。如何在此处在屏幕中间显示消息。下面是我的示例代码
<question key="Item_Question" type="9" title="Item Details" tableOptionsEnabled="false" >
<answer nextQuestionKey="END" key="Item_1" clientKey="0" colIndex="0" colWidth="5" attributeType="8" dummyAnswer="true">
<text>Item ID </text>
</answer>
<answer nextQuestionKey="END" key="Item_2" clientKey="0" colIndex="1" colWidth="5" colSearchable="false"
attributeType="8" dummyAnswer="true" valueAlignment="CENTER">
<text>Item Description</text>
</answer>
<onEnterAssignment>
itemCount = $local:itemDetails;
for(clientKey : itemCount){
Seq = concat(itemCount[clientKey]['ID'], '_', itemCount[clientKey]['Name']);
addAnswer($answer:"Item_1", Seq, itemCount[clientKey]['ItemCode']);
setAnswerValueByClientKey($answer:"Item_1", Seq, itemCount[clientKey]['ItemCode']);
addAnswer($answer:"Item_2", Seq, itemCount[clientKey]['ItemDescription']);
setAnswerValueByClientKey($answer:"Item_2", Seq, itemCount[clientKey]['ItemDescription']);
}
</onEnterAssignment>
</question>
谢谢