Hello,
We ordered today a developer license of the PRO version 7.0.
We currently use evaluation version 7.0RC2.
we have a random message at the server side when we call
Here is the log message
Here is the Select list which can't retry the data when we click on the pickerButton of iduniteGestion item
The problem occur when the server a bit slow to respond (about 200ms).
Here is the entire javascript and after the FireBug Console sequence.
Here is the exchange sequence in the Firebug console
First we retrieve as well the ListGrid with SelectIem content
And when we click on the pickerButton of iduniteGestion item
SmartClient try to retrieve SelectIem content once again and the WARN occurs
=> Empty response....!
Thanks you for your help, I found no answer on either the forum or in the doc.
Pierre
We ordered today a developer license of the PRO version 7.0.
We currently use evaluation version 7.0RC2.
we have a random message at the server side when we call
Code:
rpc.send(dsRequest, dsResponse);
Code:
=== 2009-12-11 14:54:02,703 [80-1] INFO DSResponse - DSResponse: List with 6 items === 2009-12-11 14:54:02,703 [80-1] WARN RPCManager - java.lang.Exception: Response has already been committed, unable to setNoCacheHeaders() === 2009-12-11 14:54:02,703 [80-1] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8 === 2009-12-11 14:54:02,703 [80-1] DEBUG RPCManager - non-DMI response, dropExtraFields: true
Code:
{name:"iduniteGestion", title:"Unite de gestion", width:"180px", autoFetchData:false, required:true, type:"select", optionDataSource:ListUniteGestionDS, displayField: "libelle_FR", valueField: "id" }
Here is the entire javascript and after the FireBug Console sequence.
Code:
isc.RPCManager.actionURL = "smartAjax1"; isc.DataSource.create({ ID:"ListProdFrnDS", fields:[ {name:"id", type:"text", primaryKey:"true" }, {name:"libelle", type:"text"}, {name:"categorieProd", type:"text"}, {name:"idcategorieProd", type:"integer"}, {name:"iduniteGestion", type:"integer"} ] }); isc.DataSource.create({ ID:"ListCategorieProdFrnDS", fields:[ {name:"id", type:"sequence", primaryKey:"true" }, {name:"libelle", type:"text"} ] }); isc.DataSource.create({ ID:"ListUniteGestionDS", fields:[ {name:"id", type:"sequence", primaryKey:"true" }, {name:"libelle_FR", type:"text"}, {name:"libelle_IT", type:"text"}, {name:"libelle_DE", type:"text"}, {name:"libelle_ES", type:"text"}, {name:"libelle_EN", type:"text"} ]}); isc.ListGrid.create({ ID:"GestProdFrnList", dataSource:ListProdFrnDS, autoFetchData: true, autoFitData:"vertical", autoFitMaxHeight:isc.Page.getHeight() - 165, canEdit: true, editEvent: "click", cellPadding:3, alternateRecordStyles:true, canReorderFields:false, canResizeFields:true, canSort:false, canRemoveRecords:true, groupStartOpen:"all", groupByField:"idcategorieProd", fields:[ {name:"libelle", title:"Produit ou service", width:"100%", required:true}, {name:"idcategorieProd", title:"Catégorie", width:"100%", autoFetchData:false, required:true, type:"select", optionDataSource:ListCategorieProdFrnDS, displayField: "libelle", valueField: "id", getGroupValue : function (value, record, field, fieldName, grid) { return record.categorieProd; } }, {name:"iduniteGestion", title:"Unite de gestion", width:"180px", autoFetchData:false, required:true, type:"select", optionDataSource:ListUniteGestionDS, displayField: "libelle_FR", valueField: "id" } ] }); isc.ListGrid.create({ ID:"GestCategorieProdFrnList", dataSource:ListCategorieProdFrnDS, autoFetchData: true, autoFitData:"vertical", autoFitMaxHeight:isc.Page.getHeight() - 165, cellPadding:3, canEdit: true, editEvent: "click", alternateRecordStyles:true, canReorderFields:false, canResizeFields:true, canRemoveRecords:true, fields:[ {name:"libelle", title:"Catégorie", width:"100%", required:true} ] }); isc.ListGrid.create({ ID:"GestUniteGestionList", dataSource:ListUniteGestionDS, autoFetchData: true, width:"100%", autoFitData:"vertical", autoFitMaxHeight:isc.Page.getHeight() - 165, canEdit: true, editEvent: "click", cellPadding:3, alternateRecordStyles:true, canReorderRecords:true, canReorderFields:false, canResizeFields:true, canRemoveRecords:true, fields:[ {name:"libelle_FR", title:"Français", width:"100%", required:true}, {name:"libelle_IT", title:"Italien", width:"100%"}, {name:"libelle_DE", title:"Allemand", width:"100%"}, {name:"libelle_ES", title:"Espagnol", width:"100%"}, {name:"libelle_EN", title:"Anglais", width:"100%"} ] }); isc.SectionStack.create({ ID: "GestProduitSectionStack", visibilityMode: "mutex", width: "100%", height: "100%", sections: [ {title: "Produits", expanded: true, resizeable:false, canCollapse: true, controls:[ isc.refreshStackButton.create({click:"GestProdFrnList.invalidateCache();"}), isc.addStackButton.create({click:"GestProdFrnList.startEditingNew()"}) ], items: [GestProdFrnList] }, {title: "Catégories de produit", expanded: false, resizeable:false, canCollapse: true, controls:[ isc.refreshStackButton.create({click:"GestCategorieProdFrnList.invalidateCache();"}), isc.addStackButton.create({click:"GestCategorieProdFrnList.startEditingNew()"}) ], items: [GestCategorieProdFrnList] }, {title: "Unités de gestion", expanded: false, canCollapse: true, controls:[ isc.refreshStackButton.create({click:"GestUniteGestionList.invalidateCache();"}), isc.addStackButton.create({click:"GestUniteGestionList.startEditingNew()"}) ], items: [GestUniteGestionList] } ] }); function init_gest_produit(first_appel) { if (first_appel) { GestProduitPane.removeChild(GestProduitLoadMsg); GestProduitPane.addChild(GestProduitSectionStack); } }
First we retrieve as well the ListGrid with SelectIem content
Code:
_transaction <transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><transactionNum xsi:type="xsd:long">2</transactionNum><operations xsi:type="xsd:List"><elem xsi:type="xsd:Object"><criteria xsi:type="xsd:Object"></criteria><operationConfig xsi:type="xsd:Object"><dataSource>ListProdFrnDS</dataSource><operationType>fetch</operationType><textMatchStyle>substring</textMatchStyle></operationConfig><startRow xsi:type="xsd:long">0</startRow><endRow xsi:type="xsd:long">1000</endRow><componentId>GestProdFrnList</componentId><appID>builtinApplication</appID><operation>ListProdFrnDS_fetch</operation><oldValues xsi:type="xsd:Object"></oldValues></elem><elem xsi:type="xsd:Object"><criteria xsi:type="xsd:Object"></criteria><operationConfig xsi:type="xsd:Object"><dataSource>ListUniteGestionDS</dataSource><operationType>fetch</operationType></operationConfig><outputs xsi:type="xsd:List"><elem>libelle_FR</elem><elem>id</elem></outputs><appID>builtinApplication</appID><operation>ListUniteGestionDS_fetch</operation><oldValues xsi:type="xsd:Object"></oldValues></elem><elem xsi:type="xsd:Object"><criteria xsi:type="xsd:Object"></criteria><operationConfig xsi:type="xsd:Object"><dataSource>ListCategorieProdFrnDS</dataSource><operationType>fetch</operationType></operationConfig><outputs xsi:type="xsd:List"><elem>libelle</elem><elem>id</elem></outputs><appID>builtinApplication</appID><operation>ListCategorieProdFrnDS_fetch</operation><oldValues xsi:type="xsd:Object"></oldValues></elem></operations></transaction>
Code:
//isc_RPCResponseStart-->[ { invalidateCache:false, endRow:3, data:[ { iduniteGestion:2, idcategorieProd:1, categorieProd:"Carburants, Huiles, Adblue", id:1, libelle:"Gaz" }, { iduniteGestion:3, idcategorieProd:1, categorieProd:"Carburants, Huiles, Adblue", id:4, libelle:"Shell Lubrifiants" }, { iduniteGestion:1, idcategorieProd:2, categorieProd:"Service", id:2, libelle:"Interim" }, { iduniteGestion:2, idcategorieProd:3, categorieProd:"Téléphonie", id:3, libelle:"Nb de lignes" } ], status:0, totalRows:4, startRow:0, isDSResponse:true }, { invalidateCache:false, endRow:4, data:[ { id:3, libelle_DE:"Liter", libelle_EN:"Liter", libelle_ES:"Liter", libelle_FR:"Litre", libelle_IT:"Liter" }, { id:4, libelle_DE:"Cubic meter", libelle_EN:"Cubic meter", libelle_ES:"Cubic meter", libelle_FR:"Mètre cube", libelle_IT:"Cubic meter" }, { id:1, libelle_DE:"Without", libelle_EN:"Without", libelle_ES:"Without", libelle_FR:"Sans", libelle_IT:"Without" }, { id:5, libelle_DE:"Tonne", libelle_EN:"Tonne", libelle_ES:"Tonne", libelle_FR:"Tonne", libelle_IT:"Tonne" }, { id:2, libelle_DE:"Unit", libelle_EN:"Unit", libelle_ES:"Unit", libelle_FR:"Unité", libelle_IT:"Unit" } ], status:0, totalRows:5, startRow:0, isDSResponse:true }, { invalidateCache:false, endRow:22, data:[ { id:7, libelle:"Administration" }, { id:21, libelle:"Autoroutes" }, { id:22, libelle:"Autres" }, { id:10, libelle:"Cadeaux de fin d'année" }, { id:1, libelle:"Carburants, Huiles, Adblue" }, { id:11, libelle:"Formation" }, { id:12, libelle:"Gaz" }, { id:13, libelle:"Hygiène et Sécurité" }, { id:23, libelle:"Incendie" }, { id:24, libelle:"Informatique" }, { id:15, libelle:"Intérim" }, { id:16, libelle:"Location de Véhicule PL et VL" }, { id:25, libelle:"Matériel roulant - Carrossier" }, { id:26, libelle:"Matériel roulant - Levage et/ou manutention" }, { id:18, libelle:"Matériel Roulant - Moteur" }, { id:19, libelle:"Matériel Roulant - Pièces détachées" }, { id:27, libelle:"Matériel roulant - Remorque" }, { id:28, libelle:"Matériel roulant - Voiture" }, { id:29, libelle:"Outillage et petit matériel" }, { id:30, libelle:"Pneumatique" }, { id:2, libelle:"Service" }, { id:3, libelle:"Téléphonie" }, { id:31, libelle:"Traversée mer" } ], status:0, totalRows:23, startRow:0, isDSResponse:true } ]//isc_RPCResponseEnd
SmartClient try to retrieve SelectIem content once again and the WARN occurs
Code:
_transaction <transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><transactionNum xsi:type="xsd:long">3</transactionNum><operations xsi:type="xsd:List"><elem xsi:type="xsd:Object"><criteria xsi:type="xsd:Object"></criteria><operationConfig xsi:type="xsd:Object"><dataSource>ListUniteGestionDS</dataSource><operationType>fetch</operationType><textMatchStyle>startsWith</textMatchStyle></operationConfig><startRow xsi:type="xsd:long">0</startRow><endRow xsi:type="xsd:long">75</endRow><componentId>isc_PickListMenu_217</componentId><appID>builtinApplication</appID><operation>ListUniteGestionDS_fetch</operation><oldValues xsi:type="xsd:Object"></oldValues></elem></operations></transaction> protocolVersion 1.0
Thanks you for your help, I found no answer on either the forum or in the doc.
Pierre
Comment