SmartClient Version: SNAPSHOT_v11.1d_2017-02-23/Enterprise Development Only (built 2017-02-23)
Chrome 56.0.2924.87 (64-bit) on OSX Sierra
Hello, please modify the supplyItem dataSource like this:
you may see that I've added a field:
then, refresh the browser with the databoundDependentSelectsFS sample selected, and modify it:
then click the "Order New Item" button, open the pickList, then click in the filterEditor field: it will not receive focus on first click, you'll have to click a second time (first problem).
then type something very rapidly, eventually you'll see that part of the already typed string will be deleted as if you pressed backspace (but actually I've only pressed character keys).
you may see the effect in this video:
https://www.youtube.com/watch?v=NWQc4RmHPRY
Chrome 56.0.2924.87 (64-bit) on OSX Sierra
Hello, please modify the supplyItem dataSource like this:
Code:
<DataSource ID="supplyItem" serverType="sql" tableName="supplyItem" titleField="itemName" testFileName="/examples/shared/ds/test_data/supplyItem.data.xml" dbImportFileName="/examples/shared/ds/test_data/supplyItemLarge.data.xml" > <fields> <field name="nameSKU" type="text" customSelectExpression="supplyItem.itemName || ' ' || supplyItem.SKU"/> <field name="itemID" type="sequence" hidden="true" primaryKey="true"/> <field name="itemName" type="text" title="Item" length="128" required="true"/> <field name="SKU" type="text" title="SKU" length="10" required="true"/> <field name="description" type="text" title="Description" length="2000"> <validators> <validator type="required" dependentFields="category"> <applyWhen operator="and"> <criteria> <criterion fieldName="category" operator="equals" value="Adding Machine/calculator Roll"/> </criteria> </applyWhen> </validator> </validators> </field> <field name="category" type="text" title="Category" length="128" required="true" foreignKey="supplyCategory.categoryName"/> <field name="units" type="enum" title="Units" length="5"> <valueMap> <value>Roll</value> <value>Ea</value> <value>Pkt</value> <value>Set</value> <value>Tube</value> <value>Pad</value> <value>Ream</value> <value>Tin</value> <value>Bag</value> <value>Ctn</value> <value>Box</value> </valueMap> </field> <field name="unitCost" type="float" title="Unit Cost"> <validators> <validator type="required" dependentFields="category"> <applyWhen operator="and"> <criteria> <criterion fieldName="category" operator="notEqual" value="Adding Machine/calculator Roll"/> </criteria> </applyWhen> </validator> </validators> </field> <field name="inStock" type="boolean" title="In Stock"/> <field name="nextShipment" type="date" title="Next Shipment"/> </fields> </DataSource>
Code:
<field name="nameSKU" type="text" customSelectExpression="supplyItem.itemName || ' ' || supplyItem.SKU"/>
Code:
isc.ListGrid.create({ width: 500, height:200, canEdit:true, autoDraw: true, ID:"orderList", fields: [ {name: "itemID", fetchMissingValues: false, editorProperties:{ optionDataSource:"supplyItem", valueField: "itemID", displayField: "nameSKU", pickListWidth: 400, pickListFields: [ {name: "itemID", width:"50"}, {name: "nameSKU"} ], pickListProperties: {showFilterEditor:true}, optionCriteria: { _constructor: "AdvancedCriteria", operator: "and", criteria: [ { operator: "or", criteria: [ {fieldName: "category", operator: "equals", value: "Accessories"} ] } ] }, } } ] }); isc.IButton.create({ top: 235, autoFit: true, title:"Order New Item", click:"orderList.startEditingNew()" });
then type something very rapidly, eventually you'll see that part of the already typed string will be deleted as if you pressed backspace (but actually I've only pressed character keys).
you may see the effect in this video:
https://www.youtube.com/watch?v=NWQc4RmHPRY
Comment