Hi Isomorphic,
I try to set up different requests (same DataSource, different operationID because of what happens on the serverside) (like in this post) for ComboBoxItem's (applies most likely to SelectItem as well) fetchRemoteDataReply and pickList data fetch. This here is not working even though I think it should.
Both fetches are using operationId "myMissingValueFetch", while I'd expect the pickList fetch to use "myDataFetch".
Please see the modified sample below (v12.0p_2020-05-14).
I'll try with optionFilterContext next.
Best regards
Blama
I try to set up different requests (same DataSource, different operationID because of what happens on the serverside) (like in this post) for ComboBoxItem's (applies most likely to SelectItem as well) fetchRemoteDataReply and pickList data fetch. This here is not working even though I think it should.
Both fetches are using operationId "myMissingValueFetch", while I'd expect the pickList fetch to use "myDataFetch".
Please see the modified sample below (v12.0p_2020-05-14).
I'll try with optionFilterContext next.
Best regards
Blama
Code:
isc.DynamicForm.create({ ID: "testForm", width: 500, items: [{ name: "itemName", title: "Item Name", editorType: "ComboBoxItem", valueField: "itemID", addUnknownValues: false, defaultValue: 1000, optionDataSource: "supplyItem", optionOperationId: "myMissingValueFetch", [B]// Added[/B] width: 250, pickListCellHeight: 50, pickListProperties: { fetchOperation: "myDataFetch", [B]// Added[/B] canHover: true, showHover: true, cellHoverHTML : function (record) { return record.description ? record.description : "[no description]"; }, formatCellValue : function (value, record, field, viewer) { var descStr = record.description ? record.description : "[no descripton]"; var styleStr = "font-family:arial;font-size:11px;white-space:nowrap;overflow:hidden;"; var retStr = "<table>" + "<tr><td ><span style='" + styleStr + "width:170px;float:left'>" + record.itemName + "<span></td>" + "<td align='right'><span style='" + styleStr + "width:50px;float:right;font-weight:bold'>" + record.unitCost + "<span></td></tr>" + "<tr><td colSpan=2><span style='" + styleStr + "width:220px;float:left'>" + descStr + "</span></td></tr></table>"; return retStr; } } }] });
Comment