Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by sguilley on Jan 02, 2009 00:59
open dhtmlx forum
Loading Combo from url using parameters

Hello,

I want to use a combo on a dhtmlx grid.

I need to load this combo using a database. So i use the source option which call a java servlet. My problem is the parameter that I need to send to the java servlet :

<?xml version="1.0" encoding="ISO-8859-1"?>
<rows>
    <head>
        <column id="Utilisateur.libelle" width="550" type="ed" align="left" sort="na">${Utilisateur.libelle}</column>
        <column id="Utilisateur.nom" width="100" type="ed" align="left" sort="na">${Utilisateur.nom}</column>
        <column id="Utilisateur.idLangue" width="100" type="combo" editable="false" source="IUtilisateurService?OPERATION=chargerLangues&TYPE_ECRAN=ComboListe" align="left" sort="na">${Utilisateur.idLangue}</column>
        <column id="Utilisateur.actif" width="100" type="ch" align="center" sort="na">${Utilisateur.actif}</column>
        <column id="Utilisateur.dateModification" type="ro" width="100" sort="na" hidden="true">${Utilisateur.dateModification}</column>
        <column id="Utilisateur.id" type="ro" width="100" sort="na" hidden="true">${Utilisateur.id}</column>
    </head>
</rows>


This call doesn't work because DHtmlX put parameters on is own behind (a_dhx_rSeed    1230885892433) giving a malform URL :
IUtilisateurService?OPERATION=chargerLangues&TYPE_ECRAN=ComboListe?a_dhx_rSeed=1230885892433

Any Idea how i can handle that ?
Answer posted by Support on Jan 10, 2009 08:41
Which version of dhtmlxcombo you are using? 
In all recent versions code has check for the "?" character and must not duplicate it.

Please try to use attached js files instead of original one. 
Attachments (1)
codebase.zip15.51 Kb